document.write( "Question 1192384: The weight in pounds of a random sample of 7 babies were recorded before and after
\n" ); document.write( "taking a certain vitamin syrup for a period of one month.
\n" ); document.write( " a) Construct a 95% confidence interval of the difference of the mean weights.
\n" ); document.write( " b) Is there a significant difference in their weights at 0.05 level?
\n" ); document.write( "before 29 22 25 29 26 24 31
\n" ); document.write( "after 39 26 25 35 33 36 32
\n" ); document.write( "

Algebra.Com's Answer #824297 by math_tutor2020(3817)\"\" \"About 
You can put this solution on YOUR website!

\n" ); document.write( "Part a)\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Hypothesis:
\n" ); document.write( "H0:
\n" ); document.write( "H1:
\n" ); document.write( "This is a two-tailed test.\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Given Data\n" ); document.write( "\n" ); document.write( "
beforeafter
2939
2226
2525
2935
2633
2436
3132
\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "For each row separately, subtract the values in the order A-B to form a column of differences (d)\n" ); document.write( "\n" ); document.write( "
ABA-B
beforeafterd = difference
2939-10
2226-4
25250
2935-6
2633-7
2436-12
3132-1
Using a calculator, compute the sample mean and sample standard deviation of the list of difference values in that new column.
\n" ); document.write( "You should get for the sample mean and for the sample standard deviation.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "The sample size is n = 7 which means the degrees of freedom (df) are
\n" ); document.write( "df = n-1
\n" ); document.write( "df = 7-1
\n" ); document.write( "df = 6
\n" ); document.write( "Refer to a T table like this one
\n" ); document.write( "https://www.sjsu.edu/faculty/gerstman/StatPrimer/t-table.pdf
\n" ); document.write( "Locate the row that has df = 6
\n" ); document.write( "Locate the column that has 0.05 as the two tails
\n" ); document.write( "Intersecting the row and column yields the approximate value t = 2.447
\n" ); document.write( "\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Now let's compute the margin of error.
\n" ); document.write( "E = margin of error\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "We can then find the lower bound L
\n" ); document.write( "\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "And the upper bound (U) as well
\n" ); document.write( "\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "The 95% confidence interval in the format (L, U) is roughly (-9.81, -1.62)
\n" ); document.write( "Negative values are valid because it represents the idea that the \"after\" weights are larger than the \"before\" ones.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "=====================================================================================\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Part b)\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "The result of part a) is equivalent to saying we are 95% confident that when using the format
\n" ); document.write( "In other words, we are 95% confident that the pameter we're after () is somewhere between -9.81 and -1.62\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Is in this confidence interval? No, it is not.
\n" ); document.write( "So it's unlikely that is the case.
\n" ); document.write( "There appears to be a significant difference in the weights.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "This means we'd reject the null and side with the alternative hypothesis to conclude that
\n" ); document.write( "

\n" ); document.write( "
\n" ); document.write( "
\n" );