REPORT
probability Assignment
Topic
Regression & correlation
Name: Ashutosh verma
ID NO: 2025A7PS0378U
Topic1
REGRESSION ANALYSIS
1. Introduction
Regression analysis is one of the most widely used statistical techniques
for modeling and analyzing the relationship between variables. It is
applied across scientific, economic, engineering, and social research to
understand patterns and make predictions from data.
2. Definition
Regression analysis is a statistical method used to study the relationship
between a dependent variable and one or more independent variables. It
establishes how the dependent variable changes when any one of the
independent variables varies and provides a mathematical equation that
best fits the observed data. This technique helps in prediction, trend
analysis, and decision-making.
3. Applications of Regression Analysis
Regression analysis has a wide range of practical applications in different
fields:
● Economics & Business: Forecasting demand, estimating
production costs, predicting GDP growth.
● Finance: Predicting stock prices, evaluating credit risk, analyzing
investment returns.
● Engineering: Quality control, reliability testing, predicting
system performance.
● Healthcare: Estimating disease risk, analyzing the effect of
treatments on patient outcomes.
● Marketing: Studying consumer behavior, measuring the impact
of advertising on sales.
● Education: Predicting student performance based on study hours
or attendance.
● Environmental Science: Modeling rainfall, pollution levels, or
temperature trends.
4. Purpose of Regression Analysis
● To understand the strength and nature of relationships
between variables.
● To predict or estimate the value of a dependent variable.
● To identify trends and patterns in data.
● To evaluate the impact of multiple factors on an outcome.
● To support data-driven decisions in research and industry.
Problem1
ANSWER
Python code
Graph
Inference
Topic 2
Correlation
Definition:
Correlation is a statistical measure that expresses the strength and direction of
the relationship between two variables. It is most often represented by the
correlation coefficient (r), which ranges from −1 to +1:
● r=+1: Perfect positive correlation (both variables increase together).
● r=-1: Perfect negative correlation (one variable increases while the
other decreases).
● r=0: No linear relationship between the variables.
Correlation helps us understand whether changes in one variable are
associated with changes in another, but it does not prove causation.
Applications:
1. Business & Economics:
○ Measuring the relationship between advertising spend and sales
revenue.
○ Studying the link between inflation and
unemployment.
2. Education:
○ Analyzing the correlation between study hours and
exam scores.
3. Health Sciences:
Examining the relationship between exercise
frequency and blood pressure.
4. Engineering & Data Science:
○ Identifying correlations between sensor readings and
system performance.
○ Feature selection in machine learning models.
5. Human Resources:
3.
In your dataset example, correlation between years of
experience and salary shows how strongly experience
influences pay growth.
Problem 2
Answer
Python code
Graph
Output and Inference