Worked Example: Worked Mathematical Example: Silverman & Scott KDE Bandwidth
Compute Silverman’s robust KDE bandwidth h and Scott’s normal-reference bandwidth.
- Specify the function parameters, matrix entries, or confusion matrix counts.
- Apply the closed-form or iterative formula: h_Silverman = 0.9 × min(s, IQR / 1.34) × n^(−1/5); h_Scott = 1.06 × s × n^(−1/5).
- Examine the primary result, error bounds, and 3 interactive SVG plots.
Result: Computes Silverman & Scott KDE Bandwidth via h_Silverman = 0.9 × min(s, IQR / 1.34) × n^(−1/5); h_Scott = 1.06 × s × n^(−1/5).
Mathematics & Statistics · Non-Parametric & Hypothesis Testing
Kernel Density Estimation (KDE) Silverman’s Rule-of-Thumb & Scott’s Bandwidth Calculator: inputs, method, and how to read the result
Compute Silverman’s robust KDE bandwidth h and Scott’s normal-reference bandwidth.
Choose inputs for the case you are checking
The defaults are illustrative. Replace them with values for your case and keep the units shown beside each field.
- Sample Std Dev S: Sample standard deviation s.
- Interquartile Range Iqr: Sample Interquartile Range IQR = Q₃ − Q₁.
- Sample Size N: Total number of observations n.
What the calculation includes
With the default values shown, Silverman Optimal KDE Bandwidth (h) is 4.007 bandwidth. The calculation follows Silverman & Scott KDE Bandwidth Formula; the formula and variable definitions above show how the inputs combine.
One-input check: With the other defaults held constant, changing Sample Std Dev S from 14.2 SD s to 12.78 SD s changes Silverman Optimal KDE Bandwidth (h) from 4.007 bandwidth to 3.812 bandwidth. This is a comparison inside the calculator's stated model, not a prediction.
Where to use caution
- Uses exact analytical or standard numerical analysis formulations from NIST DLMF.
- Double-precision floating-point arithmetic has ~15–17 significant decimal digits of precision.
Scope: Global Mathematical & Statistical Standard Check the assumptions and limitations against your situation before relying on the estimate.
More in Mathematics & Statistics: Scientific Calculator, Statistics & Standard Deviation Calculator, Permutations, Combinations, Probability, Sample Size & P-Value Calculator.