ECM301 Topic 11Factor Models -updated

📚 ECM301 Topic 11Factor Models -updated.pdf

Brief overview

This document introduces factor models as a method for simplifying complex datasets by identifying underlying latent variables. Understanding these models is crucial for effective data reduction and uncovering hidden drivers in business contexts.

Key points

  • Overview of factor models and exploratory factor analysis
  • Principal component analysis for data dimensionality reduction
  • Discriminant analysis as a classification technique
  • Applications of factor models in business decision-making

1. Factor models explained en Exploratory factor analysis

1.1 Factor models overview

  • Factor model: Explains many observed variables using fewer underlying factors 4.
  • Purpose: Simplifies complex data and reveals hidden drivers.

This model is crucial for businesses to reduce data complexity and improve decision-making. It helps identify latent constructs that influence observable data 5.

1.2 Exploratory factor analysis (EFA)

  • EFA: A method to find hidden constructs behind variable relationships.
  • Goal: Groups related variables influenced by the same factor.
  • Usefulness: Explores potential factors when a clear theory is absent 8.

1.3 Applying EFA: A customer satisfaction example

ABC Store collected survey data to understand customer satisfaction drivers. Customers rated 8 statements on a Likert scale 9.

📝 Example: Customer satisfaction survey statements.

  1. Store was clean and well-organized.
  2. Staff were helpful and courteous.
  3. Prices were reasonable.
  4. I found what I was looking for easily.
  5. Checkout was fast and efficient.
  6. Product quality met my expectations.
  7. Store hours were convenient.
  8. I would recommend this store to others 10.

Some questions are related, suggesting they measure a common underlying idea. For instance, helpful staff might correlate with fast checkout 11.

1.3.1 Step 1: Identify patterns in responses

EFA uses correlations to see how questions relate to each other. High correlations suggest items measure the same concept.

📝 Example: Q2 ("Staff were helpful") and Q5 ("Checkout was fast") might have a high positive correlation (r = 0.75). This suggests they measure "Service Quality." 12.

1.3.2 Step 2: Group similar questions

Based on correlations, similar survey items are grouped together.

Survey Item GroupingSurvey Items
Group 1Q1. Store clean; Q2. Staff helpful; Q5. Checkout fast
Group 2Q3. Prices reasonable; Q6. Product quality met expectations; Q8. Recommend store
Group 3Q4. Found item easily; Q7. Store hours convenient
13

1.3.3 Step 3: Create the factors

Grouped items are used to define latent concepts, or factors.

Survey ItemFactor
Q2. Staff were helpful and courteousFactor 1:
Q5. Checkout was fast and efficientService Quality
Q6. Product quality met my expectationsFactor 2:
Q8. I would recommend this store to othersProduct Value
Q4. I found what I was looking for easilyFactor 3:
Q7. Store hours were convenientConvenience
14 15

1.4 Factor model formula

A factor model represents an observed variable as a linear combination of common factors plus an error term.

Xi=λi1F1+λi2F2+⋯+λikFk+ϵiX_i = \lambda_{i1} F_1 + \lambda_{i2} F_2 + \dots + \lambda_{ik} F_k + \epsilon_i.

  • XiX_i: Observed variable ii.
  • F1,…,FkF_1, \dots, F_k: Latent (hidden) factors.
  • λij\lambda_{ij}: Factor loading of factor jj on variable ii.
  • ϵi\epsilon_i: Unique error for variable ii 16.

🔑 Important: Factor models simplify complex data by identifying underlying latent constructs that explain observed variable relationships, aiding in data reduction and better decision-making 6.

2. Principal component analysis

2.1 Overview of PCA

PCA is a statistical method. It reduces many variables into a smaller set of components.

These components capture most of the data's variation. It finds uncorrelated components, called principal components.

These summarize key information from many correlated variables. PCA can be seen as a type of factor analysis.

The resulting components can be interpreted as factors in a simplified model.

2.2 Steps in PCA

The PCA process involves several key steps, often illustrated with an example of customer satisfaction survey data.

2.2.1 Compute the correlation matrix

This step calculates how all variables in the dataset relate to each other. A correlation matrix shows these relationships, with values ranging from -1 to 1.

A value near 1 indicates a strong positive correlation, while a value near -1 indicates a strong negative correlation.

VariableQ1Q2Q3Q4Q5Q6Q7Q8
Q11.00.90.80.50.90.70.50.6
Q20.91.00.850.60.90.750.60.65
Q30.80.851.00.70.850.80.70.7
Q40.50.60.71.00.750.70.650.75
Q50.90.90.850.751.00.750.650.7
Q60.70.750.80.70.751.00.850.85
Q70.50.60.70.650.650.851.00.9
Q80.60.650.70.750.70.850.91.0

