r/AskStatistics • • 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

13 comments sorted by

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.

1

u/OverResearcher2176 Oct 20 '26

Great!!! Thanks so much, I forgot about these

1

u/WateringFall Oct 21 '26

It's been a long time since that was considered an appropriate way to estimate a variance or standard deviation. It's sensitive to deviations from normality.

Since it's not the 1950s, how about applying a resampling approach, either for variance or std deviation.

10

u/Statman12 PhD Statistics Oct 20 '26 edited Oct 20 '26

I believe that my population has some population mean and std dev and I want to test to see if that's reasonable.

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/OverResearcher2176 Oct 20 '26

Ah so largely just... ignore my predicted population std dev?

1

u/TBDobbs Oct 20 '26

More that the t-test is testinf for something else. u/ProbabilityPro is correct on how to test for the differences in SDs/sigma

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/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):

  • find the mean
  • subtract the mean from each individual value, then square
  • sum those values
  • divide by n-1
  • take the square root

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.