Monday, June 3, 2019
Statistical Analysis Results of Crime: ANOVA Test
statistical Analysis Results of Crime analysis of variance TestTHE 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 signifi enkindlece of releases among more than two independent authority. This procedure determines the consummation to which there are significant differences amongst the means of three or more ideals 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 minute of crimes committed in 4 months in various parts of a town are list down the stairsMonthArtisan quartersSlumsCDBGRAJanuaryFebruaryMarchApril20163216524456363640364016203220At 0.05 level of confidence, are crime frequencies related to urban morphology or month of the grade?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, forecast the Grand meanNext, calculate the sum of squares for each population. Note that in ANOVA the number of samples do not have to be same display panel 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 estimatedThe 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 towboat (i.e Variable)sou-sou-west = (Xij X)2 = 172+236+16+144 =5 68Calculate 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 = south southwestn-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 Snedecors variance ratio test or Snedecors FNow set up an ANOVA tableFinally, test for significanceThe degrees of emancipation, V areV- numerator = M-1=4-1=3V- denominator = n-m= 164=12From the Table of the F-Distribution, critical regard as 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 asT = x1-x1vS12/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 followsV = N+N,-2Degree of FreedomThere is often cloudiness among students about the concept of degree of freedom. Basically, if the sum of a set of elements and the sum of all but wiz 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 make for 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 o ther 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 intercellular substance is a rectangular array of number arranged in rows n and columns, m i.e distributively 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 ground substance is given by the number of rows (n) and number of column (m) for example.A ground substance which has the same number of rows and columns is called a square intercellular substance. 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 is3 5 7 8example of column vector is hyaloplasm can be added, subtracted, multiplied and invert but cannot be divided. However, they can on ly be divided by a scalar (i.e an ordinary number).Addition of ground substanceMatrices 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 BA + BI =Ci.e you add element by elementN.BThe number of columns and rows must be the same before it can be added matrix SubtractionThe same rule as addition is applied e.g to subtract BI from AA BMatrix MultiplicationThere are two aspect of matrix multiplication namelya.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. 23 matrix can be multiplied by 32 matrix. tho a 23 matrix cannot be multi plied by another 23 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 ls 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 its 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 at the same time 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/ = adbcThe adjoint of a matrix is the transposed matrix of co -factors with the signs taken into consideration. The signs are alternating +, -, crosswise and down the element of the matrix e.g. in a 22 matrixSo far a 22 matrix, the inverse is the adjoint of that matrix over the determinant of the matrix.The determinant of a 33 matrixThe minus for each leading element becomesUptill i.The Solution of Simultaneous EquationThe major interest in matrices (and its superior strength) is their use in the resolution of the unknowns in simultaneous comparabilitys (Anya dike, 2009)SIMULTANEOUS EQUATIONS WITH TWO UNKNOWNS3x+4y 102x +7y = 11Set in matrix form1.Using the classical method, our par in mat rix form is A x BThe matrix of the unknownx=A=BFor 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 BThis 13 is called the common denominator. Then we find the numerator of x, which is the determinant of the main matrix.. X2/A1.B/-/A13113 =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, A tubi, 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.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment