1 / 75

Discrete Multivariate Analysis

Discrete Multivariate Analysis. Analysis of Multivariate Categorical Data. Example 1. In this study we examine n = 1237 individuals measuring X , Systolic Blood Pressure and Y, Serum Cholesterol. Example 2.

redford
Download Presentation

Discrete Multivariate Analysis

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. DiscreteMultivariate Analysis Analysis of Multivariate Categorical Data

  2. Example 1 In this study we examine n = 1237 individuals measuring X, Systolic Blood Pressure and Y, Serum Cholesterol

  3. Example 2 The following data was taken from a study of parole success involving 5587 parolees in Ohio between 1965 and 1972 (a ten percent sample of all parolees during this period).

  4. The study involved a dichotomous response Y • Success (no major parole violation) or • Failure (returned to prison either as technical violators or with a new conviction) based on a one-year follow-up. • The predictors of parole success included are: • type of committed offence (Person offense or Other offense), • Age (25 or Older or Under 25), • Prior Record (No prior sentence or Prior Sentence), and • Drug or Alcohol Dependency (No drug or Alcohol dependency or Drug and/or Alcohol dependency).

  5. The data were randomly split into two parts. The counts for each part are displayed in the table, with those for the second part in parentheses. • The second part of the data was set aside for a validation study of the model to be fitted in the first part.

  6. Table

  7. Analysis of a Two-way Frequency Table:

  8. Frequency Distribution(Serum Cholesterol and Systolic Blood Pressure)

  9. Joint and Marginal Distributions(Serum Cholesterol and Systolic Blood Pressure) The Marginal distributions allow you to look at the effect of one variable, ignoring the other. The joint distribution allows you to look at the two variables simultaneously.

  10. Conditional Distributions( Systolic Blood Pressure given Serum Cholesterol ) The conditional distribution allows you to look at the effect of one variable, when the other variable is held fixed or known.

  11. Conditional Distributions(Serum Cholesterol given Systolic Blood Pressure)

  12. GRAPH: Conditional distributions of Systolic Blood Pressure given Serum Cholesterol

  13. Notation: Let xij denote the frequency (no. of cases) where X (row variable) is i and Y (row variable) is j.

  14. Different Models The Multinomial Model: Here the total number of cases N is fixed and xij follows a multinomial distribution with parameters pij

  15. The Product Multinomial Model: Here the row (or column) totals Ri are fixed and for a given row i, xij follows a multinomial distribution with parameters pj|i

  16. The Poisson Model: In this case we observe over a fixed period of time and all counts in the table (including Row, Column and overall totals) follow a Poisson distribution. Let mij denote the mean of xij.

  17. Independence

  18. Multinomial Model if independent and The estimated expected frequency in cell (i,j) in the case of independence is:

  19. The same can be shown for the other two models – the Product Multinomial model and the Poisson model namely The estimated expected frequency in cell (i,j) in the case of independence is: Standardized residuals are defined for each cell:

  20. The Chi-Square Statistic The Chi-Square test for independenceReject H0: independence if

  21. TableExpected frequencies, Observed frequencies, Standardized Residuals c2 = 20.85 (p = 0.0133)

  22. Example In the example N = 57,407 cases in which individuals were victimized twice by crimes were studied. The crime of the first victimization (X) and the crime of the second victimization (Y) were noted. The data were tabulated on the following slide

  23. Table 1: Frequencies

  24. Table 2: Standardized residuals

  25. Table 3: Conditional distribution of second victimization given the first victimization (%)

  26. Log Linear Model

  27. Recall, if the two variables, rows (X) and columns (Y) are independent then and

  28. In general let then (1) where Equation (1) is called the log-linear model for the frequencies xij.

  29. Note: X and Y are independent if In this case the log-linear model becomes

  30. Another formulation

  31. Three-way Frequency Tables

  32. With two variables the dependence structure is simple: the variables are either dependent or independent. When there are three or more variables the dependence structure is much more complicated.

  33. Marginal distributions Distributions of two variables ignoring the third. • X1, X2 ignoring X3 • X1, X3 ignoring X2 • X2, X3 ignoring X1 Distributions of one variable ignoring the other two. • X1 ignoring X2, X3 • X2 ignoring X1, X3 • X3 ignoring X1, X2

  34. Conditional distributions Distributions of two variables given the third. • X1, X2 given X3 • X1, X3 given X2 • X2, X3 given X1 Distributions of one variable given the other two. • X1 given X2, X3 • X2 given X1, X3 • X3 given X1, X2

  35. Distributions of one variable given either of the other two. • X1 given X2 • X1 given X3 • X2 given X1 • X2 given X3 • X3 given X1 • X3 given X2

  36. Example Data from the Framingham Longitudinal Study of Coronary Heart Disease (Cornfield [1962]) Variables • Systolic Blood Pressure (X) • < 127, 127-146, 147-166, 167+ • Serum Cholesterol • <200, 200-219, 220-259, 260+ • Heart Disease • Present, Absent The data is tabulated on the next slide

  37. Three-way Frequency Table

  38. Log-Linear model for three-way tables Let mijk denote the expected frequency in cell (i,j,k) of the table then in general where

  39. Hierarchical Log-linear models for categorical Data The hierarchical principle: If an interaction is in the model, also keep lower order interactions and main effects associated with that interaction For three way tables

  40. 1. Model: (All Main effects model) lnmijk = u + u1(i) + u2(j) + u3(k) i.e. u12(i,j) = u13(i,k) = u23(j,k) = u123(i,j,k) = 0. Notation: [1][2][3] Description: Mutual independence between all three variables.

  41. 2. Model: lnmijk = u + u1(i) + u2(j) + u3(k) + u12(i,j) i.e. u13(i,k) = u23(j,k) = u123(i,j,k) = 0. Notation: [12][3] Description: Independence of Variable 3 with variables 1 and 2.

  42. 3. Model: lnmijk = u + u1(i) + u2(j) + u3(k) + u13(i,k) i.e. u12(i,j) = u23(j,k) = u123(i,j,k) = 0. Notation: [13][2] Description: Independence of Variable 2 with variables 1 and 3.

  43. 4. Model: lnmijk = u + u1(i) + u2(j) + u3(k) + u23(j,k) i.e. u12(i,j) = u13(i,k) = u123(i,j,k) = 0. Notation: [23][1] Description: Independence of Variable 3 with variables 1 and 2.

  44. 5. Model: lnmijk = u + u1(i) + u2(j) + u3(k) + u12(i,j) +u13(i,k) i.e. u23(j,k) = u123(i,j,k) = 0. Notation: [12][13] Description: Conditional independence between variables 2 and 3 given variable 1.

  45. 6. Model: lnmijk = u + u1(i) + u2(j) + u3(k) + u12(i,j) +u23(j,k) i.e. u13(i,k) = u123(i,j,k) = 0. Notation: [12][23] Description: Conditional independence between variables 1 and 3 given variable 2.

  46. 7. Model: lnmijk = u + u1(i) + u2(j) + u3(k) + u13(i,k) + u23(j,k) i.e. u12(i,j) = u123(i,j,k) = 0. Notation: [13][23] Description: Conditional independence between variables 1 and 2 given variable 3.

  47. 8. Model: lnmijk = u + u1(i) + u2(j) + u3(k) + u12(i,j) + u13(i,k) + u23(j,k) i.e. u123(i,j,k) = 0. Notation: [12][13][23] Description: Pairwise relations among all three variables, with each two variable interaction unaffected by the value of the third variable.

  48. 9. Model: (the saturated model) lnmijk = u + u1(i) + u2(j) + u3(k) + u12(i,j) + u13(i,k) + u23(j,k) + u123(i,j,k) Notation: [123] Description: No simplifying dependence structure.

  49. Hierarchical Log-linear models for 3 way table

  50. Maximum Likelihood Estimation Log-Linear Model

More Related