19 20

2.2.2 Calculate eigenvalues and eigenvectors

Eigenvalues indicate the amount of variance explained by each principal component. Eigenvectors show the direction of each component, meaning how each original variable contributes to it.

ComponentEigenvalue% of Variance Explained
PC14.5056.25%
PC22.2027.5%
PC30.708.75%
PC4–PC8< 0.60< 8.0% (each)

A common rule is to keep components with eigenvalues greater than 1. In this example, PC1 and PC2 are kept 21.

2.2.3 Compute factor loadings

Factor loadings show how much each survey item (variable) contributes to each principal component.

ItemPC1PC2
Q1. Store was clean and well-organized0.850.10
Q2. Staff were helpful and courteous0.880.12
Q3. Prices were reasonable0.750.55
Q4. I found what I was looking for easily0.650.60
Q5. Checkout was fast and efficient0.820.20
Q6. Product quality met my expectations0.400.78
Q7. Store hours were convenient0.350.80
Q8. I would recommend this store to others0.380.76

22

2.2.4 Interpret the components

By examining the loadings, you assign meaningful names to each component. This helps in understanding the underlying factors driving the data.

For example, items with high loadings on PC1 might relate to service quality, while those on PC2 might relate to product value.

Survey ItemComponent 1: Service QualityComponent 2: Product/Store Value
Q1. Store was clean and well-organizedHigh LoadingLow Loading
Q2. Staff were helpful and courteousHigh LoadingLow Loading
Q5. Checkout was fast and efficientHigh LoadingLow Loading
Q3. Prices were reasonableModerate LoadingModerate Loading
Q4. I found what I was looking for easilyModerate LoadingModerate Loading
Q6. Product quality met my expectationsLow LoadingHigh Loading
Q7. Store hours were convenientLow LoadingHigh Loading
Q8. I would recommend this store to othersLow LoadingHigh Loading

23

2.3 Factor Model Formula

A factor model represents observed variables as a linear combination of common factors and an error term.

Zi=wi1PC1+wi2PC2+⋯+wikPCkZ_i = w_{i1} PC1 + w_{i2} PC2 + \dots + w_{ik} PCk

Where:

  • ZiZ_i: standardized observed variable ii.
  • PC1,PC2,…,PCkPC1, PC2, \dots, PCk: the principal components.
  • wijw_{ij}: the factor loading, representing the weight of factor jj on variable ii 24.

2.4 PCA vs. Exploratory Factor Analysis (EFA)

PCA and EFA share similarities but have different primary goals and interpretations.

FeatureExploratory Factor Analysis (EFA)Principal Component Analysis (PCA)
PurposeTo find latent constructs or themes (e.g., Service Quality).To reduce the number of variables while preserving as much total variance as possible.
GoalUnderstand the underlying psychological or conceptual structure.Get a smaller set of components for further analysis (e.g., regression, clustering).
OutcomeInterpret factors based on which items group together conceptually.Retain components based on eigenvalues and % variance explained, not necessarily their meaning.
ExampleMay retain 3 factors if conceptually sound and loadings support it.Retains 2 components because they have eigenvalues > 1 and explain significant total variance.

Factor models, including PCA, can be applied to various data types to identify underlying patterns and reduce complexity.

Data TypeExample Use of Factor Model
Survey dataIdentify dimensions like customer satisfaction or employee motivation.
Behavioural dataDiscover user behavior types or engagement styles from website clicks.
Financial dataIdentify latent market forces from stock returns or macroeconomic indicators.
Medical dataIdentify hidden health conditions or syndromes from symptoms and lab results.
Sensor dataFind latent patterns across IoT sensors (e.g., temperature, humidity).
Educational dataReveal underlying academic abilities (e.g., math vs. verbal reasoning) from exam scores.

26

🔑 Important: PCA is a dimensionality reduction technique that transforms potentially correlated variables into a smaller set of uncorrelated principal components, prioritizing variance explanation 18 25.

3. Discriminant analysis

Discriminant analysis is a supervised learning method for classifying data into distinct categories. Its primary goal is to find a boundary that best separates these classes.

This technique is applied when the outcome variable is categorical, and the input variables can be either continuous or categorical. The analysis aims to discover a linear or quadratic function that effectively distinguishes between different groups within the data 28.

3.1 Types of discriminant analysis

There are two main types of discriminant analysis: Linear Discriminant Analysis (LDA) and Quadratic Discriminant Analysis (QDA) 29.

3.2 Linear Discriminant Analysis (LDA)

