0% found this document useful (0 votes)
19 views4 pages

Unit 4 Data Analytics Overview

The document covers key concepts in data analytics, focusing on supervised vs unsupervised learning, segmentation, decision trees, overfitting and pruning, measures of forecast accuracy, and STL decomposition. It outlines definitions, types, techniques, applications, and challenges associated with each topic. The goal is to enhance analysis, decision-making, and forecasting in various fields such as marketing, healthcare, and finance.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views4 pages

Unit 4 Data Analytics Overview

The document covers key concepts in data analytics, focusing on supervised vs unsupervised learning, segmentation, decision trees, overfitting and pruning, measures of forecast accuracy, and STL decomposition. It outlines definitions, types, techniques, applications, and challenges associated with each topic. The goal is to enhance analysis, decision-making, and forecasting in various fields such as marketing, healthcare, and finance.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Data Analytics - Unit 4 Full Notes

1. Supervised vs Unsupervised Learning

Supervised Learning vs Unsupervised Learning:

| Feature | Supervised Learning | Unsupervised Learning |


|-------------------------------|----------------------------------------------------------|----------------------------------------------------------|
| Definition | Learning with labeled data | Learning with unlabeled data |
| Input Data | Input has output labels | Input has no output labels |
| Goal | Predict output | Discover hidden patterns |
| Output Type | Predictive (classification/regression) | Descriptive (clusters/associations)
|
| Examples of Tasks | Classification, Regression | Clustering, Association
|
| Evaluation | Accuracy, RMSE, etc. | Silhouette score, manual interpretation
|
| Algorithms | Decision Trees, SVM, Linear Regression | K-Means, DBSCAN, PCA
|
| Use Cases | Email spam detection, loan approval | Customer segmentation, anomaly
detection |

2. Segmentation

Segmentation is the process of dividing a dataset into smaller, meaningful subgroups based on similarities in attributes
or behavior.

Types of Segmentation:
- Demographic: Age, income, gender
- Geographic: Region, city, country
- Behavioral: Purchase habits, product usage
- Psychographic: Lifestyle, interests

Segmentation Techniques:
- K-Means Clustering
- Hierarchical Clustering
- DBSCAN
- Self-Organizing Maps (SOM)

Applications:
- Marketing: Targeting specific customer groups
- Healthcare: Grouping patients by conditions
Data Analytics - Unit 4 Full Notes

- Retail: Personalizing product recommendations

Goal: Improve analysis, decision-making, and forecasting by understanding group-specific behavior.

3. Decision Trees

Decision Trees are flowchart-like structures used for classification and regression tasks.

Types:
- Classification Tree: Output is categorical
- Regression Tree: Output is numerical

Structure:
- Nodes: Attribute tests
- Branches: Outcomes of tests
- Leaves: Final decisions or class labels

Splitting Criteria:
- Gini Index, Entropy/Information Gain for classification
- Variance reduction for regression

Process:
1. Choose the best splitting attribute
2. Partition the data accordingly
3. Recursively build subtrees
4. Stop when data is pure or depth is limited

Challenges:
- Overfitting: Very deep trees memorize noise
- Pruning: Technique to simplify the tree by removing branches

Ensembles (Multiple Trees):


- Random Forests: Uses voting among multiple trees
- Boosting: Combines weak learners into a strong model

Applications: Credit scoring, medical diagnosis, churn prediction

4. Overfitting and Pruning

Overfitting occurs when a model learns the training data too closely, including noise and anomalies, leading to poor
Data Analytics - Unit 4 Full Notes

generalization.

Symptoms:
- High training accuracy but low test accuracy
- Complex and deep tree structure

Causes:
- Too many attributes
- Lack of pruning
- Small datasets

Pruning is used to reduce tree size and improve generalization.

Types of Pruning:
- Pre-Pruning: Stops tree growth early (e.g., max depth, min samples)
- Post-Pruning: Removes unnecessary branches after full tree is built

Benefits:
- Reduces overfitting
- Improves prediction on unseen data
- Enhances interpretability

Goal: Build a model that balances complexity and accuracy.

5. Measures of Forecast Accuracy

Forecast accuracy metrics evaluate how close predictions are to actual values.

Common Metrics:
- MAE (Mean Absolute Error): Average of absolute errors
- MSE (Mean Squared Error): Average of squared errors
- RMSE (Root Mean Squared Error): Square root of MSE
- MAPE (Mean Absolute Percentage Error): Error as a percentage
- sMAPE (Symmetric MAPE): Balanced version of MAPE

