Lensa ML
Lensa ML

How Statistics Works

Step 1 of 6

Mean — The Center of Gravity

Where the balance point of a data set lies

Number of data points7
012345678910μ = 3.63The mean is the "balance point" — it minimizes squared distances
N POINTS
7
MEAN
3.63
SUM
25.4

The points are moderately spread out. The mean balances the data, but individual points pull it in different directions.

Step 1 of 6: Mean — The Center of Gravity

Where the balance point of a data set lies

Number of data points7
012345678910μ = 3.63The mean is the "balance point" — it minimizes squared distances
N POINTS
7
MEAN
3.63
SUM
25.4

The points are moderately spread out. The mean balances the data, but individual points pull it in different directions.

Step 2 of 6: Variance & Standard Deviation

How spread out data is around the mean

σ (standard deviation)1.50
μ=0~68% of data falls within ±1σ of the mean
VARIANCE (σ²)
1.96
STD DEV (σ)
1.40
RANGE
6.3

Moderate spread. The data fans out enough to show variety but the bell shape keeps most values within a couple of standard deviations of center.

Step 3 of 6: Populations vs Samples

Why samples are noisy estimates of the truth

Sample size (n)30
1030507090pop μx̄ = 47.4PopulationSample
POP MEAN
50.2
SAMPLE MEAN
47.4
ERROR
2.79
SAMPLE SIZE
30

At n = 30, the sample histogram is starting to resemble the population shape. The sample mean (x̄ = 47.4) is getting closer to the true mean.

Step 4 of 6: The Central Limit Theorem

Sample means always form a bell curve

Sample size (n)5
13579Distribution of sample means (500 experiments)Sample meansNormal fit
SOURCE DIST
Uniform
SAMPLE SIZE
5
MEAN OF MEANS
5.01
STD ERROR
1.29

The bell shape is emerging! At n = 5, the distribution of means is visibly concentrating around 5 with std error ≈ 1.29. The CLT is working.

Step 5 of 6: Confidence Intervals

Quantifying uncertainty in estimates

Confidence level0.95
Sample size (n)50
-0.280.28μ95% CI
CONF LEVEL
95%
Z-SCORE
1.96
MARGIN
±0.277
CI WIDTH
0.554

The 95% level is the standard choice in science. It balances precision and reliability — the z-score of 1.96 captures most of the distribution.

Step 6 of 6: Why Statistics Matters for ML

Batch statistics and mini-batch noise

Batch size32
Batch MeansμBatch VarBatch index (20 mini-batches)
BATCH SIZE
32
BATCH MEAN
0.590
BATCH VAR
0.949
STABILITY
83%

Moderate batch size. The batch statistics are somewhat stable (stability: 83%), giving reasonable gradient estimates. This is a common sweet spot for many models.