AP Stat Ch 9-10 Flashcards
Hypothesis test
A method for using data from a sample to decide between two competing hypotheses about a population characteristic.
Hypothesis
A hypothesis is a claim or statement about the value of a single population parameter.
Null hypothesis
A statistical test starts with a careful statement of the claims we want to compare. We initially assume that one of the hypothesis is true. This is called the null hypothesis. Ho
This is the claim, the population characteristic.
Alternative hypothesis
The other hypothesis, Ha. This is the alternative to the claim
Not equal to, bigger, or smaller than the null hypothesis
Proportion hypothesis test steps
- State the hypothesis, alpha level, define parameters, one sample z test for prop
Ho and Ha and alpha and define p = … - Conditions
A. SRS
B. Normal? np>10 and n(1-p)>10. Use the null hypothesis p value, not p hat
C. Indep? As long as population size is at least 10 times sample size - Calculate
If not equal to, 2*P (p hat <= sample proportion) = 2 * P (Z<= (p hat-p)/SQRT (p(1-p)/n)
Get the P-value - Conclusion
Either: since my p value is bigger than my alpha value, I fail to reject Ho and cannot conclude Ha in context
Or since my alpha value is bigger than my p value, I reject Ho in favor in favor of Ha and conclude Ha in context
Type I error
Rejecting Ho, when Ho is actually true.
Convicting an innocent person
Type II error
Failing to reject Ho when Ho is false
Letting guilty go free
Ex. A machine is set to produce bolts with an average diameter of 1 cm. Every hour a sample is inspected and the machine is adjusted if there is convincing evidence that the average diameter is not 1 cm.
State Ho, Ha, type I and type II errors
Ho: mu = 1
Ha: mu not equal 1
Type 1: mean actually is 1, but you say it’s not – adjust the machine but shouldn’t have
Type 2: shouldn’t have adjusted the machine, but did
Prob of type I error
Alpha, the level of significance.
The probability that the test will reject the null hypothesis when Ho is actually true.
Probability of type II error
Denotes by Beta. Ha is true, but you fail to reject Ho.
Power of a test
Power is 1-Beta, the probability of correctly rejecting Ho. The probability of rejecting Ho when it is false.
Prob that Ha is true and you reject Ho
How to increase the power
- Increase significance level (alpha):
Alpha bigger, beta smaller, so power bigger - Consider alternative farther away from mu not. Larger effect size
- Increase the sample size
More data, more information about X bar, so better chance of distinguishing values of mu. n increases, x bar –> mu. More confident about p value, more confident about decision to reject Ho. - Decrease sigma
Key: choose as high an alpha level you’re willing to risk and large a sample size as you can afford
One sample z test for a population mean (assume sigma is known)
Standardize and use test statistic z = x bar - mu not / (sigma / SQRT (n))
Steps:
1. State Ho, Ha, alpha level, 1 sample z test for mu = true mean…
2. Conditions
A. SRS?
B. Norm? n>30 or make a box plot
C. Indep? Assume more than 10 times population
3. Calculate
P (x bar > sample stat) = P (Z > (x bar - mu not)/ (sigma/ SQRT (n)))
Gives the p value
4. Conclude:
Either since my p value is less than my alpha value, I reject Ho in favor of Ha and conclude Ha in context
Or since my p value is greater than my alpha value, I fail to reject Ho and cannot conclude Ha in context.
One sample t stat
t = (x bar - mu)/ (s/ SQRT (n))
Four step process for one sample t test
- Hypotheses:
State Ho, Ha, alpha level, 1 sample t test for mu = true mean… - A. SRS?
B. Large sample size? (n>30 or pop is approx normal (look at data))
C. Independence? Pop ten times sample - Test:
n-1 degrees of freedom–>
P (x bar < value) = P (t<= (x bar - mu not)/(s/SQRT(n))
P (t< value)
Use the table, get df = n-1 and round down. Look for t value and go to top, find what p value it is between - Conclude:
Since p value is bigger than alpha, I fail to reject the null hypothesis and cannot conclude the alternative hypothesis in context.
Or since alpha value is bigger than p value, I reject null hypothesis and conclude alternative hypothesis in context