document.write( "Question 1039865: A study is designed to investigate whether there is a difference in response to various treatments in patients with rheumatoid arthritis. The outcome is patient's self-reported effect of treatment. The data are shown below. Is there a statistically significant difference in the proportions of patients who show improvement between treatments 1 and 2. Apply the test at a 5% level of significance. \r
\n" ); document.write( "\n" ); document.write( "Treatment 1: 22 symptoms worsened-14 no effect-14 symptoms improved.
\n" ); document.write( "Treatment 2: 14 symptoms worsened-15 no effect-21 symptoms improved.\r
\n" ); document.write( "\n" ); document.write( "I need the critical value and the computed statistic. I got 17.3 and 26.7 which are both wrong but I don't know why.\r
\n" ); document.write( "\n" ); document.write( "The second half of this question is: based on the above figures (which I got wrong), Which of the following is or are true statement(s)?\r
\n" ); document.write( "\n" ); document.write( "A. There is significant evidence, alpha 0.05, to show that there is a difference in the proportion of patients who show improvement between treatments 1 and 2.
\n" ); document.write( "B. There is Not significant evidence, alpha 0.05 to show that there is a difference in the proportion of patients who show improvements between treatments 1 and 2.
\n" ); document.write( "C. There is significant evidence, alpha 0.05, to show that there is NO difference in the proportions of patients who show improvements between treatments 1 and 2.
\n" ); document.write( "D. Both A and C are correct.\r
\n" ); document.write( "\n" ); document.write( "I keep getting this whole problem wrong. Please help if you can as I need to understand how to do these and judge whether they are significant or not. My book in not really that helpful.
\n" ); document.write( "
\n" ); document.write( "

Algebra.Com's Answer #654649 by jim_thompson5910(35256)\"\" \"About 
You can put this solution on YOUR website!
\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Variables used
\n" ); document.write( "x1 = number of people who improved under treatment 1
\n" ); document.write( "p1 = population proportion of patients who improve under treatment 1
\n" ); document.write( "phat1 = sample proportion of patients who improve under treatment 1
\n" ); document.write( "n1 = sample size of treatment 1\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "x2 = number of people who improved under treatment 2
\n" ); document.write( "p2 = population proportion of patients who improve under treatment 2
\n" ); document.write( "phat2 = sample proportion of patients who improve under treatment 2
\n" ); document.write( "n2 = sample size of treatment 2\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "qhat = average of phat1 and phat2\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "alpha = 0.05 is the significance level\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "The hypothesis are
\n" ); document.write( "Null:
\n" ); document.write( "H0: \"p1+=+p2\"
\n" ); document.write( "Alternate:
\n" ); document.write( "H1: \"p1+%3C%3E+p2\"\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "This is a two tailed test. The rule is that if the test statistic is between the two critical values, then we do not reject the null. If the test statistic is not between the two critical values, then we reject H0.\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "------------------------------------------------------\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Treatment 1: 14 patients show improvement
\n" ); document.write( "so x1 = 14
\n" ); document.write( "This is out of 22+14+14 = 50 total
\n" ); document.write( "14/50 = 0.28 = 28% of patients show improvement for treatment 1
\n" ); document.write( "phat1 = 0.28\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Treatment 2: 21 patients show improvement
\n" ); document.write( "so x2 = 21
\n" ); document.write( "This is out of 14+15+21 = 50 total
\n" ); document.write( "21/50 = 0.42 = 42% of patients show improvement for treatment 2
\n" ); document.write( "phat2 = 0.42\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "The sample sizes of each treatment group is 50, so
\n" ); document.write( "n1 = 50
\n" ); document.write( "n2 = 50\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "------------------------------------------------------\r
\n" ); document.write( "\n" ); document.write( "Let's find the \"average\" sample proportion value and call this qhat\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "qhat = (x1+x2)/(n1+n2)
\n" ); document.write( "qhat = (14+21)/(50+50)
\n" ); document.write( "qhat = 0.35 .... use a calculator here\r
\n" ); document.write( "\n" ); document.write( "------------------------------------------------------\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Using that value of qhat, we can compute the standard error\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "SE = sqrt(qhat*(1-qhat)*(1/n1 + 1/n2))
\n" ); document.write( "SE = sqrt(0.35*(1-0.35)*(1/50 + 1/50))
\n" ); document.write( "SE = 0.0953939201417 .... use a calculator here\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "-------------------------------------------------------\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Now onto the test statistic\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "z = (phat1-phat2)/(SE)
\n" ); document.write( "z = (0.28 - 0.42)/(0.0953939201417)
\n" ); document.write( "z = -1.4675987714106
\n" ); document.write( "z = -1.47 ... rounding to two decimal places\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "-------------------------------------------------------\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "The level of significance is 5%. Alpha = 0.05
\n" ); document.write( "confidence level = 1 - alpha
\n" ); document.write( "confidence level = 1 - 0.05
\n" ); document.write( "confidence level = 0.95
\n" ); document.write( "confidence level = 95%\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Use a table like this one to find the critical values. Look at the bottom of the page. Locate the 95% confidence level. Look directly above it and you'll see the value 1.960\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Since this is a two-tailed test, this means the critical values are -1.960 and 1.960\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "------------------------------------------------\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Go back to the rule stated above. Since -1.47 is definitely between -1.960 and 1.960, this means we do not reject the null. We must conclude that p1 = p2. There isn't significant evidence to prove it wrong. \r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "So the final answer is
\n" ); document.write( "B. There is Not significant evidence, alpha 0.05 to show that there is a difference in the proportion of patients who show improvements between treatments 1 and 2.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Further reading:
\n" ); document.write( "https://onlinecourses.science.psu.edu/stat414/node/268\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( "
\n" );