Statistical Inference: (Analytic Statistics) Lec 10
Statistical Inference: (Analytic Statistics) Lec 10
Statistical Inference: (Analytic Statistics) Lec 10
(Analytic statistics)
Lec 10
• Samples are drawn from much larger
populations.
• Data are collected about the sample so that we
can find out something about the population.
• We use samples to estimate quantities such as
disease prevalence, mean blood pressure, mean
exposure to a carcinogen, etc.
• We also want to know by how much these
estimates might vary from sample to sample
(precision) .
Statistical inference
Is the procedure by which we reach
a conclusion about a population on
the basis of the information
contained in a sample that has been
drawn from that population.
Population
Sample
Inference
Statistic
Parameter
Hypothesis Testing:
One Sample Cases
Significant Differences
• Hypothesis testing is designed to detect significant
differences: differences that did not occur by random
chance.
• In the “one sample” case: we compare a random
sample (from a large group) to a population.
8
Hypothesis testing
• Hypothesis testing is to provide information in helping to
make decisions.
• The administrative decision usually depends a test
between two hypotheses.
• Decisions are based on the outcome.
• Hypothesis testing for single sample means
(z test and t test)
9
• Hypothesis testing is a procedure to support one
of two proposed hypotheses.
1. is the null hypothesis or the hypothesis of no
difference.
2. (known as ) is the alternative hypothesis.
It is what we will believe is true if we reject the
null hypothesis.
10
Testing Hypotheses:
Using The Five Step Model
1. Make Assumptions and meet test
requirements. Z test or t test
2. State the null &alternative hypothesis.
3. Select the sampling distribution and
establish the critical region.
4. Compute the test statistic.
5. Make a decision and interpret results.
Single Group Z and T-Tests
x
The null hypothesis (H0) is a hypothesis which the
researcher tries to disprove, reject or nullify. The 'null'
often refers to the common view of something, while
the alternative hypothesis is what the researcher really
thinks is the cause of a phenomenon.
WHY WE USE LARGE SAMPLE…?
When we perform a statistical test we are trying to
judge the validity of the null hypothesis. We are doing
so with an incomplete view of the population. Our
sample is our window into the population. The larger
the sample size the bigger our window. However
without a full view of the population there is always the
chance that our sample will lead us to the wrong
conclusion
The Null and Alternative
1. Hypotheses:
Null Hypothesis (H ): 0
- One (and only one) of these explanations must be true. Which one?
Z- test: Question one
Solution (cont.)
This means the difference between X and µ should be less than
2 SE, i.e.
x - µ < 2 SE
or
Z=
x -µ <2 (SE= 𝞼 /√n)
SE
So if the sample came from the same or similar population, Z
should be less than 2 Null Hypothesis (H o) would
be correct, i.e. the difference is due to chance.
Z- test: Question one
Solution (cont.)
If Z is equal or more than 2, the assumption of no
difference (Ho) is not correct, and should be rejected,
i.e. the difference is real and not due to chance.
Solution
= 18.5 – 20 = -1.5 = |-3|= 3
3.5/√49 0.5
3- Conclusion: This is more than 2, so we reject the
Ho; the difference is real and not due to chance. The
difference is statistically significant at P=0.001
Example: In the population, the average IQ is 100
with a standard deviation of 15. A team of scientists
wants to test a new medication to see if it has either
a positive or negative effect on intelligence,
or no effect at all. A sample of 30 participants who
have taken the medication has a mean of 140.
Did the medication affect intelligence?
Steps for One-Sample z-Test
1. Null Hypotheses: X = µ
2.Alternative Hypotheses: X ≠ µ
3. Calculate Test Statistic
4. State Results
5. State Conclusion
Define Null and Alternative Hypotheses
1-Null Hypotheses: X = µ
2-Alternative Hypotheses: X ≠ µ
Z = 14.60
4-Result: Reject the null hypothesis.
5- Conclusion: z > 2
Medication significantly affected intelligence,
z = 14.60, p < 0.05.
Z- Table
P 0.05 0.02 0.01 0.001
Zap 2 2.3 2.6 3
William_Sealy_Gosset
z Statistic Versus t Statistic
z Statistic t Statistic
• When you know the Mean • When you do not know the
and Standard deviation of a Mean and Standard
population. Deviation of the population
• Calculate the Standard Error • Calculate the Estimate of
of the sample mean the Standard Error of the
sample mean
You can think of the t statistic as an "estimated z-score."
• The estimation comes from the fact that we are using the sample
variance to estimate the unknown population variance.
1, 4, 5, 7, 3, 2, 5, 6
Can we say that the mean number of days
required to bring the temperature down to
normal, for patients with pneumonia treated
with penicillin G is 2 days?
One sample t-test: Solution of question one
n= 8, = 33/8= 4.125, S= 2.03, µ=2