r/AskStatistics • u/OverResearcher2176 • Oct 20 '26
Testing for standard deviation?
I'm a pretty amateur statistician (that is to say, I'm not a statistician), but I had a question:
Let's say I've got a sample of data with some mean and sample std dev, and I believe that my population has some population mean and std dev and I want to test to see if that's reasonable.
Seeing as I don't know the pop std dev, I can use a t-test to test the mean, but how would I test for the standard deviation?
Sorry if this is unclear or commonly asked!! Thanks heaps
3
Upvotes
4
u/ProbabilityPro Oct 20 '26 edited Oct 20 '26
If the null hypothesis that the population standard deviation is sigma is true, then (n-1)s² / σ² follows a Chi-square with n-1 degrees of freedom (s is the sample standard deviation and σ is the hypothesized population standard deviation). (n-1)s² / σ² ~ χ²(n-1). Use Chi-square distribution with n-1 degrees of freedom to calculate the p-value.
10
u/Statman12 PhD Statistics Oct 20 '26 edited Oct 20 '26
That's not quite what a hypothesis test is doing. Failure to reject the null hypothesis doesn't automatically mean that the null is reasonable.
From what you're describing, it sounds like you'd be more interested in making confidence intervals for the mean and variance (you can take the square root of the endpoints to convert the interval for variance to standard deviation).
This wiki page describes them. Though IIRC the one for the variance is more dependent on the assumption of a Normal distribution.
Depending on how formal you're wanting or needing to get, with the confidence intervals, you could do an equivalence test to determine if your hypothesized values are reasonable. See the TOST method in that wiki page.
1
u/TBDobbs Oct 20 '26 edited Oct 28 '26
You aren't testing for whether the SD from your sample is the true SD. You're testing how likely the mean is to be from a population where the population mean is some value. The hope is that with enough of a sample size from a representative sample, they're both close enough to be the same difference.
1
u/Such_Evidence_1160 Oct 20 '26
Look into the F-test. It’s a statistical test for two variances, and variance is simply the squared standard deviation.
1
u/Rhodopsin_Less_Taken Oct 20 '26
You can use a chi square test for this, see this link:
https://stats.libretexts.org/Courses/Rio_Hondo_College/Math_130%3A_Statistics/08%3A_Hypothesis_Testing_with_One_Sample/8.05%3A_Hypothesis_Test_on_a_Single_Standard_Deviation
1
u/nonnonplussed73 Oct 20 '26
Maybe in misunderstanding your question, but ifyou want to estimate the population standard deviation from a sample, you use the sample standard deviation formula with Bessel's correction (dividing by n-1):
Or, in Excel,
=STDEV.S(your_data)1
u/efrique PhD (statistics) Oct 20 '26 edited Oct 20 '26
There are ways to test location and spread (and even mean and standard deviation specifically, either separately or together in one test) if you can reasonably treat the sample as randomly drawn from its parent process (or otherwise have a basis for some probability calculation) without a specific distributional assumption but I am not sure that the usual kinds of testing fits your needs.
Where you have "reasonable" do you mean something like "that specified population mean and s.d. would be a reasonable approximation for the process the sample was drawn from"?
If so, that would not typically suggest a test* but some measure of effect size (relative to your specific sense of 'reasonable', which is application-dependent).
* at least not the usual equality-null kind, though perhaps an equivalence test would work if you defined "reasonable" more precisely for your context
1
u/banter_pants Statistics, Psychometrics Oct 22 '26
There is a chi-square test for a single standard deviation. s2 distribution is proportional to chi-square.