document.write( "Question 1193085: Two-sample t test versus matched pairs t test. Consider the following data set. The data were actually collected in pairs, and each row represents a pair.\r
\n" );
document.write( "\n" );
document.write( "Group 1 Group 2\r
\n" );
document.write( "
\n" );
document.write( "\n" );
document.write( "48.86 48.88\r
\n" );
document.write( "
\n" );
document.write( "\n" );
document.write( "50.60 52.63\r
\n" );
document.write( "
\n" );
document.write( "\n" );
document.write( "51.02 52.55\r
\n" );
document.write( "
\n" );
document.write( "\n" );
document.write( "47.99 50.94\r
\n" );
document.write( "
\n" );
document.write( "\n" );
document.write( "54.20 53.02\r
\n" );
document.write( "
\n" );
document.write( "\n" );
document.write( "50.66 50.66\r
\n" );
document.write( "\n" );
document.write( "45.91 47.78\r
\n" );
document.write( "
\n" );
document.write( "\n" );
document.write( "48.79 48.44\r
\n" );
document.write( "
\n" );
document.write( "\n" );
document.write( "47.76 48.92\r
\n" );
document.write( "
\n" );
document.write( "\n" );
document.write( "51.13 51.63\r
\n" );
document.write( "\n" );
document.write( "(A)Suppose that we ignore the fact that the data were collected in pairs and mistakenly treat this as a two-sample problem. Compute the sample mean and variance for each group. Then compute the two-sample t statistic, degrees of freedom, and P-value for the two-sided alternative.
\n" );
document.write( "(B)Now analyze the data in the proper way. Compute the sample mean and variance of the differences. Then compute the t statistic, degrees of freedom, and P-value.
\n" );
document.write( "(C)Describe the differences in the two test results \n" );
document.write( "
Algebra.Com's Answer #825078 by math_tutor2020(3817) ![]() You can put this solution on YOUR website! \n" ); document.write( "Given Data \n" ); document.write( "
\n" ); document.write( " \n" ); document.write( "\n" ); document.write( "Part (A)\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "Let's compute the sample mean of Group 1. \n" ); document.write( "To get the sample mean, we first add up the data values \n" ); document.write( "48.86+50.6+51.02+47.99+54.2+50.66+45.91+48.79+47.76+51.13 = 496.92\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "Then we divide that over the sample size n = 10 \n" ); document.write( "496.92/n = 496.92/10 = 49.692 \n" ); document.write( "This is the sample mean (xbar) for group 1. \n" ); document.write( "I'll refer to this as xbar1.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "Follow similar steps for group 2 to find that \n" ); document.write( "xbar2 = 50.545 \n" ); document.write( "Note: this does NOT mean xbar squared.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "Now let's calculate the variance for group 1. \n" ); document.write( "Here's the data values for group 1 only, which I'll call X. \n" ); document.write( "
\n" ); document.write( "For each X value, subtract off the value of xbar = 49.692 \n" ); document.write( "Then square the difference. \n" ); document.write( "For example, we have (X-xbar)^2 = (48.86-49.692)^2 = 0.692224 in the first row. \n" ); document.write( "
\n" ); document.write( "Sum everything in the second column and you should get 48.35376 \n" ); document.write( "This is the Sum of the Squared Errors (SSE) \n" ); document.write( "Divide the SSE value over n-1 = 10-1 = 9 to compute the sample variance\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "sample variance = (SSE)/(n-1) \n" ); document.write( "sample variance = (48.35376)/9 \n" ); document.write( "sample variance = 5.37264 \n" ); document.write( "I'll refer to this as V1 to represent the variance of group 1.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "Follow similar steps to find that V2 = 3.70316 is the approximate sample variance of group 2. \n" ); document.write( "Use of a calculator with a built-in standard deviation function will make quick work of finding the variance.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "Now onto the standard error (SE) \n" ); document.write( "SE = sqrt( (V1)/(n1) + (V2)/(n2) ) \n" ); document.write( "SE = sqrt( (5.37264)/(10) + (3.70316)/(10) ) \n" ); document.write( "SE = 0.95266993234803\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "Which helps us find the t statistic \n" ); document.write( "t = ((xbar1 - xbar2) - (mu1 - mu2))/(SE) \n" ); document.write( "t = ((49.692 - 50.545) - (0))/(0.95266993234803) \n" ); document.write( "t = -0.89537831628381 \n" ); document.write( "t = -0.8954\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "The degrees of freedom is the smaller of n1-1 or n2-1 \n" ); document.write( "Because n1 = n2 = 10, we just simply can think of it as n-1 \n" ); document.write( "The degrees of freedom is df = n-1 = 10-1 = 9\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "Use a calculator like this one \n" ); document.write( "https://stattrek.com/online-calculator/t-distribution.aspx \n" ); document.write( "to find that P(T < -0.8954) = 0.1969 approximately when we have df = 9 \n" ); document.write( "This doubles to 2*0.1969 = 0.3938 due to the fact that we have a two-sided test (because the phrasing \"P-value for the two-sided alternative.\") \n" ); document.write( "The result 0.3938 is the approximate P-value.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "------------------------------\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "Summary:\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "xbar1 = 49.692 and xbar2 = 50.545 are the sample means \n" ); document.write( "V1 = 5.37264 and V2 = 3.70316 are the sample variances \n" ); document.write( "t = -0.8954 is the test statistic \n" ); document.write( "df = 9 is the degrees of freedom \n" ); document.write( "p-value = 0.3938\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "============================================================================================================== \n" ); document.write( "Part (B)\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "Here are the two original groups of data. \n" ); document.write( "
\n" ); document.write( "For each row, subtract the values in the form X1 - X2 \n" ); document.write( "X1 is from group 1 \n" ); document.write( "X2 is from group 2 \n" ); document.write( "For instance, the first row has 48.86 - 48.88 = -0.02 as the difference \n" ); document.write( "We'll list the differences in the column labeled \"d\" \n" ); document.write( "
\n" ); document.write( "If you were to compute the sample mean of the d column, you should find that the mean is -0.853 \n" ); document.write( "We call this value dbar in much the same way xbar is denoted. The \"bar\" refers to the horizontal line up top. \n" ); document.write( "dbar = -0.853\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "The sample variance of the d column will follow the same type of steps as described in part (A) when I detailed how to compute the variance of group 1. \n" ); document.write( "You should get a sample variance of 1.610668 which leads to the sample standard deviation of sqrt(1.610668) = 1.269121 \n" ); document.write( "I'll refer to this standard deviation as Sd to indicate \"Standard deviation of the differences\".\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "Now onto the standard error (SE) \n" ); document.write( "SE = Sd/sqrt(n) \n" ); document.write( "SE = 1.269121/sqrt(10) \n" ); document.write( "SE = 0.40133129863506 \n" ); document.write( "SE = 0.401331\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "It allows us to compute the test statistic \n" ); document.write( "t = (dbar - mu_d)/SE \n" ); document.write( "t = (-0.853 - 0)/0.40133129863506 \n" ); document.write( "t = -2.12542605797524 \n" ); document.write( "t = -2.1254\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "The degrees of freedom is n-1 = 10-1 = 9\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "I'll then use this calculator again \n" ); document.write( "https://stattrek.com/online-calculator/t-distribution.aspx \n" ); document.write( "to find that P(T < -2.1254) = 0.0312 when df = 9 which doubles to 2*0.0312 = 0.0624 since we're doing a two-tailed test. \n" ); document.write( "The result 0.0624 is the approximate P-value.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "------------------------------\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "Summary:\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "dbar = -0.853 is the sample mean of the differences (d column) \n" ); document.write( "1.610668 is the approximate sample variance of the differences (d column) \n" ); document.write( "t = -2.1254 is the approximate test statistic \n" ); document.write( "df = 9 = degrees of freedom \n" ); document.write( "P-value = 0.0624\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "============================================================================================================== \n" ); document.write( "Part (C)\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "Admittedly there are a lot of numbers and variables to keep track of. \n" ); document.write( "It might be overwhelming if you aren't familiar with statistics too much.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "Though if I had to pick one variable to focus on, I would say it's the P-value. \n" ); document.write( "In many scientific journals, the researchers report the P-value to the reader to indicate how (in)significant the results were. \r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "In part (A), we got a P-value of roughly 0.3938 \n" ); document.write( "In part (B), we got a P-value of roughly 0.0624 \n" ); document.write( "That's quite a gap.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "Recall that the P-value determines if you reject or fail to reject the null. \n" ); document.write( "Let's say the significance level is alpha = 0.05 which is the default level.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "At this alpha value, we'd fail to reject the null for both part (A) and part (B). Why? Because the p-value for each is not less than alpha = 0.05 \n" ); document.write( "We reject the null only if the p-value is smaller than alpha.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "If we set alpha = 0.10, then we'd fail to reject in part (A) but reject the null in part (B) \n" ); document.write( "Sometimes you may see a significance level of alpha = 0.10 (of course it depends on the context). \n" ); document.write( "As you can see, part (B) has leads to a situation where we are more likely to reject the null. \n" ); document.write( " \n" ); document.write( " |