Question 1 – Conceptual

Part A: Why do we calculate a test-statistic?

It saves us from having to diagram what the null distribution looks like.

Part B: Why do we sometimes call tests left, right, or two-tailed tests?

Depending on the alternative hypothesis, we may be looking at the left, right, or both tails of a distribution to get the p-value.


Question 2 – Finding P-values

Using a standard normal distribution N(0,1) find the p-value associated with the following Z test-statistic and alternate hypothesis. Be sure to draw a graph. We used R to calculate normal probabilities with the pnorm() function. Remember that right-tail probabilities need lower.tail=F in pnorm().

Part A: Z = -1.35, left-tailed test

pnorm(-1.35)
## [1] 0.08850799

Part B: Z = 1.48, right-tailed test

pnorm(1.48, lower.tail=F)
## [1] 0.06943662

Part C: Z = -.4, two-tailed test

2*pnorm(-.4)
## [1] 0.6891565

Part D: Z = 1.87, two-tailed test

2*pnorm(1.87)
## [1] 1.938516

Question 3 – Do Aliens Exist?

Do aliens exist? In May 2021, YouGov asked 4,839 adult Great Britain residents whether they think aliens exist, and if so, if they have or have not visited Earth. You want to evaluate if more than a quarter (25%) of Great Britain adults think aliens don’t exist.

In the survey 22% responded “I think they exist, and have visited Earth”, 28% responded “I think they exist, but have not visited Earth”, 29% responded “I don’t think they exist”, and 22% responded “Don’t know”. A friend of yours offers to help you with setting up the hypothesis test and comes up with the following hypotheses. Indicate any errors you see.

H\(_0\): \(\widehat{p} = .29\), H\(_A\): \(\widehat{p} > .29\)

Hypotheses should use .25 since that is what we are testing. Both should use \(p\) and not \(\hat{p}\) because we are trying to learn about the population not the sample.


Question 4 – Legalization of Marijuana

The General Social Survey asked a random sample of 1,563 US adults: “Do you think the use of marijuana should be made legal, or not?” 60% of the respondents said it should be made legal. (NORC 2022)

Part A: Is 60% a sample statistic or a population parameter? Explain.

Sample statistic, because it comes from data we collected.

Part B: A news piece on this survey’s findings states, “Majority of US adults think marijuana should be legalized.” Perform a hypothesis test to see if this claim is justified (state hypotheses, find test-statistic, p-value, strength of evidence, conclusion)

H\(_0\): p = 0.5, H\(_A\): p > 0.5

Test-statistic =

(0.6 - 0.5) / sqrt(0.5 * 0.5 / 1563)
## [1] 7.906959

P-value =

pnorm(7.91, lower.tail=F)
## [1] 1.286944e-15

Strength of evidence in favor of alternate hypothesis: Overwhelmingly strong

Is the news piece claim justified by the hypothesis test results? Explain.

Yes. There is overwhelming evidence that the majority of US adults favor marijuana legalization.

Part C: A critic points out that this hypothesis testing method is only accurate if the test-statistic follows a normal distribution, or if the normal model is a good approximation. Do the conditions hold for this data? Explain.

Yes. The required conditions are that we have a random sample, \(n*p_0 = 1563*.5 > 10\) and \(n*(1-p_0) = 1563*.5 > 10\). All of these are met.


Question 5 – Practicing Interpretations and Conclusions

Some people claim that they can tell the difference between a diet soda and a regular soda in the first sip. A researcher wanting to test this claim randomly sampled 80 such people. He then filled 80 plain white cups with soda, half diet and half regular through random assignment, and asked each person to take one sip from their cup and identify the soda as diet or regular. 53 participants correctly identified the soda.

The test-statistic is 2.91 with a p-value of

2*pnorm(2.91, lower.tail=F)
## [1] 0.003614288

Interpret the p-value in this context.

.00361 is the probability of getting a test-statistic of 2.91 or more extreme if people actually cannot tell the sodas apart.

Write a conclusion that answer the researcher’s question.

There is overwhelmingly evidence from this data that people are able to tell the sodas apart.


Nearsightedness (myopia) is a common vision condition in which you can see near objects clearly, but farther away objects blurry. It is believed that nearsightedness affects about 8% of all children. In a random sample of 194 children, 21 are nearsighted. The following comes from conducting a hypothesis test to see if the 8% value is inaccurate. The test-statistic and p-value are given by the following:

Z = (21/194 - .08) / sqrt(0.08 * (1-0.08) / 194)
Z
## [1] 1.450243
2*pnorm(Z, lower.tail=F)
## [1] 0.1469908

Explain why we want to use a two-tailed test.

We want to use a two-tailed test because we do not care which direction the difference goes.

Write up a conclusion to whether or not the 8% value is inaccurate.

There is little to no evidence that the 8% value is inaccurate. The data agrees with the 8% figure.