SlideShare a Scribd company logo
1 of 15
Matlab:Regression analysis
Regression analysis Ā Regression analysisĀ includes any techniques for modeling and analyzing several variables, when the focus is on the relationship between aĀ dependent variableĀ and one or moreĀ independent variables.
Linear Regression Models In statistics, linear regression models often take the form of something like this:
Linear Regression Models Examples of linear regression models with a scalar predictor variable x include: Linear additive (straight-line) models ā€” Terms are f1(x) = 1 and f2(x) = x. Polynomial models ā€” Terms are f1(x) = 1, f2(x) = x, ā€¦, fp(x) = xpā€“1. Chebyshev orthogonal polynomial models ā€” Terms are f1(x) = 1, f2(x) = x, ā€¦, fp(x) = 2xfpā€“1(x) ā€“ fpā€“2(x). Fourier trigonometric polynomial models ā€” Terms are f1(x) = 1/2 and sines and cosines of different frequencies.
Linear Regression Models Examples of linear regression models with a vector of predictor variables x = (x1, ..., xN) include: Linear additive (hyperplane) models ā€” Terms are f1(x) = 1 and fk(x) = xk (k = 1, ..., N). Pairwise interaction models ā€” Terms are linear additive terms plus gk1k2(x) = xk1xk2 (k1, k2 = 1, ..., N, k1 ā‰  k2). Quadratic models ā€” Terms are pairwise interaction terms plus hk(x) = xk2 (k = 1, ..., N). Pure quadratic models ā€” Terms are quadratic terms minus the gk1k2(x) terms.
Multiple Linear Regression Multiple linear regression models are useful for: Understanding which terms fj(x) have greatest effect on the response (coefficients Ī²j with greatest magnitude) Finding the direction of the effects (signs of the Ī²j) Predicting unobserved values of the response (y(x) for new x)
Robust Regression If the distribution of errors is asymmetric or prone to outliers, model assumptions are invalidated, and parameter estimates, confidence intervals, and other computed statistics become unreliable. The Statistics Toolbox function robustfit is useful in these cases. The function implements a robust fitting method that is less sensitive than ordinary least squares to large changes in small parts of the data.
Stepwise Regression Stepwise regression is a systematic method for adding and removing terms from a multilinear model based on their statistical significance in a regression. The method begins with an initial model and then compares the explanatory power of incrementally larger and smaller models.
Ridge Regression This situation of multicollinearity can arise, for example, when data are collected without an experimental design. Ridge regression addresses the problem by estimating regression coefficients using where k is the ridge parameter and I is the identity matrix.
Partial Least Squares Partial least-squares (PLS) regression is a technique used with data that contain correlated predictor variables. This technique constructs new predictor variables, known as components, as linear combinations of the original predictor variables.
Polynomial Models Polynomial models have the advantages of being simple, familiar in their properties, and reasonably flexible for following data trends. They are also robust with respect to changes in the location and scale of the data. However, polynomial models may be poor predictors of new values.
Response Surface Models Response surface models are multivariate polynomial models. They typically arise in the design of experiments where they are used to determine a set of design variables that optimize a response. Linear terms alone produce models with response surfaces that are hyper-planes.
Generalized Linear Models Linear regression models describe a linear relationship between a response and one or more predictive terms. Many times, however, a nonlinear relationship exists. Nonlinear Regression describes general nonlinear models. A special class of nonlinear models, known as generalized linear models, makes use of linear methods.
Multivariate Regression Whether or not the predictor x is a vector of predictor variables, multivariate regression refers to the case where the response  y = (y1,..., yM) is a vector of M response variables.
Visit more self help tutorials Pick a tutorial of your choice and browse through it at your own pace. The tutorials section is free, self-guiding and will not involve any additional support. Visit us at www.dataminingtools.net

More Related Content

What's hot

Statistical software for Sampling from Finite Populations: an analysis using ...
Statistical software for Sampling from Finite Populations: an analysis using ...Statistical software for Sampling from Finite Populations: an analysis using ...
Statistical software for Sampling from Finite Populations: an analysis using ...
michele de meo
Ā 
System model.Chapter One(GEOFFREY GORDON)
System model.Chapter One(GEOFFREY GORDON)System model.Chapter One(GEOFFREY GORDON)
System model.Chapter One(GEOFFREY GORDON)
Towfiq218
Ā 
Basics mathematical modeling
Basics mathematical modelingBasics mathematical modeling
Basics mathematical modeling
cyndy
Ā 
Discrete And Continuous Simulation
Discrete And Continuous SimulationDiscrete And Continuous Simulation
Discrete And Continuous Simulation
Nguyen Chien
Ā 

