Docsity

Outline for Multivariate Data Analysis | STA 135, Study notes of Descriptive statistics

Partial preview of the text

Download Outline for Multivariate Data Analysis | STA 135 and more Study notes Descriptive statistics in PDF only on Docsity!

Multivariate Analysis

  • Many statistical techniques focus on just

one or two variables

  • Multivariate analysis (MVA) techniques

allow more than two variables to be

analysed at once

  • Multiple regression is not typically included

under this heading, but can be thought of as a

multivariate analysis

Outline of Lectures

  • We will cover
    • Why MVA is useful and important
      • Simpson’s Paradox
    • Some commonly used techniques
      • Principal components
      • Cluster analysis
      • Correspondence analysis
      • Others if time permits
    • Market segmentation methods
    • An overview of MVA methods and their niches

Simpson’s Paradox

  • No relationship between sex
and acceptance for either
programme
  • So no evidence of discrimination
  • Why?
  • More females apply for the English programme, but it it hard to get into
  • More males applied to Engineering, which has a higher acceptance rate than English
  • Must look deeper than single
cross-tab to find this out
Total 60 20
Refuse 30 10
entry
Accept 30 10
Engineer- Male Female
ing
Total 20 40
Refuse 15 30
entry
Accept 5 10
English Male Female

Another Example

  • A study of graduates’ salaries showed negative

association between economists’ starting salary

and the level of the degree

  • i.e. PhDs earned less than Masters degree holders, who
in turn earned less than those with just a Bachelor’s
degree
  • Why?
  • The data was split into three employment sectors
  • Teaching, government and private industry
  • Each sector showed a positive relationship
  • Employer type was confounded with degree level

Simpson’s Paradox

  • In each of these examples, the bivariate

analysis (cross-tabulation or correlation)

gave misleading results

  • Introducing another variable gave a better

understanding of the data

  • It even reversed the initial conclusions

Many Variables

  • Commonly have many relevant variables in

market research surveys

  • E.g. one not atypical survey had ~2000 variables
  • Typically researchers pore over many crosstabs
  • However it can be difficult to make sense of these, and
the crosstabs may be misleading
  • MVA can help summarise the data
    • E.g. factor analysis and segmentation based on
agreement ratings on 20 attitude statements
  • MVA can also reduce the chance of obtaining

spurious results

Principal Components

  • Identify underlying dimensions or principal

components of a distribution

  • Helps understand the joint or common

variation among a set of variables

  • Probably the most commonly used method

of deriving “factors” in factor analysis

(before rotation)

Principal Components

  • The first principal component is identified as the

vector (or equivalently the linear combination of

variables) on which the most data variation can be

projected

  • The 2 nd

principal component is a vector

perpendicular to the first, chosen so that it

contains as much of the remaining variation as

possible

  • And so on for the 3 rd

principal component, the 4

th

the 5

th

etc.

Multivariate Normal Distribution

• Generalisation of the univariate normal

• Determined by the mean (vector) and

covariance matrix

• E.g. Standard bivariate normal

X ~ N ( μ ,!)

2 2 2 2

x y

X N I p x e

!

Example – Crime Rates by State

The PRINCOMP Procedure Variables^7 5 0 Observation s 432.455711 725.908707 193.

2

5

1 StD

0

0

0

0

0

0 Mea n Auto_Thef Murder Rape Robbery Assault Burglary Larceny t Simple Statistics Crime Rates per 100,000 Population by State … … ... ... ... ... ... ... ... 11.5 49.4 287.0 358.0 2139.4 3499.8 663. Californi a 5 4 Arkansas 8.8 27.6 83.2 203.4 972.6 1862.1^ 183. 3 Arizona 9.5 34.2 138.2 312.3 2346.1 4467.4^ 439. 2 Alaska 10.8 51.6 96.8 284.0 1331.7 3369.8^ 753. 1 Alabama 14.2 25.2 96.8 278.3 1135.5 1881.9^ 280. Auto_Thef t Larcen y Burglar y Assaul t Robber y Rap e Murde r State Ob s

Auto_Theft 0.295177 0.502421 0.568384 0.419238 0.369753 -.057298 0. Larceny 0.357360 0.402319 -.539231 -.234890 0.030099 0.039406^ 0. Burglary 0.440157 0.203341 -.209895 -.057555 0.101033 0.535987^ -. Assault 0.396652 -.343528 -.069510 0.629804 -.506651 0.172363 0. Robbery 0.396875 0.042247 0.495861 -.557989 -.519977 -.114385 -. Rape 0.431759 -.169435 -.244198 0.062216 0.188471 -.773271^ -. Murder 0.300279 -.629174 0.178245 -.232114 0.538123 0.259117^ 0. Prin1 Prin2 Prin3 Prin4 Prin5 Prin6 Prin Eigenvectors

  • 2-3 components explain 76%-87% of the variance
  • First principal component has uniform variable weights, so
is a general crime level indicator
  • Second principal component appears to contrast violent
versus property crimes
  • Third component is harder to interpret

Cluster Analysis

  • Techniques for identifying separate groups

of similar cases

  • Similarity of cases is either specified directly in

a distance matrix, or defined in terms of some

distance function

  • Also used to summarise data by defining

segments of similar cases in the data

  • This use of cluster analysis is known as

“dissection”

Applications

  • Market segmentation is usually conducted

using some form of cluster analysis to

divide people into segments

  • Other methods such as latent class models or

archetypal analysis are sometimes used instead

  • It is also possible to cluster other items such

as products/SKUs, image attributes, brands

Tandem Segmentation

  • One general method is to conduct a factor

analysis, followed by a cluster analysis

  • This approach has been criticised for losing

information and not yielding as much

discrimination as cluster analysis alone

  • However it can make it easier to design the

distance function, and to interpret the results