Time to First Fill — Statistical Analysis
Analyze patient prescription fill times, identify outliers using Z-scores, and simulate how sample size and outlier severity affect your statistics.
Dataset Summary — Days to First Fill (n = 1,000)
Mean
15.91days
Dragged upward by outliers
Median
16days
Better reflects typical patient
Std Dev
4.72days
High spread = inconsistent
Patients
1,000
Outlier at 45 days
Patient Data Distribution
Standard Deviation — Step-by-Step Calculation
Standard deviation measures the average distance between each patient's fill time and the dataset mean. You must calculate SD before you can compute a Z-score.
Standard Deviation Formula
Calculate the Mean (X̄)
Find each point's deviation & square it (Xᵢ − X̄)²
Sum all squared deviations Σ(Xᵢ − X̄)²
Divide by n to get Variance (σ²)
Take the square root to get Standard Deviation (SD)
Outlier Detection — Patient at 45 Days
A Z-score tells us how many standard deviations a data point is from the mean. We use it to flag statistically significant outliers.
Z-Score Formula
Identify the data point (X)
Subtract the mean (X̄)
Divide by standard deviation
Compare to threshold |Z| > 1.96
Z-Score Position on Normal Distribution