Unit 1 Notes
Unit 1 Notes
Syllabus
UNIT I: Data Science Fundamentals
Introduction to data science, PYTHON libraries for data science, data, types of
variables continuous and discrete variables, Data sampling, Pandas Data
Structures. Statistics for Data Science, Data visualization, Matplotlib,
Histograms, line charts, pie charts, multiple bar graphs, box plots, scatter plots,
SEABORN Plots, BOKEH plots
Data Science is a multidisciplinary field to extract knowledge and insights from data
Categories of Data:
USE CASES
Real world applications
• Financial Modeling
• Business Analytics
• Risk Management
• Market Segmentation
• Fraud Detection
• Customer Churn Prediction
• Algorithmic Trading
• Sales Forecasting
• Healthcare Informatics
• Social Network Analysis
• Disease Diagnosis
• Community Detection
• Patient Outcome Prediction
• Sentiment Analysis
• Drug Discovery.
• Influence Mapping
Applications of Data Science in HR Analytics
• Talent Acquisition
• Predictive modeling for candidate sourcing
• Resume parsing and screening automation
• Behavioral analysis for cultural fit assessment
• Employee Retention
• Attrition prediction using machine learning algorithms
• Identifying factors contributing to employee turnover
• Personalized retention strategies based on risk assessment
• Performance Management
• Predictive analytics for performance forecasting
• Feedback sentiment analysis for performance reviews
• Individualized development plans based on skill gap analysis
Applications of Data Science in HR Analytics
• Workforce Planning
• Demand forecasting for future workforce needs
• Skills inventory analysis for succession planning
• Optimal staffing levels based on workload prediction
• Employee Engagement
• Sentiment analysis of employee feedback
• Engagement score prediction using NLP techniques
• Customized engagement initiatives based on sentiment analysis results
• Diversity and Inclusion
• Bias detection in recruitment and promotion processes
• Diversity metrics tracking and reporting
• Personalized inclusion programs to address diversity gaps
Applications of Data Science in Finance
• Risk Management
• Predictive modeling for credit risk assessment
• Fraud detection using anomaly detection algorithms
• Market risk analysis and stress testing
• Algorithmic Trading
• Automated trading strategies based on machine learning
• Sentiment analysis of news and social media for trading signals
• High-frequency trading optimization
• Customer Segmentation
• Behavioral analysis for personalized marketing campaigns
• Churn prediction to retain high-value customers
• Customer lifetime value prediction for targeted acquisition
Applications of Data Science in Finance
• Portfolio Optimization
• Asset allocation using modern portfolio theory
• Risk-return optimization with Monte Carlo simulations
• Dynamic rebalancing based on market trends and portfolio goals
• Fraud Detection
• Transaction monitoring for detecting fraudulent activities
• Pattern recognition in financial transactions
• Network analysis to uncover complex fraud schemes
• Regulatory Compliance
• Anti-money laundering (AML) compliance using predictive analytics
• GDPR and CCPA compliance through data governance frameworks
• Automated reporting for regulatory filings
APPLICATIONS OF DATA SCIENCE IN BANKING
• Credit Scoring
• Predictive modeling for assessing creditworthiness
• Automated loan approval processes
• Risk-based pricing strategies
• Fraud Detection
• Anomaly detection algorithms for identifying suspicious activities
• Real-time transaction monitoring
• Behavioral analysis for fraud pattern recognition
• Customer Relationship Management (CRM)
• Personalized product recommendations
• Churn prediction and customer retention strategies
• Customer segmentation for targeted marketing campaigns
• Risk Management
• Market risk analysis using predictive analytics
• Stress testing and scenario analysis
• Compliance monitoring and regulatory reporting
• Operations Optimization
• Process automation for efficiency gains
• Predictive maintenance for ATM networks
• Supply chain optimization for inventory management
• Sentiment Analysis
• Social media and customer feedback analysis
• Brand sentiment tracking
• Reputation management and crisis response
•
Applications of Data Science in Supply Chain
• Demand Forecasting
• Predictive analytics for accurate demand prediction
• Seasonal trend analysis for demand fluctuations
• Machine learning models for dynamic forecasting
• Inventory Optimization
• Real-time inventory tracking and management
• Automated replenishment based on demand forecasting
• Optimization algorithms to minimize carrying costs
[Link]
DATA SCIENCE TOOLS AND TECHNOLOGIES
A. Programming Languages
• Python
• R
B. Data Visualization Tools
• Tableau
• Power BI
C. Machine Learning Libraries
• Scikit-learn
• TensorFlow
D. Big Data Frameworks
• Apache HadooP
• Apache Spark
DATA SCIENCE CLASSIFICATION
Tasks Description Algorithms Examples
Classification Predict if a data point belongs to Decision Trees, Neural Assigning voters into known
one of predefined classes. The networks, Bayesian buckets by political parties eg:
prediction will be based on models, Induction rules, soccer moms. Bucketing new
learning from known data set. K nearest neighbors customers into one of known
customer groups.
Regression Predict the numeric target label Linear regression, Predicting unemployment rate
of a data point. The prediction Logistic regression for next year. Estimating
will be based on learning from insurance premium.
known data set.
Anomaly Predict if a data point is an outlier Distance based, Density Fraud transaction detection in
detection compared to other data points in based credit cards. Network intrusion
the data set. detection.
Tasks Description Algorithms Examples
Time series Predict if the value of the Exponential Sales forecasting, production
target variable for future smoothing, forecasting, virtually any
time frame based on history ARIMA, growth phenomenon that needs
values. regression to be extrapolated
• Domain Knowledge
• Machine Learning
• Data Visualization
Why Data Science?
Why Data Science?
2500000000 gigabytes
➢ Traditional data processing tools are not efficient
for such massive data.
Interpret
Perform Apply
Understand Collect and results and
statistical machine
business clean raw communicate
analysis and learning
problems data them to
visualizations models
stakeholders
Data Science Lifecycle
Problem Data Cleaning Exploratory
Data Collection
Definition (Preprocessing) Data Analysis
Feature
Deployment Evaluation Model Building
Engineering
Monitoring
Data Science Lifecycle
Problem Definition:
• Define the objective (e.g., “Predict employee attrition” or “Classify emails as spam or not”).
Data Collection:
• Gather data from sources like databases, APIs, web scraping, IoT devices, etc.
Data Cleaning (Preprocessing):
• Handle missing values, outliers, and incorrect formats
• Normalize or standardize values
• Encode categorical variables
Exploratory Data Analysis (EDA):
• Use summary statistics and visualization tools
Identify trends, patterns, and relationships
Data Science Lifecycle
Feature Engineering:
• Select and transform relevant input variables (features)
• Create new features that improve model performance
Model Building:
• Choose and train a machine learning model (e.g., Decision Tree, Logistic Regression)
Evaluation:
• Use metrics like accuracy, precision, recall, F1-score, RMSE to test model performance
Deployment:
• Use the trained model in a real-world system (e.g., web app, mobile app)
Monitoring:
• Track the model’s performance over time and retrain if needed
Skills Required for Data Science
Skill Type Examples
Programming Python, R
Statistics Probability, distributions, testing
Machine Learning Regression, clustering, trees
Pandas
Matplotlib
Seaborn
SciPy
Scikit-learn
Bokeh
Library Main Use Common Use Cases
NumPy Numerical computations Arrays, math functions
Pandas
Matplotlib
Seaborn
SciPy
Scikit-learn
Bokeh
Library Main Use Common Use Cases
NumPy Numerical computations Arrays, math functions
Matplotlib
Seaborn
SciPy
Scikit-learn
Bokeh
Library Main Use Common Use Cases
NumPy Numerical computations Arrays, math functions
Seaborn
SciPy
Scikit-learn
Bokeh
Library Main Use Common Use Cases
NumPy Numerical computations Arrays, math functions
SciPy
Scikit-learn
Bokeh
Library Main Use Common Use Cases
NumPy Numerical computations Arrays, math functions
Scikit-learn
Bokeh
Library Main Use Common Use Cases
NumPy Numerical computations Arrays, math functions
Bokeh
Library Main Use Common Use Cases
NumPy Numerical computations Arrays, math functions
Continuous vs Discrete
Variables
Continuous Variables
Continuous Variables
• Variables that can take any value within a range. They are measurable
and often have decimal points.
Continuous Variables
• Variables that can take any value within a range. They are measurable
and often have decimal points.
Examples:
Characteristics: Visualization Tools:
• Number of students in a class: 30, 31
• Finite or countably infinite values • Bar Graphs
• Defects in a product: 0, 1, 2, ...
• Typically counted, not measured • Pie Charts
• Number of cars in a parking lot
Types of Qualitative (Categorical) Data
Nominal:
• Categories with no natural order
• E.g., Colors (Red, Green, Blue), Gender
Ordinal:
• Categories with a meaningful order, but differences are not measurable
• E.g., Ratings (Bad, Average, Good), Education level
Data Type Identification – Real Examples
Number of siblings
Blood group
Customer satisfaction
Student ID
Data Type Identification – Real Examples
Number of siblings
Blood group
Customer satisfaction
Student ID
Data Type Identification – Real Examples
Blood group
Customer satisfaction
Student ID
Data Type Identification – Real Examples
Customer satisfaction
Student ID
Data Type Identification – Real Examples
Student ID
Data Type Identification – Real Examples
• Data sampling is the process of selecting a subset of data from a larger dataset
(population) to perform analysis and make inferences about the entire population.
Why is Sampling Important in Data Science?
Why is Sampling Important in Data Science?
Purpose Explanation
Efficiency Speeds up analysis by working with smaller data
1. Population
Key Terminology in Data Sampling
1. Population
Definition: The entire set of individuals, items, or data points that you're
interested in studying.
2. Sample
Key Terminology in Data Sampling
2. Sample
Definition: A subset of the population selected for analysis.
3. Sampling Frame
4. Sampling Unit
5. Sampling Error
Example: If the average score of the sample is 75 but the actual population
average is 78, the sampling error is 3.
Key Terminology in Data Sampling
6. Sample Size
Impact: Larger sample sizes generally lead to more accurate and reliable
results.
A. Probability Sampling
1. Simple Random Sampling
2. Systematic Sampling
3. Stratified Sampling
4. Cluster Sampling
B. Non-Probability Sampling
1. Convenience Sampling
2. Judgmental (Purposive) Sampling
3. Snowball Sampling
Probability Sampling (Randomized Sampling)
Probability Sampling (Randomized Sampling)
Type Description
1. Simple Random Sampling Each item has equal chance. Example: [Link]() in Python
2. Systematic Sampling Every k-th element is selected. e.g., 2nd, 4th, 6th...
Population divided into strata (groups), samples are taken from each
3. Stratified Sampling
stratum
4. Cluster Sampling Population divided into clusters; entire clusters are randomly selected
Simple Random Sampling
Python Code
• import random
• print("Population:", population)
• print("Simple Random Sample:", sample)
Simple Random Sampling
Python Code
• import random
• print("Population:", population)
• print("Simple Random Sample:", sample)
Output Example
Type Description
1. Simple Random Sampling Each item has equal chance. Example: [Link]() in Python
2. Systematic Sampling Every k-th element is selected. e.g., 2nd, 4th, 6th...
Population divided into strata (groups), samples are taken from each
3. Stratified Sampling
stratum
4. Cluster Sampling Population divided into clusters; entire clusters are randomly selected
Systematic Sampling
Python Code
import numpy as np
# Sample population
population = list(range(1, 21)) # Population of 20
print("Population:", population)
print(f"Systematic Sample (every {k}th starting at {start}):",
systematic_sample)
Systematic Sampling
import numpy as np
Population: [1, 2, ..., 20]
Systematic Sample (every 4th starting at 2): [3, 7, 11, 15, 19]
# Sample population
population = list(range(1, 21)) # Population of 20
print("Population:", population)
print(f"Systematic Sample (every {k}th starting at {start}):",
systematic_sample)
Probability Sampling (Randomized Sampling)
Type Description
1. Simple Random Sampling Each item has equal chance. Example: [Link]() in Python
2. Systematic Sampling Every k-th element is selected. e.g., 2nd, 4th, 6th...
Population divided into strata (groups), samples are taken from each
3. Stratified Sampling
stratum
4. Cluster Sampling Population divided into clusters; entire clusters are randomly selected
Stratified Sampling
Python Code
import pandas as pd
import pandas as pd
Stratified Sample:
# Create a sample DataFrame with two strata (e.g., Gender) ID Gender
2 3 Male
data = {
6 7 Male
'ID': range(1, 21), 9 10 Male
'Gender': ['Male']*10 + ['Female']*10 10 11 Female
} 12 13 Female
df = [Link](data) 15 16 Female
Type Description
1. Simple Random Sampling Each item has equal chance. Example: [Link]() in Python
2. Systematic Sampling Every k-th element is selected. e.g., 2nd, 4th, 6th...
Population divided into strata (groups), samples are taken from each
3. Stratified Sampling
stratum
4. Cluster Sampling Population divided into clusters; entire clusters are randomly selected
Cluster Sampling
Python Code Output
A. Probability Sampling
1. Simple Random Sampling
2. Systematic Sampling
3. Stratified Sampling
4. Cluster Sampling
B. Non-Probability Sampling
1. Convenience Sampling
2. Judgmental (Purposive) Sampling
3. Snowball Sampling
Non-Probability Sampling
Feature Description
Randomness Not random
Chance of Selection Unknown or unequal for each population member
Bias Risk Higher compared to probability sampling
Use Cases Exploratory research, qualitative research, early testing
Cost & Time Usually faster and cheaper
Common Types of Non-Probability
Sampling
Method Description
1. Convenience Sampling Sample is taken from people who are easiest to reach
# Select students with score > 85 as they are "high performers" Judgmental Sample:
judgmental_sample = df[df['Score'] > 85] ID Name Score
1 3 Charlie 92
4 5 Eva 88
print("Judgmental Sample (Score > 85):\n", judgmental_sample)
7 8 Hannah 90
Snowball Sampling
while to_explore:
person = to_explore.pop()
if person not in snowball_sample:
snowball_sample.add(person)
to_explore.extend(network[person]) # Add referrals
✓ It provides fast, flexible, and expressive data structures that are designed to
make working with structured (tabular or labeled) data easy and intuitive.
It provides two primary data structures:
It provides two primary data structures:
Data
Description Analogy
Structure
Series
DataFrame
It provides two primary data structures:
Data
Description Analogy
Structure
1D labeled
Series A single column in Excel
array
2D labeled
DataFrame An Excel spreadsheet or table
table
Series
Series
A Series is a one-dimensional labeled array capable of holding any
data type (integers, strings, floats, etc.).
It has:
•Values: the actual data
•Index: labels for each value (like row labels)
Example:
Pandas DataFrame
A DataFrame is a two-dimensional labeled data structure with rows
and columns.
print("Names column:")
print(df['Name'])
Access a Row by Index: Access Multiple Columns:
print("Names column:")
print(df['Name'])
Adding and Modifying Columns
Function Description
[Link]()
[Link]()
[Link]()
[Link]()
[Link]
[Link]
Useful DataFrame Functions
Function Description
[Link]() Shows first 5 rows
[Link]()
[Link]()
[Link]()
[Link]
[Link]
Useful DataFrame Functions
Function Description
[Link]() Shows first 5 rows
[Link]() Shows last 5 rows
[Link]()
[Link]()
[Link]
[Link]
Useful DataFrame Functions
Function Description
[Link]() Shows first 5 rows
[Link]() Shows last 5 rows
[Link]() Summary stats (mean, std, min, max, etc.)
[Link]()
[Link]
[Link]
Useful DataFrame Functions
Function Description
[Link]() Shows first 5 rows
[Link]() Shows last 5 rows
[Link]() Summary stats (mean, std, min, max, etc.)
[Link]() Structure of the DataFrame
[Link]
[Link]
Useful DataFrame Functions
Function Description
[Link]() Shows first 5 rows
[Link]() Shows last 5 rows
[Link]() Summary stats (mean, std, min, max, etc.)
[Link]() Structure of the DataFrame
[Link] Rows and columns count
[Link]
Useful DataFrame Functions
Function Description
[Link]() Shows first 5 rows
[Link]() Shows last 5 rows
[Link]() Summary stats (mean, std, min, max, etc.)
[Link]() Structure of the DataFrame
[Link] Rows and columns count
[Link] Data types of each column
import pandas as pd
# Summary statistics
# Sample data dictionary print("\n [Link]():")
data = { print([Link]())
'Name': ['Alice', 'Bob', 'Charlie', 'David', 'Eva', 'Frank'],
'Age': [25, 30, 22, 28, 35, 27], # Structure of the DataFrame
'Marks': [85, 90, 78, 92, 88, 80] print("\n [Link]():")
} [Link]()
✓ Understanding data
✓ Drawing meaningful conclusions
✓ Making informed decisions
✓ Building predictive models
Descriptive Statistics
When to prefer median: When data has outliers (e.g., income data),
median gives a better center.
Mode
c. Mode
Mode
• The most frequent value.
Minimum (min) and Maximum (max)
Minimum (min) and Maximum (max)
Range
Range = Max − Min
Shows the total spread in the dataset.
Use:
•Quick way to understand the variability
•Doesn't account for distribution of data
Variance
Variance
Real-Life Example:
Imagine students’ marks in a class. If everyone's score is close to the class average
(mean), there's low variance. If some score very high and others very low, the
variance is high.
Mathematical Formula:
What Is Variance in Real Life?
➢ It’s used to express spread in the same unit as the data (unlike variance,
which is squared).
Standard Deviation
➢ Standard Deviation (SD) is simply the square root of variance.
➢ It’s used to express spread in the same unit as the data (unlike variance,
which is squared).
➢ It’s used to express spread in the same unit as the data (unlike variance,
which is squared).
➢ It’s used to express spread in the same unit as the data (unlike variance,
which is squared).
➢ Taking the square root brings it back to the original unit (meters,
marks), making it easier to interpret.
Standard Deviation (σ)
• Measures spread of data around the mean.
It’s the square root of variance, so it brings the unit back to the
original — making it easier to interpret than variance.
Real-Life example: Food delivery apps
Real-Life example: Food delivery apps
➢ You're tracking how long (in minutes) they take to deliver food.
Real-Life example: Food delivery apps
Imagine two food delivery apps — App A and App B. You're tracking how long (in
minutes) they take to deliver food.
App B:
➢Deviations: [-24, 26, -4, 16, -14]
➢Squared deviations: [576, 676, 16, 256, 196]
➢Variance = 344
➢Standard Deviation = √344 ≈ 18.52
Even though the average delivery times are somewhat close, App A is
reliable, and App B is unpredictable.
Why is Standard Deviation Important in Data Science?
Outlier = A value that is very different from the rest of the data.
What are Outliers?
An outlier is a data point that significantly differs from other observations in a
dataset.
It could be:
• A result of data entry errors :
What are Outliers?
An outlier is a data point that significantly differs from other observations in a
dataset.
It could be:
• A result of data entry errors : e.g., someone typing 1000 instead of 100
Example:
It could be:
• A result of data entry errors : e.g., someone typing 1000 instead of 100
• A rare event (valid but extreme):
What are Outliers?
An outlier is a data point that significantly differs from other observations in a
dataset.
It could be:
• A result of data entry errors : e.g., someone typing 1000 instead of 100
• A rare event (valid but extreme): e.g., one student scoring 100 while
everyone else scores 60–70
What are Outliers?
An outlier is a data point that significantly differs from other observations in a
dataset.
It could be:
• A result of data entry errors : e.g., someone typing 1000 instead of 100
• A rare event (valid but extreme): e.g., one student scoring 100 while
everyone else scores 60–70
• Or due to measurement error: faulty device or sensor
Why Detect and Remove Outliers?
➢They can skew statistical analyses (like mean, regression).
Example:
A sudden spike in network traffic (e.g., [100, 105, 110, 500, 520, 530]) during midnight might signal a
cyber attack.
Topic Purpose
Descriptive Statistics Summarize data
Probability Measure chance
Distributions Model data behavior
Inference Make predictions from samples
Correlation Understand relationships
Sampling Efficient data selection
Outlier Detection Identify anomalies
Bayesian Stats Incorporate prior beliefs
Probability Basics:
Probability Basics:
Probability quantifies the likelihood of events.
Probability Basics:
Probability quantifies the likelihood of events.
Key Characteristics:
▪ n = number of trials
▪ p = probability of success in each trial
▪ q = 1 - p = probability of failure
▪ x = number of successes
What is Binomial Distribution?
The Binomial Distribution models the number of successes in a fixed
number of independent Bernoulli trials, where each trial has only
two outcomes: success or failure.
Key Characteristics:
▪ n = number of trials
▪ p = probability of success in each trial
▪ q = 1 - p = probability of failure
▪ x = number of successes
Suppose a multiple-choice quiz has 10 questions (each with only 1 correct
answer), and a student guesses randomly with a 25% chance of getting any
question right. What’s the probability they get exactly 4 answers, correct?
Suppose a multiple-choice quiz has 10 questions (each with only 1 correct
answer), and a student guesses randomly with a 25% chance of getting any
question right. What’s the probability they get exactly 4 answers, correct?
Plot the Distribution:
Plot the Distribution:
Binomial Distribution
Use Case: Classification (e.g., pass/fail, success/failure)
Applications of Binomial Distribution:
•Hypothesis Testing
•Confidence Intervals
•p-value
Inferential Statistics
Drawing conclusions about a population from a sample.
•Hypothesis Testing
•Confidence Intervals
•p-value
t-Statistic -1.855
p-value 0.074
Purpose Benefit
Library Description
✓ Think of it as the "Excel chart tool" for Python—but much more flexible.
✓ It is often used with NumPy, Pandas, and Seaborn for data analysis tasks.
1. Matplotlib
Matplotlib is a powerful and widely-used Python library for data visualization.
It allows you to create a wide variety of static, animated, and interactive plots.
✓ Think of it as the "Excel chart tool" for Python—but much more flexible.
✓ It is often used with NumPy, Pandas, and Seaborn for data analysis tasks.
✓ pyplot: Module inside matplotlib for basic plotting (like line, bar, pie, etc.)
➢Line Chart,
➢Bar Chart,
➢Pie Chart,
➢Histogram,
➢Box Plot
Line Chart
A Line Chart is a type of plot used to display information as a series of data points
connected by straight lines. It is commonly used to visualize trends over time (time
series) or to show how a value changes continuously.
Line Chart
Line Chart
A Line Chart is a type of plot used to display information as a series of data points
connected by straight lines. It is commonly used to visualize trends over time (time
series) or to show how a value changes continuously.
Key Features:
•Shows relationship between two variables
•Useful for trend analysis
•X-axis: usually time or categories
•Y-axis: numerical values
Visualize the monthly sales of a company over 6 months.
Line Chart
Key Features:
•Best for showing percentage or part-of-whole relationships
•Total of all segments should equal 100%
•Often used for categorical data
Show the market share of five smartphone brands.
Show the market share of five smartphone brands.
What is a Histogram?
What is a Histogram?
Key Features:
✓ Represents distribution of data
✓ X-axis: intervals or bins of values
✓ Y-axis: frequency (number of values in each bin)
✓ Best used for understanding data spread, central tendency, and outliers
# Histogram
import numpy as np
data = [Link](1000)
[Link](data, bins=30, color='purple')
[Link]("Histogram using Matplotlib")
[Link]("Value")
[Link]("Frequency")
[Link]()
Multiple Bar Graph
Multiple Bar Graph
A Multiple Bar Graph (also called a grouped bar chart) displays two or more sets of
data side-by-side for the same categories.
It’s great for comparing multiple variables across the same categories (e.g., comparing
marks of 2 students in 5 subjects).
import [Link] as plt
import numpy as np
# Subjects (categories)
subjects = ['Math', 'Physics', 'Chemistry', 'Biology', 'English']
# Marks of two students
student_A = [85, 90, 78, 88, 76]
student_B = [80, 85, 82, 79, 83]
# Number of categories
x = [Link](len(subjects))
# Width of each bar
width = 0.35
# Create the grouped bar chart
[Link](x - width/2, student_A, width, label='Student A', color='skyblue')
[Link](x + width/2, student_B, width, label='Student B', color='orange')
# Labels and title
[Link]("Subjects")
[Link]("Marks")
[Link]("Marks Comparison of Two Students")
[Link](x, subjects) # Set category labels
[Link]()
# Display the plot
[Link](axis='y', linestyle='--', alpha=0.6)
plt.tight_layout()
[Link]()
Box Plot?
Box Plot?
A Box Plot (also called a box-and-whisker plot) is a standardized way to display the
distribution of a dataset based on five summary statistics:
✓ Minimum
✓ First Quartile (Q1) – 25th percentile
✓ Median (Q2) – 50th percentile
✓ Third Quartile (Q3) – 75th percentile
✓ Maximum
It also shows outliers, which are values that fall significantly outside the typical range.
Example: Multiple Box Plots
Scatter Plot?
What is a Scatter Plot?
A Scatter Plot is used to display the relationship (correlation) between two continuous
variables.
Each point in the plot represents one data pair (x, y).
Key Features:
➢ Shows patterns, trends, or correlation
➢ Used for bivariate data
➢ Ideal for identifying:
✓ Linear or non-linear relationships
✓ Clusters
✓ Outliers
✓ Each dot represents one student.
✓ As study hours increase, exam scores also increase — indicating a positive correlation.
Regression Line (Trend Line):
Real-World Applications: