Statistical Methods

Record Units and Window Width in Differential Entropy Estimates

Define the task

Differential entropy describes a continuous distribution and is not the same quantity as category-count entropy. Its numerical value depends on measurement units and can be negative. Begin by recording the variable, units, sampling assumptions, rounding precision and sample size. The calculator implements the Vasicek spacing estimator with an explicitly selected integer window m and natural logarithms. It does not automatically switch estimators based on sample size.

Carry out the check

Sort the observations and inspect ties before calculation. For each ordered value, compare the observations m places below and above, clipping indices to the sample endpoints. The estimate averages the logarithms of the scaled spacings. Choose 1 ≤ m < n/2 and examine sensitivity to plausible windows without presenting the most favorable result alone. This small tool rejects ties to make rounding or genuinely discrete measurements visible. Adding jitter silently would change the analysis and should not be used to bypass that warning.

Worked hypothetical example

Hypothetical example: values 0,1,2,3 with m=1 produce scaled spacings 2,4,4,2. Their mean log is log(8)/2, approximately 1.039721 nats. Multiplying all measurements by 10 adds log(10), approximately 2.302585, to the estimate. Translation leaves spacings unchanged. This tiny example checks arithmetic only: it does not establish an accurate population estimate or supply an uncertainty interval. Record the window, units and exclusions whenever comparing results.

Method checked 24 November 2026 against primary documentation: stats.differential_entropy.

Open the vasicek spacing entropy.

Download the vasicek spacing entropy worksheet.

Related reading

Reading path: Analyze data. Guide 216 of 222. Choose any guide to suit your project.

Statistical Methods

Record the assumptions of a Savitzky–Golay smoothing window

Specify polynomial smoothing and boundary assumptions.

Statistical Methods

Record the Mask and Connectivity for Seeded Region Growth

Practical steps and a hypothetical example: Define seed-constrained reachability inside an allowed mask.

Browse this reading pathTools for this stageGuides and downloads for this stage