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.
- Store was clean and well-organized.
- Staff were helpful and courteous.
- Prices were reasonable.
- I found what I was looking for easily.
- Checkout was fast and efficient.
- Product quality met my expectations.
- Store hours were convenient.
- 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 Grouping | Survey Items |
|---|---|
| Group 1 | Q1. Store clean; Q2. Staff helpful; Q5. Checkout fast |
| Group 2 | Q3. Prices reasonable; Q6. Product quality met expectations; Q8. Recommend store |
| Group 3 | Q4. 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 Item | Factor |
|---|---|
| Q2. Staff were helpful and courteous | Factor 1: |
| Q5. Checkout was fast and efficient | Service Quality |
| Q6. Product quality met my expectations | Factor 2: |
| Q8. I would recommend this store to others | Product Value |
| Q4. I found what I was looking for easily | Factor 3: |
| Q7. Store hours were convenient | Convenience |
| 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+ϵi.
- Xi: Observed variable i.
- F1,…,Fk: Latent (hidden) factors.
- λij: Factor loading of factor j on variable i.
- ϵi: Unique error for variable i 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.
| Variable | Q1 | Q2 | Q3 | Q4 | Q5 | Q6 | Q7 | Q8 |
|---|---|---|---|---|---|---|---|---|
| Q1 | 1.0 | 0.9 | 0.8 | 0.5 | 0.9 | 0.7 | 0.5 | 0.6 |
| Q2 | 0.9 | 1.0 | 0.85 | 0.6 | 0.9 | 0.75 | 0.6 | 0.65 |
| Q3 | 0.8 | 0.85 | 1.0 | 0.7 | 0.85 | 0.8 | 0.7 | 0.7 |
| Q4 | 0.5 | 0.6 | 0.7 | 1.0 | 0.75 | 0.7 | 0.65 | 0.75 |
| Q5 | 0.9 | 0.9 | 0.85 | 0.75 | 1.0 | 0.75 | 0.65 | 0.7 |
| Q6 | 0.7 | 0.75 | 0.8 | 0.7 | 0.75 | 1.0 | 0.85 | 0.85 |
| Q7 | 0.5 | 0.6 | 0.7 | 0.65 | 0.65 | 0.85 | 1.0 | 0.9 |
| Q8 | 0.6 | 0.65 | 0.7 | 0.75 | 0.7 | 0.85 | 0.9 | 1.0 |
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.
| Component | Eigenvalue | % of Variance Explained |
|---|---|---|
| PC1 | 4.50 | 56.25% |
| PC2 | 2.20 | 27.5% |
| PC3 | 0.70 | 8.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.
| Item | PC1 | PC2 |
|---|---|---|
| Q1. Store was clean and well-organized | 0.85 | 0.10 |
| Q2. Staff were helpful and courteous | 0.88 | 0.12 |
| Q3. Prices were reasonable | 0.75 | 0.55 |
| Q4. I found what I was looking for easily | 0.65 | 0.60 |
| Q5. Checkout was fast and efficient | 0.82 | 0.20 |
| Q6. Product quality met my expectations | 0.40 | 0.78 |
| Q7. Store hours were convenient | 0.35 | 0.80 |
| Q8. I would recommend this store to others | 0.38 | 0.76 |
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 Item | Component 1: Service Quality | Component 2: Product/Store Value |
|---|---|---|
| Q1. Store was clean and well-organized | High Loading | Low Loading |
| Q2. Staff were helpful and courteous | High Loading | Low Loading |
| Q5. Checkout was fast and efficient | High Loading | Low Loading |
| Q3. Prices were reasonable | Moderate Loading | Moderate Loading |
| Q4. I found what I was looking for easily | Moderate Loading | Moderate Loading |
| Q6. Product quality met my expectations | Low Loading | High Loading |
| Q7. Store hours were convenient | Low Loading | High Loading |
| Q8. I would recommend this store to others | Low Loading | High Loading |
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+⋯+wikPCk
Where:
- Zi: standardized observed variable i.
- PC1,PC2,…,PCk: the principal components.
- wij: the factor loading, representing the weight of factor j on variable i 24.
2.4 PCA vs. Exploratory Factor Analysis (EFA)
PCA and EFA share similarities but have different primary goals and interpretations.
| Feature | Exploratory Factor Analysis (EFA) | Principal Component Analysis (PCA) |
|---|---|---|
| Purpose | To find latent constructs or themes (e.g., Service Quality). | To reduce the number of variables while preserving as much total variance as possible. |
| Goal | Understand the underlying psychological or conceptual structure. | Get a smaller set of components for further analysis (e.g., regression, clustering). |
| Outcome | Interpret factors based on which items group together conceptually. | Retain components based on eigenvalues and % variance explained, not necessarily their meaning. |
| Example | May 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 Type | Example Use of Factor Model |
|---|---|
| Survey data | Identify dimensions like customer satisfaction or employee motivation. |
| Behavioural data | Discover user behavior types or engagement styles from website clicks. |
| Financial data | Identify latent market forces from stock returns or macroeconomic indicators. |
| Medical data | Identify hidden health conditions or syndromes from symptoms and lab results. |
| Sensor data | Find latent patterns across IoT sensors (e.g., temperature, humidity). |
| Educational data | Reveal underlying academic abilities (e.g., math vs. verbal reasoning) from exam scores. |
🔑 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
| Method | Goal | Data Distribution Assumption | Assumes Equal Variance |
|---|---|---|---|
| LR | Predicts probability using an S-curve | N/A | N/A |
| LDA | Separates groups with a straight line | Similar distribution across classes | Yes |
| QDA | Separates groups with a curved line | Distribution can differ across classes | No |
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) |
|---|---|---|
| 165 | 65 | Male |
| 170 | 70 | Male |
| 175 | 80 | Male |
| 160 | 55 | Female |
| 155 | 50 | Female |
| 165 | 60 | Female |
3.5.2 Step 2: Compute means and variance
Calculate the mean and variance for each independent variable within each class 41.
| Male | Female | |
|---|---|---|
| Mean | 170 | 71.67 |
| Variance | 16.67 | 38.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+b 43.
- w1,w2,…,wn: Coefficients (weights) defining the slope of the decision boundary.
- b: The intercept, which shifts the boundary.
- x=[x1,x2,…,xn]: 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.59.
- Female score: yfemale=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.