Download Statistical Inference: Confidence Intervals and Hypothesis Testing and more Study notes Mathematics in PDF only on Docsity!
Statistical Testing
- Vocabulary
- A statistic is a statement of numerical information about a sample.
- A parameter is a statement of numerical information about a popula- tion.
- A point estimate is a single number, based on sample data, used to estimate a population parameter.
- Usualy the point estimate is the mean of the data in the sample.
- An confidence interval is an interval which contains the true value of the parameter to a high probability, called the confidence level.
- Variables
- μ is the mean for the entire population as a whole
- σ is the standard deviation for the entire population
- x is the mean over the sampling distribution
- σx is the standard error of the mean or the standard deviation of the sampling distribution
- n is the sample size
- The Five Step Method
- Step 1. Determine the level of significance you are using: 90%, 95%, or 99%.
- Step 2. Compute z from the following table
Level of confidence z-value 90% 1. 95% 1. 99% 2.
- Step 3. Determine the mean x for the sample.
- The Method Separates into two branches depending on whether
- Case A: σ for the population is known
- Case B: σ for the population is unknown
1
- Branch A: Sigma is known
- Goal: Compute the interval (x − zσx, x + zσx).
- Step 4A. If σ for the population is known, compute σx by the formula on page 63 of the text: σx =
σ √ n
- Step 5A. Combine the numbers found above to calculate x − zσx and x + zσx 5. Two Remarks
- Remark Number 1. In Step 2, if the significance level is not 90, 95, or 99 percent, compute the z-value as follows: First convert the significance level to a percentage and divide the percentage by two. Look up this percentage in the table on page 314 of the text and read off its corresponding z value.
- Remark Number 2. If the standard deviation of the population is not known, or cannot be computed by the p–q rule, then it can be estimated by ajusting the standard deviation of one particular sample.
- We will not consider this harder case.
- Example. Popularity Polls
- A recent survey of 500 Americans 185 approved of the way President Bush is handling the War in Iraq.
- What is the associated confidence interval about 185 at a confidence level of .95?
- Solution:
- Step 1. We are given that the confidence level is. 95
- Step 2. Find the z value.
- From the table we see that the z–value corresponding to confidence level = .95 is z = 1. 96
- Step 3. Find x
- Using Percentages
- To express the solution in terms of percentages divide by 5: 164/5 = 32 .8 and 206/5 = 41. 2
- This means that in 95 percent of all surveys of sample size 500, Bush’s approval rating should lie in the range 33 to 41 percent.
- Since 33 is 4 percentage points below 37 and 41 is 4 percentage points above 37,
- you will sometimes see this written in a poll as
Bush’s approval rating is 37% ± 4%
- Hypothesis Testing
- The Null Hyptothesis: the statement about the population parameter to be tested.
- The Alternative Hyptothesis: the conclusion to be drawn if the null hyptothesis is rejected.
- Set the level of significance or alpha level — the probability level at which we reject the null hypothesis.
- Note: The alpha level is just 100% minus the confidence level:
Confidence Level Alpha level 90% 10% 95% 5% 99% 1%
- Hypothesis Testing Cont’d
- Using the 5-step method, compute the confidence interval about the hypothesized value of μ
- Make the statistical conclusion as follows:
- If the statistic lies in this interval, then we say it supports the null hypothesis.
- If the statistic does not lie in this interval, then we reject the null hypothesis.
- Note: A test never proves a statement is true or false.
- Example from Health Field
- According to national health statistics, 40% of patients in the United States that have full blown AIDS die within one year.
- In a sample of 60 AIDS patients that are given the experimental drug AZT , 12 die within one year.
- In order to determine if the drug is a medical breakthrough, the doc- tors wish to determine whether the percentage of deaths for the sample group falls within a 99% confidence interval about the national percent- age of 40%.
- Hypothesis to be tested (or null hypothesis): The drug AZT did not significantly help the 60 AIDS patients.
- Example from Health Field
- Step 1. We are given that the confidence level is. 99
- Step 2. Find the z value.
- From the chart, we see that the z–value corresponding to confidence level .99 is z = 2. 575
- Step 3. Find the mean of the sample distribution x
- If the national average of a 40 percent death rate holds for the 60 AIDS patients, then we would expect
x = (.40)(60) = 24 deaths per year
- Step 4: Find σx
σ =
- The standard error of the mean is σ √ n
- Since the sample size is 60, it is helpful to rewrite 6.3 percent as a number out of 60.
- So we compute 6.3 percent of 60:
σx =. 063 × 60 = 3. 78
- S = the standard deviation of the one particular sample we took of n = 50 students.
- The Estimator
- Without the p − q rule, one idea is to use S to obtain an estimate for σ.
- One estimate commonly used for σ is
- σ ≈ S
n n − 1
- Case B
If σ for the population is not known, we compute the interval (x − z σ̂ x , x + z ̂σx).
Step 4B. If σ for the population is not known, compute ̂σx by the formula
̂ σx =
S
√ (^) n √^ n−^1 n
S
n − 1
where S is the standard deviation of the sample.
Step 5B. Combine the numbers found above to calculate x−z σ̂ x and x+z ̂σx.
- Testing for Bias
Racial bias in death penalty
Death Sentence yes no White 19 141 Black 17 149
White:
Black:
- Testing for Bias Cont’d
White Victim Black Victim
Death Sentence yes no White 19 132 Black 11 52
Death Sentence yes no White 0 9 Black 6 97
White Victim Black Victim
White:
Black:
White:
Black:
- Chi Square Testing
Vocabulary:
- The null hypothesis — the assumed value of the population parameter to be tested.
- Typically the null hypothesis states: there is no difference between measured values and predicted values.
- The alpha level — the probability at which the null hypothesis will be rejected 25. Variables
- n = number of data points
- Fi = the observed frequency outcome for the ith data point
- Ei = the expected frequency outcome for the ith data point
- The Null Hypothesis
Use Chi-square testing with alpha level .05 to test the
Null Hypothesis: There is NO DIFFERENCE between the opinions of the religious and non-religious NIU students.
- Computing the Expected Values
If there was no bias among the 40 religious students, then we would expect that
(.50) × (40) = 20 would approve (.40) × (40) = 16 would disapprove (.10) × (40) = 4 would have no opinion
Of the 60 non-religious students, we would expect the following outcomes:
(.50) × (60) = 30 would approve (.40) × (60) = 24 would disapprove (.10) × (60) = 6 would have no opinion
- Expected Data
Putting this information into a chart
Approve Disapprove No opinion Total Religious 20 16 4 40 Not Relig. 30 24 6 60 Total 50 40 10 100
- The χ^2 Calculation
We compute
χ^2 =
(F 1 − E 1 )^2
E 1
(F 2 − E 2 )^2
E 2
(F 3 − E 3 )^2
E 3
(F 6 − E 6 )^2
E 6
(14 − 20)^2
(23 − 16)^2
(3 − 4)^2
(36 − 30)^2
(17 − 24)^2
(7 − 6)^2
- The Conclusion
The degrees of freedom for this problem is d = 2, since you can determine all the other numbers once you know two of them.
The table for one degree of freedom at a .05 significance level gives the value
In our calculation χ^2 = 8.52 exceed 5.
This means that there is a less than 5% chance that the observed frequencies occurred by chance.
Conclusion: at a .05 significance level, the data indicates that reglious students are more likely to disapprove of gay marriage than non-religious stu- dents.
Note that the table for a .01 significance level gives the value 9.21. So at a. significance level, we accept the null hypothesis that the observed frequencies lie within a 99% probability of occurring merely by chance.
- Conclusion
- The degrees of freedom for this problem is d = 1, since you know F 2 once you know F 1.
- The table for one degree of freedom at a .05 significance level gives the value 3.841.
- In our calculation χ^2 = 5.03 exceed 3.84.
- This means that there is a less than 5% chance that the observed fre- quencies occurred by chance.
- Conclusion: at a .05 significance level, the person is exhibiting some physic ability.
- Note that the table for a .01 significance level gives the value 6.635. So at a .01 significance level, we accept the null hypothesis that the observed frequencies lie within a 99% probability of occurring merely by chance.