Professional Documents
Culture Documents
Andhra Pradesh
May 6, 2021
(Module-3) Inference for Decision Making-I
1. The type I error and type II error are related. A decrease in the
probability of one generally results in an increase in the probability of the
other.
2. The size of the critical region, and therefore the probability of
committing a type I error, can always be reduced by adjusting the critical
value(s).
3. An increase in the sample size n will reduce α and β simultaneously.
Aim To test whether the difference between sample mean and population
mean is significant or not.
Null hypothesis: µ = µ0
Alternative hypothesis: µ 6= µ0 or µ > µ0 or µ < µ0
Level of significance: choose either 1% or 5%
x̄−µ
Test statistic : z = (σ/ √
n)
Aim To test whether the difference between sample mean and population
mean is significant or not.
Null hypothesis: µ = µ0
Alternative hypothesis: µ 6= µ0 or µ > µ0 or µ < µ0
Level of significance: choose either 1% or 5%
x̄−µ
Test statistic : z = (σ/ √
n)
Conclusion: Compare the test statistic z with the critical value zα at given
level of significance (α).
If |z| < zα , we conclude that it is not significant, we accept the null
hypothesis.
If |z| > zα , then the difference is significant and hence we reject the null
hypothesis.
P-value approach
Probability of obtaining a sample ”more extreme” than the ones observed
in your data, assuming null hypothesis is true.
Conclusion of P-value approach
If P ≤ α, then Reject H0
If P > α, then fail to Reject H0
P-value approach
Probability of obtaining a sample ”more extreme” than the ones observed
in your data, assuming null hypothesis is true.
Conclusion of P-value approach
If P ≤ α, then Reject H0
If P > α, then fail to Reject H0
Example A random sample of 100 recorded deaths in the United states
during the past year showed an average life span of 71.8 years. Assuming a
population standard deviation of 8.9 years, does this seem to indicate that
the mean life span today is greater than 70 years? Use a 0.05 level of
significance by p−value approach.
x̄−µ
√
t=
(s/ (n))
ν = n −P1 degrees of freedom.
p (x−x̄)2
s = ( n−1 ) = Sample standard deviation.
Conclusion: Compare the test statistic t with the tabulated t value at
given level of significance (α) with ν degree of freedom.
If |t| < tα , we conclude that it is not significant, we accept the null
hypothesis.
If |t| > tα , then the difference is significant and hence we reject the null
hypothesis.
Company 1 Company 2
n1 = 174 n2 = 355
x¯1 = 3.51 x¯2 = 3.24
σ1 = 0.51 σ2 = 0.52
Married Unmarried
X̄ $639.60 $658.20
σ $60 $90
n 40 60
Example A builder claims that heat pumps are installed in 70% of all
homes being constructed today in the city of Vijayawada, AP. Would you
agree with this claim if a random survey of a new homes in this city showed
that 8 out of 15 had heat pumps installed? Use a 0.10 level of significance.
Note:
1. If n is small, use binomial distribution.
2. If n is very large and p approaches to 0, use Poisson distribution
(µ = np0 ).
3. For continuous random variable use normal distribution
z = √x−np 0
np0 q0 =
√p̂−p0 , p̂ = x/n
p0 q0 /n
Example You are testing two flu drugs A and B. Drug A works on 41
people out of a sample of 195. Drug B works on 351 people in a sample of
605. Are two drugs comparable? Use a 5% level of significance.
Example You are testing two flu drugs A and B. Drug A works on 41
people out of a sample of 195. Drug B works on 351 people in a sample of
605. Are two drugs comparable? Use a 5% level of significance.
Example A candidate for election may switch in city A but not in city B.
A sample of 500 voters from city A showed that 59.6% were favored him
where as a sample of 300 voters from B showed that 50% of the voters
favored him. Discuss whether he switch has produced any effect on voters
in city A. Use a 5% level of significance.