SlideShare a Scribd company logo
1 of 9
PREDICATING
CONTINUOUS VARIABLES
PRESENTATION
By M NAGA SHANKAR
23KA5A0503
INTRODUCTION
• Predicting continuous variables is
crucial for understanding relationships
between different factors in data
analysis.
• R, a widely used statistical
programming language, provides
powerful tools for predictive modeling.
• Types
• 1.liner Models
• 2.Simple linear regression
• 3. Multiple Regression
Title : Predicting Continuous Variables Using R
LINEAR MODELS
• Linear models play a fundamental role
in predictive modeling.
• These models assume a linear
relationship between independent and
dependent variables.
• They are extensively utilized across
various disciplines including
economics, biology, and social
sciences for predictive analysis and
inference.
# Example dataset
data <- data.frame(x = c(1, 2, 3, 4, 5),
y = c(2, 4, 5, 4, 5))
# Fit linear model
linear_model <- lm(y ~ x, data)
# Summary of the linear model
summary(linear_model)
CODE
SIMPLE LINEAR REGRESSION
• Simple linear regression predicts the relationship between
two variables by fitting a straight line to the observed data
points.
• The mathematical equation for simple linear regression is
y=β0+β1x+ϵ, where:
⚬ y is the dependent variable,
⚬ x is the independent variable,
⚬ β0 is the intercept (the value of y when x is zero),
⚬ β1 is the slope (the change in y for a one-unit change
in x),
⚬ ϵ represents the error term.
• The goal of simple linear regression is to estimate the
values of β0 and β1 that minimize the sum of squared
differences between observed and predicted values.
# Example dataset
data <- data.frame(x = c(1, 2, 3, 4, 5),
y = c(2, 4, 5, 4, 5))
# Fit simple linear regression model
simple_linear_model <- lm(y ~ x, data)
# Summary of the simple linear regression model
summary(simple_linear_model)
CODE
MULTIPLE REGRESSION
• Multiple regression in R is a statistical technique used to
analyze the relationship between a dependent variable and
two or more independent variables. It extends simple linear
regression, which involves only one independent variable, to
handle situations where multiple predictors may influence the
outcome variable.
# Example dataset
data <- data.frame(x1 = c(1, 2, 3, 4, 5),
x2 = c(2, 3, 4, 5, 6),
y = c(2, 4, 5, 4, 5))
# Fit multiple regression model
multiple_regression_model <- lm(y ~ x1 + x2, data)
# Summary of the multiple regression model
summary(multiple_regression_model)
CODE
Any Queries ?
Thank you

More Related Content

Similar to Predicating continuous variables-1.pptx

Applied statistics lecture_6
Applied statistics lecture_6Applied statistics lecture_6
Applied statistics lecture_6
Daria Bogdanova
 
Regression analysis ppt
Regression analysis pptRegression analysis ppt
Regression analysis ppt
Elkana Rorio
 

Similar to Predicating continuous variables-1.pptx (20)

An introduction to R
An introduction to RAn introduction to R
An introduction to R
 
Machine Learning-Linear regression
Machine Learning-Linear regressionMachine Learning-Linear regression
Machine Learning-Linear regression
 
Multiple Regression.ppt
Multiple Regression.pptMultiple Regression.ppt
Multiple Regression.ppt
 
Regression analysis in R
Regression analysis in RRegression analysis in R
Regression analysis in R
 
Correlation and regression in r
Correlation and regression in rCorrelation and regression in r
Correlation and regression in r
 
Rsh qam11 ch04 ge
Rsh qam11 ch04 geRsh qam11 ch04 ge
Rsh qam11 ch04 ge
 
Module-2_ML.pdf
Module-2_ML.pdfModule-2_ML.pdf
Module-2_ML.pdf
 
Regression analysis: Simple Linear Regression Multiple Linear Regression
Regression analysis:  Simple Linear Regression Multiple Linear RegressionRegression analysis:  Simple Linear Regression Multiple Linear Regression
Regression analysis: Simple Linear Regression Multiple Linear Regression
 
Logistical Regression.pptx
Logistical Regression.pptxLogistical Regression.pptx
Logistical Regression.pptx
 
