Prob 3
Prob 3
Explanation:
3.1Problem Do you think there is evidence that mean moisture contents in both types
of shingles are within the permissible limits?
State your conclusions clearly showing all steps.
Solution:
Since pvalue < 0.05, reject H0 . There is enough evidence to conclude that the mean
moisture content for Sample B shingles is not less than 0.35 pounds per 100 square
feet. p-value = 0.0021. If the population mean moisture content is in fact no less
than 0.35pounds per 100 square feet, the probability of observing a sample of 31
shingles that will result in a sample mean moisture content of 0.2735 pounds per
100 square feet or less is .0021.
3.2 Problem Do you think that the population means for shingles A and B are equal?
Form the hypothesis and conduct the test of the hypothesis. What assumption do you
need to check before the test for equality of means is performed?
Solution:
H0 : μ(A)= μ(B)
Ha : μ(A)!= μ(B)
α = 0.05
t_statistic,p_value=ttest_ind(df['A'],df['B'],equal_var=True ,nan_policy='omit')