Professional Documents
Culture Documents
Hypothesis Testing
Hypothesis Testing
HYPOTHESIS TESTING
SREYA V.V.
Department of Mathematics
BPIT, ROHINI
-
Statistical Intervals for a Single Sample Confidence Interval on the Mean of a Normal Distribution, Variance Known Confidence Inte
Overview
1 Statistical Intervals for a Single Sample
2 Confidence Interval on the Mean of a Normal Distribution,
Variance Known
3 Confidence Interval on the Mean of a Normal Distribution,
Variance Unknown
4 Confidence Interval on the Variance and Standard Deviation of
a Normal Distribution
5 Hypothesis testing
6 Types of errors
7 P-values in Hypothesis Tests
8 Connection between Hypothesis Tests and Confidence Intervals
9 Tests on the Mean of a Normal Distribution, Variance Known
10 Tests on the Mean of a Normal Distribution, Variance Unknown
11 Tests on the Variance and Standard Deviation of a Normal
Distribution
12 Goodness of fit
13 Simple Linear Regression and Correlation
Statistical Intervals for a Single Sample Confidence Interval on the Mean of a Normal Distribution, Variance Known Confidence Inte
Confidence interval
An interval estimate for a population parameter is called a
confidence interval. Information about the precision of estimation
is conveyed by the length of the interval. A short interval implies
precise estimation
Statistical Intervals for a Single Sample Confidence Interval on the Mean of a Normal Distribution, Variance Known Confidence Inte
Problem
Problem
A random sample has been taken from a normal distribution and
the following confidence intervals constructed using the same data:
(38.02, 61.98) and (39.95, 60.05)
1 What is the value of the sample mean?
t confidence interval on µ
Statistical Intervals for a Single Sample Confidence Interval on the Mean of a Normal Distribution, Variance Known Confidence Inte
Problem
Statistical Hypothesis
A statistical hypothesis is a statement about the parameters of one
or more populations.
Null Hypothesis H0
A null hypothesis is a claim mostly are equality about a certain
parameter of the population.
Alternative Hypothesis H1
Statement which contradicts the null hypothesis.
Statistical Intervals for a Single Sample Confidence Interval on the Mean of a Normal Distribution, Variance Known Confidence Inte
Example
A machine was producing chocolate bars of average 100 gms.
After maintainance a worker claims that the machine is no longer
produces chocolates of 100 gms.
Here,
H0 : µ = 100g
H1 = µ ̸= 100g
The sample mean can take on many different values. For example,
if 98.5 ≤ x ≤ 101.5, we will not reject the null hypothesis
H0 : µ = 100, and if eitherx < 98.5 orx > 101.5, we will reject the
null hypothesis in favor of the alternative hypothesis H1 : µ ̸= 100.
The values of x that are less than 98.5 and greater than 101.5
constitute the critical region for the test; all values that are in the
interval 98.5 ≤ x ≤ 101.5 form a region for which we will fail to
reject the null hypothesis. By convention, this is usually called the
acceptance region. The boundaries between the critical and
acceptance regions are called the critical values.
Statistical Intervals for a Single Sample Confidence Interval on the Mean of a Normal Distribution, Variance Known Confidence Inte
Types of errors
Type I Error
Rejecting the null hypothesis H0 when it is true is defined as a type
I error.
Type II Error
Failing to reject (Accept) the null hypothesis when it is false is
defined as a type II error.
Statistical Intervals for a Single Sample Confidence Interval on the Mean of a Normal Distribution, Variance Known Confidence Inte
Example
Solution: Given n = 9, σ = 2
H0 : µ = 100
H1 : µ ̸= 100
Statistical Intervals for a Single Sample Confidence Interval on the Mean of a Normal Distribution, Variance Known Confidence Inte
P-value
The P-value is the smallest level of significance that would lead to
rejection of the null hypothesis H0 with the given data.
Example
H0 : µ = 50, H1 : µ ̸= 50
H 0 : θ = θ0 H1 : θ ̸= θ0
For the problem x = 51.3, σ = 2.5 and n = 16, if we calculate the
95% CI for µ, we get 51.3 ≤ µ ≤ 52.525. Hence µ = 50 lies
outside the CI. Thus we can reject H0 .
Statistical Intervals for a Single Sample Confidence Interval on the Mean of a Normal Distribution, Variance Known Confidence Inte
Problem
Problem
Problem
For H0 : µ = µ0 , H1 : µ < µ0
P = P(Tn−1 < t0 ),
where t0 = tα,n−1 . Reject H0 if t0 < −tα,n−1
Statistical Intervals for a Single Sample Confidence Interval on the Mean of a Normal Distribution, Variance Known Confidence Inte
Statistical Intervals for a Single Sample Confidence Interval on the Mean of a Normal Distribution, Variance Known Confidence Inte
Problem
Given body temperatures of 25 females: 97.8, 97.2, 97.4, 97.6,
97.8, 97.9, 98.0, 98.0, 98.0, 98.1, 98.2, 98.3, 98.3, 98.4, 98.4,
98.4, 98.5, 98.6, 98.6, 98.7, 98.8, 98.8, 98.9, 98.9, and 99.0.
Test the hypothesis H0 : µ = 98.6 versus H1 : µ ̸= 98.6, using
α = 0.05. Find the P-value.
Statistical Intervals for a Single Sample Confidence Interval on the Mean of a Normal Distribution, Variance Known Confidence Inte
Problem
Regression Analysis
The collection of statistical tools that are used to model and
explore relationships between variables that are related in a
nondeterministic manner is called regression analysis.
E (Y |x) = µY |x = β0 + β1 x
Y = β0 + β1 x + ϵ
Problem
6 7
the required least-squares line is y = 11 + 11 x
Statistical Intervals for a Single Sample Confidence Interval on the Mean of a Normal Distribution, Variance Known Confidence Inte
Problem
y = 35.82 + 0.476x.