document.write( "Question 360460: The federal government recently granted funds for a special program designed to reduce crime in high-crime areas. A study of the results of the program in eight high-crime areas of Miami, Florida, yielded the following results.
\n" ); document.write( " Number of Crimes by Area
\n" ); document.write( " A B C D E F G H
\n" ); document.write( "before 14 7 4 5 17 12 8 9
\n" ); document.write( "after 2 7 3 6 8 13 3 5\r
\n" ); document.write( "\n" ); document.write( "Has there been a decrease in the number of crimes since the inauguration of the program? Use the .01 significance level. Estimate the p-value.
\n" ); document.write( "
\n" ); document.write( "

Algebra.Com's Answer #257341 by robertb(5830)\"\" \"About 
You can put this solution on YOUR website!
The following are the values for the before-minus-after values:
\n" ); document.write( "d = 12, 0, 1, -1, 9 , -1, 5 , 4\r
\n" ); document.write( "\n" ); document.write( "The average m of these values are 29/8 = 3.625.
\n" ); document.write( "Now the following corresponding values for \"%28d-m%29%5E2\" are
\n" ); document.write( "70.14,13.14,6.89,21.39,28.89,21.39,1.89,0.14.
\n" ); document.write( "Their sum is 163.87.
\n" ); document.write( "The standard deviation of the differences would be \"s+=+sqrt%28163.87%2F7%29+=+4.8384\", and the standard error is \"SE=s%2Fsqrt%288%29+=+4.8384%2Fsqrt%288%29+=+1.71\".
\n" ); document.write( "Now we use a one-tailed matched-pairs t-test.\r
\n" ); document.write( "\n" ); document.write( "Null hypothesis: D = 0
\n" ); document.write( "Alternative hypothesis: D > 0\r
\n" ); document.write( "\n" ); document.write( "\"t+=+%28m+-+D%29%2F+SE+=+%283.625+-0%29%2F1.71\", under assumption of the null hypothesis.
\n" ); document.write( "\"t+=+2.12\"
\n" ); document.write( "Now \"P%28T+%3C+2.12%29+=+0.9641\", so the p-value is 0.0359. Since 0.0359>0.01, we don't reject the null hypothesis. Hence the differences in the sample aren't significant to say that there is a drop in the number of crimes.
\n" ); document.write( "
\n" ); document.write( "
\n" );