p-values

Problem set P1: p values and the null hypothesis.

Key questions for class discussion:

  • I get the purpose of the null hypothesis H0H_0 , what is the purpose of the other distribution?

  • How often do you expect your experiment to produce pp -values less than 0.05?

Answer 1: The “other distribution” is the truth. Knowing the truth lets you make a distribution of what p-values you expect. This gives you an idea of how often your experiment will give p<0.05p<0.05 for example. (Since the pp -value is a random variable, you won’t see small pp -values all of the time… unless the truth is very very far from your null hypothesis.)

More questions:

  • Under what circumstances should you “accept the null hypothesis”? Discuss what goes wrong with this idea when you start to think about the details.

  • Does scaling xx/3x \mapsto x/3 change the area under the curve for the Gaussian distribution? Why not?

Problem Set P1

Given information: your null hypothesis H0H_0 is that XX comes from a normal distribution (the fancy name is Gaussian) with mean 5 and variance 9.

  1. You observe x=8x=8 .
    1. What pp -value do you report? Explain how you get your number.
    2. Interpret this value in a sentence. Use a percentage in your answer don’t just say something about “reject the null hypothesis”.
  2. (Standardization or zz -score.)
    1. What linear transformation changes the distribution for XX into the unit normal distribution?
    2. The outputs of the transformation above are called z-scores. What is the z-score of x=10x=10 ?
    3. What is the pp -value associated with observing x=0x=0 ?
  3. Suppose you have set your signficance level of α=0.03\alpha=0.03 and the true distribution of the random variable YY is a normal N(μ=1,σ2=1/4)\mathcal{N}\left(\mu=1, \sigma^2 = 1/4\right) .
    1. Show the distribution of pp -values for 10,000 sample y’s.
    2. What is the probability that you will get a significant result from a single experiment? (An estimate is ok.)

Appendix

It seems like applying a factor shinking xx by σ\sigma would change the area under the normal distribution curve. Some time we should talk about why that does not happen. If you look at the density function for a given σ\sigma , you will see that there are two places that σ\sigma appears, … one of them acts as the “du” area correction factor for your transformed integral. (This is too terse to be a real explanation.)

The formula for the Gaussian (normal) distribution with a mean of 0 and a standard deviation of σ\sigma is:

f(x)=1σ2πexp(12(x/σ)2) f(x) = \frac{1}{\sigma \sqrt{2 \pi}} \exp\left(-\frac{1}{2}(x/\sigma)^2\right)
Last modified August 18, 2023: 2022-2023 End State (7352e87)