Descriptive Statistics
Sample Variance
Compute sample variance using Bessel's correction (divide by n-1 instead of n) for an unbiased estimate of population variance from a sample.
Note: Using n-1 (Bessel's correction) gives an unbiased estimate of the population variance.
sample-variance
Steps: 1. Find the sample mean x̄. 2. Compute each squared deviation (xᵢ - x̄)². 3. Sum the squared deviations (SS). 4. Divide by (n - 1) to get sample variance s².