LDA is used when the data can be separated by a straight line. It makes several key assumptions about the data distribution.

  • Linear Separability: Assumes classes are linearly separable, meaning a straight line can divide them.
  • Normal Distribution: Assumes data within each class follows a normal distribution.
  • Equal Covariance: Assumes different classes share the same covariance matrix (homoscedasticity).

3.2.1 LDA example: Customer segmentation

A retail company might use LDA to classify customers into high-spending versus low-spending groups. Features like annual income and purchase frequency help define these classes.

LDA works well here if both customer groups show similar variances in their shopping habits, allowing a linear boundary to effectively separate them 32.

3.3 Quadratic Discriminant Analysis (QDA)

QDA is applied when the data requires a curved boundary to separate classes. It relaxes some of the strict assumptions of LDA.

  • Non-linear Boundaries: Assumes classes are not linearly separable, allowing for curved decision boundaries.
  • Varied Distributions: Data within each class can have different distributions.
  • Unequal Covariance: The covariance matrices of different classes do not need to be the same.

3.3.1 QDA example: Credit card fraud detection

A bank might use QDA to detect fraudulent transactions. Transaction amount and time of purchase serve as features.

Fraudulent transactions often show more variability (some small, some large) than legitimate ones. QDA is suitable because the spread of fraud cases differs from legitimate ones, necessitating a non-linear boundary 33.

3.4 Comparison of classification methods

LDA, QDA, and Logistic Regression (LR) are compared based on their goals, data distribution assumptions, and variance assumptions

MethodGoalData Distribution AssumptionAssumes Equal Variance
LRPredicts probability using an S-curveN/AN/A
LDASeparates groups with a straight lineSimilar distribution across classesYes
QDASeparates groups with a curved lineDistribution can differ across classesNo

Key Takeaway: LDA uses linear boundaries and assumes equal variance, QDA uses curved boundaries and allows unequal variance, while LR models probabilities directly 35 36.

3.5 Steps in Linear Discriminant Analysis

LDA involves a systematic process to classify data and establish decision boundaries.

3.5.1 Step 1: Form groups

The first step is to identify the dependent categorical variable that defines the classes or groups to be distinguished. You also identify the independent variables that will be used to separate these groups.

Example: Predicting student gender (dependent variable) based on height and weight (independent variables) 38 40.

Height (cm)Weight (kg)Gender (Class)
16565Male
17070Male
17580Male
16055Female
15550Female
16560Female

3.5.2 Step 2: Compute means and variance

Calculate the mean and variance for each independent variable within each class 41.

MaleFemale
Mean17071.67
Variance16.6738.89

3.5.3 Step 3: Find the best linear boundary

This step involves finding the discriminant function, which is a linear combination of features. This function is designed to best separate class means while minimizing the variance within each class 42.

The discriminant function is represented as: y=w1x1+w2x2+⋯+wnxn+by = w_1 x_1 + w_2 x_2 + \dots + w_n x_n + b 43.

  • w1,w2,…,wnw_1, w_2, \dots, w_n: Coefficients (weights) defining the slope of the decision boundary.
  • bb: The intercept, which shifts the boundary.
  • x=[x1,x2,…,xn]x = [x_1, x_2, \dots, x_n]: The vector of features.

3.5.4 Step 4: Plot the decision boundary

The calculated discriminant function is used to plot the line that separates the classes. This visual representation helps understand how the model divides the data space 44.

3.5.5 Step 5: Perform classification and validation

The final step uses the estimated discriminant function to classify new observations and assess the accuracy of these classifications.

  • Classification: For new data, calculate the discriminant score for each group and assign the observation to the group with the highest score.
  • Validation: Evaluate performance using a confusion matrix to compare predicted versus actual memberships. Metrics like accuracy, precision, and recall are calculated. Cross-validation techniques, such as k-fold, are used to assess how well the model generalizes to unseen data 45.

Example Calculation: For a new student with height 168 cm and weight 68 kg:

  • Male score: ymale=10.2+2.58−959.45=929.59y_{male} = 10.2 + 2.58 - 959.45 = 929.59.
  • Female score: yfemale=9.6+1.98−822.45=924.99y_{female} = 9.6 + 1.98 - 822.45 = 924.99 .

Since the male score (929.59) is higher than the female score (924.99), the student is predicted to be Male 46.

🔑 Important: Discriminant analysis is powerful for creating clear separation boundaries between classes, with LDA assuming linear separability and equal variances, while QDA handles non-linear boundaries and unequal variances 30 31.

© 2026 Maeve. All rights reserved. This content is protected by copyright.

See also