Choosing the Right Metric:


- Use MAE for simple average error
- Use RMSE when large errors matter more
- Use MAPE for relative accuracy (not if data has zero values)

Applications:
Data Analytics - Unit 4 Full Notes

- Retail: Sales forecasting


- Finance: Stock price prediction
- Healthcare: Patient count prediction

Lower metric values indicate higher accuracy.

6. STL Decomposition

STL (Seasonal and Trend decomposition using Loess) breaks a time series into three components:

1. Trend: Long-term progression


2. Seasonality: Repeating short-term cycles
3. Residual: Random noise

STL uses LOESS (Local regression) for smoothing and is highly flexible.

Advantages:
- Works with any seasonality type
- Robust to outliers
- Allows component-wise analysis

Steps:
1. Input time series
2. Apply smoothing to extract trend and seasonality
3. Subtract from original to get residual

Applications:
- Retail: Understand sales trends
- Finance: Analyze stock patterns
- Weather: Seasonal forecasting

STL is ideal for preprocessing time series before applying models like ARIMA.

Common questions

Powered by AI

Segmentation in marketing and healthcare is crucial as it allows for the customization of strategies and solutions based on specific group characteristics. Common techniques include demographic, geographic, behavioral, and psychographic segmentation, implemented through methods like K-Means clustering, hierarchical clustering, and DBSCAN, to effectively target customer groups in marketing and group patients by conditions in healthcare .

Decision trees use a flowchart structure to perform classification (assigning categorical outcomes) and regression (predicting numerical outcomes) through a series of nodes and branches. While intuitive and easy to interpret, they face challenges like overfitting due to their tendency to form complex structures that memorize noise. This necessitates pruning techniques to enhance generalization and model simplicity .

Unsupervised learning algorithms like K-Means and DBSCAN are advantageous for segmentation, as they excel in identifying natural groupings without prior labels. K-Means is efficient for spherical clusters, while DBSCAN handles noise and identifies arbitrarily shaped clusters. However, K-Means does not perform well with non-globular clusters, and DBSCAN's performance can be sensitive to parameter selection and less effective on large, high-dimensional datasets .

Decision trees and SVMs serve different purposes in supervised learning. Decision trees are hierarchical structures ideal for classification and regression, favored in scenarios like credit scoring and medical diagnoses due to their interpretability. SVMs, which find hyperplanes to separate data, are often used for higher-dimensional spaces and complex boundaries, making them suitable for applications requiring robust separation between classes, despite being less interpretable than decision trees .

STL decomposition enhances time series analysis by breaking the series into trend, seasonality, and residual components using LOESS smoothing. Its flexibility in handling various seasonality types and robustness to outliers make it ideal for analyzing complex patterns in fields like retail (sales trends), finance (stock patterns), and weather (seasonal forecasting), providing insights for informed decision-making .

RMSE (Root Mean Squared Error) might be preferred over MAE (Mean Absolute Error) when large prediction errors are significant because RMSE penalizes larger errors more due to the squaring of errors, thus providing a more sensitive measure in contexts where such deviations are critical, such as stock price predictions or sales forecasting .

Supervised learning involves training models with labeled data to predict outcomes, focusing on tasks like classification and regression. In contrast, unsupervised learning deals with unlabeled data, aiming to discover hidden patterns through tasks such as clustering and association .

Overfitting in decision trees is characterized by high training accuracy but low test accuracy, often caused by too many attributes, lack of pruning, or small datasets. Pruning, both pre-pruning (stopping growth early) and post-pruning (removing excess branches), addresses overfitting by simplifying the model, enhancing generalization, and improving prediction on unseen data .

Pruning reduces the size of decision trees by removing unnecessary branches, which often results in enhanced interpretability and improved generalization on unseen data. By balancing complexity and accuracy, pruning prevents overfitting, allowing the tree to maintain high predictive performance without excessively capturing noise, leading to a more straightforward, interpretable model .

Segmentation involves dividing a dataset into subgroups based on attributes or behaviors, allowing for targeted strategies in industries like marketing, where customer groups can be targeted; healthcare, to group patients by conditions; and retail, to personalize product recommendations. This nuanced understanding enhances decision-making and forecasting accuracy by providing actionable insights specific to each segment .

You might also like