Unit-III Correlation and Regression.pptx
Unit-III Correlation and Regression.pptxUnit-III Correlation and Regression.pptx
Unit-III Correlation and Regression.pptx
 
Applied statistics lecture_6
Applied statistics lecture_6Applied statistics lecture_6
Applied statistics lecture_6
 
GLMs.pptx
GLMs.pptxGLMs.pptx
GLMs.pptx
 
Unit-3 Data Analytics.pdf
Unit-3 Data Analytics.pdfUnit-3 Data Analytics.pdf
Unit-3 Data Analytics.pdf
 
Unit-3 Data Analytics.pdf
Unit-3 Data Analytics.pdfUnit-3 Data Analytics.pdf
Unit-3 Data Analytics.pdf
 
Unit-3 Data Analytics.pdf
Unit-3 Data Analytics.pdfUnit-3 Data Analytics.pdf
Unit-3 Data Analytics.pdf
 
Linear regression analysis
Linear regression analysisLinear regression analysis
Linear regression analysis
 
Regression analysis and its type
Regression analysis and its typeRegression analysis and its type
Regression analysis and its type
 
Regression analysis ppt
Regression analysis pptRegression analysis ppt
Regression analysis ppt
 
Multiple-Linear-Regression-Model-Analysis.pptx
Multiple-Linear-Regression-Model-Analysis.pptxMultiple-Linear-Regression-Model-Analysis.pptx
Multiple-Linear-Regression-Model-Analysis.pptx
 
Data-analytic sins in property-based molecular design
Data-analytic sins in property-based molecular design Data-analytic sins in property-based molecular design
Data-analytic sins in property-based molecular design
 

Recently uploaded

Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
KarakKing
 

Recently uploaded (20)

Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 

Predicating continuous variables-1.pptx

  • 2. INTRODUCTION • Predicting continuous variables is crucial for understanding relationships between different factors in data analysis. • R, a widely used statistical programming language, provides powerful tools for predictive modeling. • Types • 1.liner Models • 2.Simple linear regression • 3. Multiple Regression Title : Predicting Continuous Variables Using R
  • 3. LINEAR MODELS • Linear models play a fundamental role in predictive modeling. • These models assume a linear relationship between independent and dependent variables. • They are extensively utilized across various disciplines including economics, biology, and social sciences for predictive analysis and inference.
  • 4. # Example dataset data <- data.frame(x = c(1, 2, 3, 4, 5), y = c(2, 4, 5, 4, 5)) # Fit linear model linear_model <- lm(y ~ x, data) # Summary of the linear model summary(linear_model) CODE
  • 5. SIMPLE LINEAR REGRESSION • Simple linear regression predicts the relationship between two variables by fitting a straight line to the observed data points. • The mathematical equation for simple linear regression is y=β0+β1x+ϵ, where: ⚬ y is the dependent variable, ⚬ x is the independent variable, ⚬ β0 is the intercept (the value of y when x is zero), ⚬ β1 is the slope (the change in y for a one-unit change in x), ⚬ ϵ represents the error term. • The goal of simple linear regression is to estimate the values of β0 and β1 that minimize the sum of squared differences between observed and predicted values.
  • 6. # Example dataset data <- data.frame(x = c(1, 2, 3, 4, 5), y = c(2, 4, 5, 4, 5)) # Fit simple linear regression model simple_linear_model <- lm(y ~ x, data) # Summary of the simple linear regression model summary(simple_linear_model) CODE
  • 7. MULTIPLE REGRESSION • Multiple regression in R is a statistical technique used to analyze the relationship between a dependent variable and two or more independent variables. It extends simple linear regression, which involves only one independent variable, to handle situations where multiple predictors may influence the outcome variable.
  • 8. # Example dataset data <- data.frame(x1 = c(1, 2, 3, 4, 5), x2 = c(2, 3, 4, 5, 6), y = c(2, 4, 5, 4, 5)) # Fit multiple regression model multiple_regression_model <- lm(y ~ x1 + x2, data) # Summary of the multiple regression model summary(multiple_regression_model) CODE