Your Perfect Assignment is Just a Click Away
We Write Custom Academic Papers

100% Original, Plagiarism Free, Customized to your instructions!

glass
pen
clip
papers
heaphones

Statistical Analysis Results of Crime: ANOVA Test

Statistical Analysis Results of Crime: ANOVA Test

THE ANALYSIS OF VARIANCE (ANOVA), STUDENTS ‘T’ TESTS AND MATRIX ALGEBRAATUBI, A. 0. Ph.D.IntroductionThe ANOVA sometimes referred to as the F test (named after the statistician Sir Roland Fisher, the author of this test) is a set of procedures for testing the significance of differences among more than two independent means. This procedure determines the extent to which there are significant differences between the means of three or more samples with a single level of significance. Because this procedure and others like it focus on variances, they are referred to as the analysis of variance or ANOVAOne Way Analysis of VarianceThe step in ANOVA can be illustrated by an exampleExample 5.1.1The number of crimes committed in 4 months in various parts of a town are list below:MonthArtisan quartersSlumsCDBGRAJanuaryFebruaryMarchApril20163216524456363640364016203220At 0.05 level of confidence, are crime frequencies related to urban morphology or month of the year?First set up a null hypothesis of equality of the means Let Ho be: “There is no significant difference between the crimes frequencies and urban morphology or month of the year.Next, find the total of the four areas as listed below then their meansTotal =Artesan SlumsCBDGRA8418815288MeanNext, calculate the Grand meanNext, calculate the sum of squares for each population. Note that in ANOVA the number of samples do not have to be sameTable 4.1.1: Means and sums of squares of crimes committedIn ANOVA, we determine differences between means by calculating their variability. Three types of variability are estimated:The variation within each sample resultThe variation between the sample resultsThe total variation of the samples, regardless of the sample grouping to which they belong (Anyadike, 2009)Next, calculate the sums of the sum of squares for each column (i.e Variable):SSW = ??(Xij – X)2 = 172+236+16+144 =568Calculate sum of square between = ? N (X —X)2=4(21-3 2)2+4(473 2)2+4 (3832)2 + 4(2232)2= 484 +900+144+400=1928Calculate the within group sum of square. MSW = SSWn-rnWhere n=no of observationsM=no of groupsSimilarly, the mean s square between will beMSb =SSbM-lThereforeMSW =SSb=568=568n-m 16-4 12= 47.33The ratio between the variance estimate is known as the Snedecor’s variance ratio test or Snedecor’s FNow set up an ANOVA table:Finally, test for significance:The degrees of freedom, V are:V- numerator = M-1=4-1=3V- denominator = n-m= 16—4=12From the Table of the F-Distribution, critical value of F at 0.05 3 and 12 =3.49Calculated value is 13.18Since the calculated F of 13.58 is greater (>) 3.49, Ho is rejected. Therefore, “There is a significant difference between crime frequencies with regards to urban morphology or month of the year.THE STUDENT ‘T TESTThe most powerful test for the comparison of sample means is the student ‘t’ test. It is a parametric test and is used to determine whether or not the differences between two sample means are sufficiently great as to justify a conclusion that the means of their populations also differ significantly. It is also used for small samplesThe student ‘t’ is expressed as:T = x1-x­1vS12/N1 + S22/N2Where X1 and X2 are the means of the two sets of data; S1 and S2 their standard deviations; and N1 and N2 the number of observations.The degree of freedom, V is expressed as follows:V = N+N,-2Degree of FreedomThere is often confusion among students about the concept of “degree of freedom”. Basically, if the sum of a set of elements and the sum of all but one is of its elements are both known, then the value of the last element must also be known, i.e. it is not, unlike the others, free to vary (Ayandike, 2009). For example, if the sum of 8 elements is 30 and the values of 7 of the elements variously add up to 28, then the value ofthe final (i.e. the 8”) element must be (30-28) = 2, i.e. if is not free to adopt any other value. The degree of freedom in this case is thus (8-1) = 7, i.e. in the set of 8 element, 7 of them are free to take on any values to sum up to 28, leaving value inviolateELEMENTS OF MATRIX ALGEBRAIntroductionThe matrix is a rectangular array of number arranged in rows n and columns, m i.eEach of the numbers is called an elements. The position of each element is determined by its position in the row as well as in theThe size of the matrix is given by the number of rows (n) and number of column (m) for example.A matrix which has the same number of rows and columns is called a square matrix. In the example above, a and c are square matrices. A matrix with a single row is called a row vector, while a matrix of a single column is called a column vector. Example of a row vector is{3 5 7 8}example of column vector isMatrix can be added, subtracted, multiplied and inverted but cannot be divided. However, they can only be divided by a scalar (i.e an ordinary number).Addition of MatrixMatrices to be added must be of the same size as one another. That is they must have the same number of columns and row s. This is because each element of one matrix must be added to the same element of the other matrix e.g. supposing we are adding two matrix [A] ± [B][A] + [BI =[C]i.e you add element by elementN.B:The number of columns and rows must be the same before it can be addedMatrix SubtractionThe same rule as addition is applied e.g to subtract [BI from [A][A] [B]Matrix MultiplicationThere are two aspect of matrix multiplication namely:a.Multiplication of matrix by a scalerb.Multiplication of matrix by two matricesBy ScalerSupposing we are multiplying the matrix below by 4Multiplication by Two MatricesWhen two matrices are to be multiplied, the number of columns in the first matrix must be equal the number of rows in the second matrix e.g. 2×3 matrix can be multiplied by 3×2 matrix. But a 2×3 matrix cannot be multiplied by another 2×3 matrix because the number of rows there is not equal to the number of columns in the second e.g.The result will have as many rows as the first and as may columns as the second. Multiplication of a matrix by vector, exampleAn identity or unity matrix 1, is a matrix where the diagonal consist of l’s and the rest of the elements are zero e.g.:Matrix InversionIn matrix, algebra function of division is changed to that of inversion. The inverse of the matrix is it’s reciprocal i.e.Only square matrices have inverses. A matrix that cannot be inverted is called a singular matrix. Several methods exists for finding the inverse of a matrix. They includes1. The classical methodThis is to set the matrix beside an identity matrix, and to perform all operations simultaneously in both matrices, for example, if you are to invert this matrix [A], you first place it beside an identity matrixYou haveStep 1Subtract row 2 from 3, multiply row 1Row 2(3xrow 1)Step 32. By DeterminantsThis is the more modern one. A determinant is a single number extracted from a square matrix by series of operations. It is represented by either det A or /A/The process of obtaining a determinant from a matrix is called evaluating the determinant. Using determinant, the inverse of matrix [A] becomes/A/ = ad—bcThe adjoint of a matrix is the transposed matrix of co -factors with the signs taken into consideration. The signs are alternating +, -, across and down the element of the matrix e.g. in a 2×2 matrixSo far a 2×2 matrix, the inverse is the adjoint of that matrix over the determinant of the matrix.The determinant of a 3×3 matrixThe minus for each leading element becomesUptill i.The Solution of Simultaneous EquationThe major interest in matrices (and its greatest strength) is their use in the resolution of the unknowns in simultaneous equations (Anya dike, 2009)SIMULTANEOUS EQUATIONS WITH TWO UNKNOWNS3x+4y 102x +‘7y = 11Set in matrix form1.Using the classical method, our equation in matrix form is [A] [x] [B]The matrix of the unknown[x]=[A]=[B]For a 2 x 2 matrix the adjoint of it isSince our matrix of unknown isCheck with original equation3x+4y =102x +7y1lCheck3(2)+4(1)= 10 =6+4+102(2) +7 (1) =14+7=111. By determinant methodThe matrix in our example is [A] [x] [B]This 13 is called the common denominator. Then we find the numerator of x, which is the determinant of the main matrix.:. X2/A1.B/-÷/A!13113 =1 =yTherefore,Y = 1X=2REFERENCESAnyadike, R.N.C (2009) Statistical methods for social and Environmental Sciences. Spectrum Books Limited Ibadan.Anyadike, R.N.C (2009): Statistical methods for social and Environmental sciences. Spectrum Books limited Ibadan.Atubi, A.O. (2010d) Road Traffic Accident variations in Lagos State, Nigeria: A Synopsis of variance Spectra. African research Review, Vol 4(2) pp. 197-218. Ethiopia.Ewhmdjakpor C, Atubi, A.O. and Odemerho F. (2006): Statistics for social investigations. Delsu Investment Nigeria, Limited, Delta State University, Abraka.Ewhrudjakpor. C, Atubi, A.O, and Odermerho F (2006). Statistics for social Investigations. Delsu Investment Nigeria, Limited. Delta State University, Abraka.Spiegel, M.R (1972): Theory and problems of statistics. McGraw-Hill, New York.Get Help With Your EssayIf you need assistance with writing your essay, our professional essay writing service is here to help!Find out more

Order Solution Now