What's hot (20)

Scatter diagram
Scatter diagramScatter diagram
Scatter diagram
Ā 
Scatter Plot
Scatter PlotScatter Plot
Scatter Plot
Ā 
Statistical learning vs. Machine Learning
Statistical learning vs. Machine LearningStatistical learning vs. Machine Learning
Statistical learning vs. Machine Learning
Ā 
Missing Data and data imputation techniques
Missing Data and data imputation techniquesMissing Data and data imputation techniques
Missing Data and data imputation techniques
Ā 
General Linear Model | Statistics
General Linear Model | StatisticsGeneral Linear Model | Statistics
General Linear Model | Statistics
Ā 
Types of Mathematical Model.
Types of Mathematical Model.Types of Mathematical Model.
Types of Mathematical Model.
Ā 
Scatter Diagram
Scatter DiagramScatter Diagram
Scatter Diagram
Ā 
Final study guide
Final study guide Final study guide
Final study guide
Ā 
Statistical software for Sampling from Finite Populations: an analysis using ...
Statistical software for Sampling from Finite Populations: an analysis using ...Statistical software for Sampling from Finite Populations: an analysis using ...
Statistical software for Sampling from Finite Populations: an analysis using ...
Ā 
Steps for q3 q4
Steps for q3 q4Steps for q3 q4
Steps for q3 q4
Ā 
System model.Chapter One(GEOFFREY GORDON)
System model.Chapter One(GEOFFREY GORDON)System model.Chapter One(GEOFFREY GORDON)
System model.Chapter One(GEOFFREY GORDON)
Ā 
Basics mathematical modeling
Basics mathematical modelingBasics mathematical modeling
Basics mathematical modeling
Ā 
Linear regreesion ppt
Linear regreesion pptLinear regreesion ppt
Linear regreesion ppt
Ā 
CapĆ­tulo 3
CapĆ­tulo 3CapĆ­tulo 3
CapĆ­tulo 3
Ā 
Presenting Data
Presenting DataPresenting Data
Presenting Data
Ā 
Statswork- Lecture:1: Structural Equation Modeling (SEM) using AMOS (www.stat...
Statswork- Lecture:1: Structural Equation Modeling (SEM) using AMOS (www.stat...Statswork- Lecture:1: Structural Equation Modeling (SEM) using AMOS (www.stat...
Statswork- Lecture:1: Structural Equation Modeling (SEM) using AMOS (www.stat...
Ā 
Visualizations in Exploratory Data Analysis
Visualizations in Exploratory Data AnalysisVisualizations in Exploratory Data Analysis
Visualizations in Exploratory Data Analysis
Ā 
Discrete And Continuous Simulation
Discrete And Continuous SimulationDiscrete And Continuous Simulation
Discrete And Continuous Simulation
Ā 
Exploring Data
Exploring DataExploring Data
Exploring Data
Ā 
Comparison between two statistical tests of significance
Comparison between two statistical tests of significanceComparison between two statistical tests of significance
Comparison between two statistical tests of significance
Ā 

Similar to Matlab: Regression

Multivariate reg analysis
Multivariate reg analysisMultivariate reg analysis
Multivariate reg analysis
Irfan Hussain
Ā 
Regression analysis ppt
Regression analysis pptRegression analysis ppt
Regression analysis ppt
Elkana Rorio
Ā 
Multicollinearity1
Multicollinearity1Multicollinearity1
Multicollinearity1
Muhammad Ali
Ā 
Linear Regression
Linear RegressionLinear Regression
Linear Regression
Abdullah al Mamun
Ā 

Similar to Matlab: Regression (20)

unit 3 regression.pptx
unit 3 regression.pptxunit 3 regression.pptx
unit 3 regression.pptx
Ā 
Multivariate reg analysis
Multivariate reg analysisMultivariate reg analysis
Multivariate reg analysis
Ā 
Get Multiple Regression Assignment Help
Get Multiple Regression Assignment Help Get Multiple Regression Assignment Help
Get Multiple Regression Assignment Help
Ā 
Regression analysis ppt
Regression analysis pptRegression analysis ppt
Regression analysis ppt
Ā 
Multicollinearity1
Multicollinearity1Multicollinearity1
Multicollinearity1
Ā 
Regression analysis and its type
Regression analysis and its typeRegression analysis and its type
Regression analysis and its type
Ā 
All types of model(Simulation & Modelling) #ShareThisIfYouLike
All types of model(Simulation & Modelling) #ShareThisIfYouLikeAll types of model(Simulation & Modelling) #ShareThisIfYouLike
All types of model(Simulation & Modelling) #ShareThisIfYouLike
Ā 
Modelo Generalizado
Modelo GeneralizadoModelo Generalizado
Modelo Generalizado
Ā 
Linear Regression
Linear RegressionLinear Regression
Linear Regression
Ā 
Machine learning session4(linear regression)
Machine learning   session4(linear regression)Machine learning   session4(linear regression)
Machine learning session4(linear regression)
Ā 
journals public
journals publicjournals public
journals public
Ā 
journal in research
journal in research journal in research
journal in research
Ā 
research journal
research journalresearch journal
research journal
Ā 
published in the journal
published in the journalpublished in the journal
published in the journal
Ā 
Ders 2 ols .ppt
Ders 2 ols .pptDers 2 ols .ppt
Ders 2 ols .ppt
Ā 
Regression Analysis
Regression AnalysisRegression Analysis
Regression Analysis
Ā 
Machine Learning Unit 3 Semester 3 MSc IT Part 2 Mumbai University
Machine Learning Unit 3 Semester 3  MSc IT Part 2 Mumbai UniversityMachine Learning Unit 3 Semester 3  MSc IT Part 2 Mumbai University
Machine Learning Unit 3 Semester 3 MSc IT Part 2 Mumbai University
Ā 
2.7 other classifiers
2.7 other classifiers2.7 other classifiers
2.7 other classifiers
Ā 
Supervised Learning.pdf
Supervised Learning.pdfSupervised Learning.pdf
Supervised Learning.pdf
Ā 
CH3.pdf
CH3.pdfCH3.pdf
CH3.pdf
Ā 

More from matlab Content

More from matlab Content (20)

C,C++ In Matlab
C,C++ In MatlabC,C++ In Matlab
C,C++ In Matlab
Ā 
Matlab: Control Statements
Matlab: Control StatementsMatlab: Control Statements
Matlab: Control Statements
Ā 
Matlab: Discrete Linear Systems
Matlab: Discrete Linear SystemsMatlab: Discrete Linear Systems
Matlab: Discrete Linear Systems
Ā 
Matlab Distributions
Matlab DistributionsMatlab Distributions
Matlab Distributions
Ā 
Matlab: Graph Plots
Matlab: Graph PlotsMatlab: Graph Plots
Matlab: Graph Plots
Ā 
Matlab: Gui
Matlab: GuiMatlab: Gui
Matlab: Gui
Ā 
Matlab: Linear Methods, Quantiles
Matlab: Linear Methods, QuantilesMatlab: Linear Methods, Quantiles
Matlab: Linear Methods, Quantiles
Ā 
Matlab Data And Statistics
Matlab Data And StatisticsMatlab Data And Statistics
Matlab Data And Statistics
Ā 
Matlab Feature Extraction Using Segmentation And Edge Detection
Matlab Feature Extraction Using Segmentation And Edge DetectionMatlab Feature Extraction Using Segmentation And Edge Detection
Matlab Feature Extraction Using Segmentation And Edge Detection
Ā 
Matlab Image Enhancement Techniques
Matlab Image Enhancement TechniquesMatlab Image Enhancement Techniques
Matlab Image Enhancement Techniques
Ā 
Matlab Image Restoration Techniques
Matlab Image Restoration TechniquesMatlab Image Restoration Techniques
Matlab Image Restoration Techniques
Ā 
Matlab Importing Data
Matlab Importing DataMatlab Importing Data
Matlab Importing Data
Ā 
Matlab Organizing Data
Matlab Organizing DataMatlab Organizing Data
Matlab Organizing Data
Ā 
Matlab Text Files
Matlab Text FilesMatlab Text Files
Matlab Text Files
Ā 
Matlab Visualizing Data
Matlab Visualizing DataMatlab Visualizing Data
Matlab Visualizing Data
Ā 
Matlab Working With Images
Matlab Working With ImagesMatlab Working With Images
Matlab Working With Images
Ā 
Matlab: Non Linear Methods
Matlab: Non Linear MethodsMatlab: Non Linear Methods
Matlab: Non Linear Methods
Ā 
Matlab: Procedures And Functions
Matlab: Procedures And FunctionsMatlab: Procedures And Functions
Matlab: Procedures And Functions
Ā 
Matlab: Programming Environment
Matlab: Programming EnvironmentMatlab: Programming Environment
Matlab: Programming Environment
Ā 
Matlab: Saving And Publishing
Matlab: Saving And PublishingMatlab: Saving And Publishing
Matlab: Saving And Publishing
Ā 

Recently uploaded

Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
Ā 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(ā˜Žļø+971_581248768%)**%*]'#abortion pills for sale in dubai@
Ā 

Recently uploaded (20)

AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
Ā 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
Ā 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
Ā 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
Ā 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
Ā 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
Ā 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Ā 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
Ā 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Ā 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Ā 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
Ā 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
Ā 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
Ā 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Ā 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Ā 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
Ā 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Ā 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Ā 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
Ā 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
Ā 

Matlab: Regression

  • 2. Regression analysis Ā Regression analysisĀ includes any techniques for modeling and analyzing several variables, when the focus is on the relationship between aĀ dependent variableĀ and one or moreĀ independent variables.
  • 3. Linear Regression Models In statistics, linear regression models often take the form of something like this:
  • 4. Linear Regression Models Examples of linear regression models with a scalar predictor variable x include: Linear additive (straight-line) models ā€” Terms are f1(x) = 1 and f2(x) = x. Polynomial models ā€” Terms are f1(x) = 1, f2(x) = x, ā€¦, fp(x) = xpā€“1. Chebyshev orthogonal polynomial models ā€” Terms are f1(x) = 1, f2(x) = x, ā€¦, fp(x) = 2xfpā€“1(x) ā€“ fpā€“2(x). Fourier trigonometric polynomial models ā€” Terms are f1(x) = 1/2 and sines and cosines of different frequencies.
  • 5. Linear Regression Models Examples of linear regression models with a vector of predictor variables x = (x1, ..., xN) include: Linear additive (hyperplane) models ā€” Terms are f1(x) = 1 and fk(x) = xk (k = 1, ..., N). Pairwise interaction models ā€” Terms are linear additive terms plus gk1k2(x) = xk1xk2 (k1, k2 = 1, ..., N, k1 ā‰  k2). Quadratic models ā€” Terms are pairwise interaction terms plus hk(x) = xk2 (k = 1, ..., N). Pure quadratic models ā€” Terms are quadratic terms minus the gk1k2(x) terms.
  • 6. Multiple Linear Regression Multiple linear regression models are useful for: Understanding which terms fj(x) have greatest effect on the response (coefficients Ī²j with greatest magnitude) Finding the direction of the effects (signs of the Ī²j) Predicting unobserved values of the response (y(x) for new x)
  • 7. Robust Regression If the distribution of errors is asymmetric or prone to outliers, model assumptions are invalidated, and parameter estimates, confidence intervals, and other computed statistics become unreliable. The Statistics Toolbox function robustfit is useful in these cases. The function implements a robust fitting method that is less sensitive than ordinary least squares to large changes in small parts of the data.
  • 8. Stepwise Regression Stepwise regression is a systematic method for adding and removing terms from a multilinear model based on their statistical significance in a regression. The method begins with an initial model and then compares the explanatory power of incrementally larger and smaller models.
  • 9. Ridge Regression This situation of multicollinearity can arise, for example, when data are collected without an experimental design. Ridge regression addresses the problem by estimating regression coefficients using where k is the ridge parameter and I is the identity matrix.
  • 10. Partial Least Squares Partial least-squares (PLS) regression is a technique used with data that contain correlated predictor variables. This technique constructs new predictor variables, known as components, as linear combinations of the original predictor variables.
  • 11. Polynomial Models Polynomial models have the advantages of being simple, familiar in their properties, and reasonably flexible for following data trends. They are also robust with respect to changes in the location and scale of the data. However, polynomial models may be poor predictors of new values.
  • 12. Response Surface Models Response surface models are multivariate polynomial models. They typically arise in the design of experiments where they are used to determine a set of design variables that optimize a response. Linear terms alone produce models with response surfaces that are hyper-planes.
  • 13. Generalized Linear Models Linear regression models describe a linear relationship between a response and one or more predictive terms. Many times, however, a nonlinear relationship exists. Nonlinear Regression describes general nonlinear models. A special class of nonlinear models, known as generalized linear models, makes use of linear methods.
  • 14. Multivariate Regression Whether or not the predictor x is a vector of predictor variables, multivariate regression refers to the case where the response y = (y1,..., yM) is a vector of M response variables.
  • 15. Visit more self help tutorials Pick a tutorial of your choice and browse through it at your own pace. The tutorials section is free, self-guiding and will not involve any additional support. Visit us at www.dataminingtools.net