Lecture 39 - Hypothesis Testing
Lecture 39 - Hypothesis Testing
&
Applied Probability
Credits: 3
1
What is Hypothesis?
Definition:
A hypothesis is a statement or assumption about a
population parameter that we can test using sample data.
Example:
A company claims that the average salary of their employees is
500,0000 Rs per year.
2
What is Hypothesis?
Statistics plays a key role in testing hypotheses and
verifying claims using data from random samples.
3
Null and Alternative Hypothesis
Null Hypothesis (H₀): the statement of no effect or no
difference. It is the hypothesis we assume is true unless
proven otherwise.
Example
H₀: the average salary of employees is 500,0000.
8
The P-value
By convention, p-values < 0.05 are often accepted as
“statistically significant” in the medical literature; but this
is an arbitrary cutoff.
9
The P-value – Example
You are testing if a new drug reduces blood pressure.
You collect your data, and the P-value from your test is
0.03
10
The P-value – Example
You are testing if a new drug reduces blood pressure.
11
Summary: Hypothesis Testing
Define your hypothesis (null, alternative)
Do an experiment
13
Hypothesis Testing – Example
Step1 – Define the hypothesis:
– Sample Differences=[9,11,10,12,8,9,11,10,10,10,9,10] 14
Hypothesis Testing – Example
Step2 – Do the experiment:
Assume yo randomly select 12 patients and measure
their blood pressure before and after taking the drug:
– Sample Differences=[9,11,10,12,8,9,11,10,10,10,9,10]
15
Hypothesis Testing – Example
Step4 – Find the P-value:
We use a t-distribution table to find the P-value
associated with the t-statistic of -2.32 and n - 1 = 11
degrees of freedom.
P-value = 0.05
α = 0.05 (commonly used significance level)
Since P-value (0.05) is equal to than α = 0.05, we can
accept or reject the null hypothesis.
16
Hypothesis Testing – Example
17
Hypothesis Testing – Example
18
Hypothesis Testing – Example2
Ms. Smith's vote percentage is 55%
19
Hypothesis Testing – Example2
H₀: Ms. Smith's vote percentage is 55%
20
Hypothesis Testing – Z table
21
Hypothesis Testing – Z table
22
P-value Caution
P-value use in scientific practice
Usually used to reject the null hypothesis that the data is
random noise
Common practice is p < 0.05 is considered significant
evidence for something interesting
23
Hypothesis Testing – Example3
24
Hypothesis Testing – Example3
The statistic to use is 𝑇 = ( (𝑠−35) / 0.827 )
26