SlideShare uma empresa Scribd logo
1 de 10
Linear regression Ryan Sain, Ph.D.
Regression Introduced Regression is about prediction Predicting an unknown point based on observations (or measurements) Widgets sold based on advertising We can explore known relationships We can explore unknown relationships
The Variables Outcome Variable The thing we are predicting Number of widgets sold Predictor Variable (simple regression) The variables that you know about Advertising dollars Predictor Variables (multiple regression) We predict values of a dependent variable (outcome) using one or more independent variables (predictors)
The model Any prediction follows the basic formula: Outcomei = (model) + errori In regression our model contains several things: Slope of the line (that best fits the data measured) = b1 Intercept of the line (at the Y axis) b0  So our model = Yi = (b0 + b1Xi) + Errori Do you recognize this equation? The model is simply a line
So how do we calculate this line? The Method of Least Squares The line that is the closest to all the data points Residuals = Deviations (distance of actual data points to the line) Square these residuals to get rid of negatives Then sum them.
How well does this line fit? No line is perfect (there are always residuals) If our line is a good one it should be better than a basic line (significantly so) We compare our line to a basic line: Deviation = SUM (observed – model)2 This is basically a ‘mean’ (model) The mean is an awful predictor No matter how much you spend on adverts – the sales of your widgets are the same
Fitness continued SSt = total sum of squared differences (using the mean) SSr= total residual sum of squares (using our best fit model) Represents a degree of inaccuracy SSm (model sum of squares) = SSt – SSr Large = our model is different than the simple model Proportion of improvement: R2 = SSm/ SSt Percentage of variation in the outcome that can be explained by our model
More fitness You can assess this using an F test as well F is simply systematic variance/unsystematic variance In regression that means: Improvement of the model (SSm - systematic) and the difference between the model and the observed data (SSr – unsystematic) But we need to look at mean squares Because we need to use the average sums of squares in an F test. So we divide by degrees of freedom For SSm = the number of variables in the model For SSr = number of observations – the number of parameters being estimated (number of beta coefficients or predictors) F = MSM / MSR
Individual Predictors The coefficient bis essentially the gradient of the line If the predictor is not valuable then it will predict no change in the outcome as it changes.  This would be b= 0  This is what the mean does If the predictor is valuable – then it will be significantly different than 0.
Individual Predictors cont. To test if b is different from 0 we will use a t-test. We are comparing how big the b value is in comparison to the amount of error in that estimate. We will then use the standard error of the bvalue.  t = bobserved – bexpected / SEb Since the expected value is 0 (no change) then we have to simply divide the observed b value by the standard error of b to get the t score. Degress of freedom is calculated using the following: N – p – 1 (p = number of predictors)

Mais conteúdo relacionado

Mais procurados

12 13 h2_measurement_ppt
12 13 h2_measurement_ppt12 13 h2_measurement_ppt
12 13 h2_measurement_pptTan Hong
 
50g working with matricies
50g  working with matricies50g  working with matricies
50g working with matriciesEfrain Parizaca
 
2.2 measurements, estimations and errors(part 2)
2.2   measurements, estimations and errors(part 2)2.2   measurements, estimations and errors(part 2)
2.2 measurements, estimations and errors(part 2)Raechel Lim
 
1.2.3 solving linear equations (multiple unknowns)
1.2.3  solving linear equations (multiple unknowns)1.2.3  solving linear equations (multiple unknowns)
1.2.3 solving linear equations (multiple unknowns)janineryder
 
Gang-Of-Four State Pattern
Gang-Of-Four State PatternGang-Of-Four State Pattern
Gang-Of-Four State PatternMark Cheeseman
 

Mais procurados (7)

12 13 h2_measurement_ppt
12 13 h2_measurement_ppt12 13 h2_measurement_ppt
12 13 h2_measurement_ppt
 
50g working with matricies
50g  working with matricies50g  working with matricies
50g working with matricies
 
2.2 measurements, estimations and errors(part 2)
2.2   measurements, estimations and errors(part 2)2.2   measurements, estimations and errors(part 2)
2.2 measurements, estimations and errors(part 2)
 
1.2.3 solving linear equations (multiple unknowns)
1.2.3  solving linear equations (multiple unknowns)1.2.3  solving linear equations (multiple unknowns)
1.2.3 solving linear equations (multiple unknowns)
 
Chapter 2
Chapter 2Chapter 2
Chapter 2
 
Gang-Of-Four State Pattern
Gang-Of-Four State PatternGang-Of-Four State Pattern
Gang-Of-Four State Pattern
 
LISP: Errors In Lisp
LISP: Errors In LispLISP: Errors In Lisp
LISP: Errors In Lisp
 

Destaque

iOS: Overview, Architecture, Development & Versions
iOS: Overview, Architecture, Development & Versions iOS: Overview, Architecture, Development & Versions
iOS: Overview, Architecture, Development & Versions Sandra Kerbage
 
[iOS] Multiple Background Threads
[iOS] Multiple Background Threads[iOS] Multiple Background Threads
[iOS] Multiple Background ThreadsNikmesoft Ltd
 
iOS Basics: Introducing the iPad, iPhone, and iCloud
iOS Basics: Introducing the iPad, iPhone, and iCloudiOS Basics: Introducing the iPad, iPhone, and iCloud
iOS Basics: Introducing the iPad, iPhone, and iCloudSt. Petersburg College
 
[iOS] Introduction to iOS Programming
[iOS] Introduction to iOS Programming[iOS] Introduction to iOS Programming
[iOS] Introduction to iOS ProgrammingNikmesoft Ltd
 
iOS Application Penetration Testing for Beginners
iOS Application Penetration Testing for BeginnersiOS Application Penetration Testing for Beginners
iOS Application Penetration Testing for BeginnersRyanISI
 
Pentesting iOS Applications
Pentesting iOS ApplicationsPentesting iOS Applications
Pentesting iOS Applicationsjasonhaddix
 
[iOS] Basic UI Elements
[iOS] Basic UI Elements[iOS] Basic UI Elements
[iOS] Basic UI ElementsNikmesoft Ltd
 

Destaque (14)

[iOS] Data Storage
[iOS] Data Storage[iOS] Data Storage
[iOS] Data Storage
 
iOS: Overview, Architecture, Development & Versions
iOS: Overview, Architecture, Development & Versions iOS: Overview, Architecture, Development & Versions
iOS: Overview, Architecture, Development & Versions
 
[iOS] Navigation
[iOS] Navigation[iOS] Navigation
[iOS] Navigation
 
[iOS] Multiple Background Threads
[iOS] Multiple Background Threads[iOS] Multiple Background Threads
[iOS] Multiple Background Threads
 
iOS Basics: Introducing the iPad, iPhone, and iCloud
iOS Basics: Introducing the iPad, iPhone, and iCloudiOS Basics: Introducing the iPad, iPhone, and iCloud
iOS Basics: Introducing the iPad, iPhone, and iCloud
 
A seminar report on i cloud
A  seminar report on i cloudA  seminar report on i cloud
A seminar report on i cloud
 
[iOS] Introduction to iOS Programming
[iOS] Introduction to iOS Programming[iOS] Introduction to iOS Programming
[iOS] Introduction to iOS Programming
 
[iOS] Networking
[iOS] Networking[iOS] Networking
[iOS] Networking
 
iOS Application Penetration Testing
iOS Application Penetration TestingiOS Application Penetration Testing
iOS Application Penetration Testing
 
iOS Application Penetration Testing for Beginners
iOS Application Penetration Testing for BeginnersiOS Application Penetration Testing for Beginners
iOS Application Penetration Testing for Beginners
 
Pentesting iOS Applications
Pentesting iOS ApplicationsPentesting iOS Applications
Pentesting iOS Applications
 
[iOS] Basic UI Elements
[iOS] Basic UI Elements[iOS] Basic UI Elements
[iOS] Basic UI Elements
 
Ios operating system
Ios operating systemIos operating system
Ios operating system
 
Apple iOS
Apple iOSApple iOS
Apple iOS
 

Semelhante a Understanding linear regression models

Machine learning session4(linear regression)
Machine learning   session4(linear regression)Machine learning   session4(linear regression)
Machine learning session4(linear regression)Abhimanyu Dwivedi
 
Regression Analysis presentation by Al Arizmendez and Cathryn Lottier
Regression Analysis presentation by Al Arizmendez and Cathryn LottierRegression Analysis presentation by Al Arizmendez and Cathryn Lottier
Regression Analysis presentation by Al Arizmendez and Cathryn LottierAl Arizmendez
 
Detail Study of the concept of Regression model.pptx
Detail Study of the concept of  Regression model.pptxDetail Study of the concept of  Regression model.pptx
Detail Study of the concept of Regression model.pptxtruptikulkarni2066
 
What is Isotonic Regression and How Can a Business Utilize it to Analyze Data?
What is Isotonic Regression and How Can a Business Utilize it to Analyze Data?What is Isotonic Regression and How Can a Business Utilize it to Analyze Data?
What is Isotonic Regression and How Can a Business Utilize it to Analyze Data?Smarten Augmented Analytics
 
Structural equation modeling in amos
Structural equation modeling in amosStructural equation modeling in amos
Structural equation modeling in amosBalaji P
 
HRUG - Linear regression with R
HRUG - Linear regression with RHRUG - Linear regression with R
HRUG - Linear regression with Regoodwintx
 
Building a Regression Model using SPSS
Building a Regression Model using SPSSBuilding a Regression Model using SPSS
Building a Regression Model using SPSSZac Bodner
 
statistical learning theory
statistical learning theorystatistical learning theory
statistical learning theoryHarshKumar943076
 
Gradient Decent in Linear Regression.pptx
Gradient Decent in Linear Regression.pptxGradient Decent in Linear Regression.pptx
Gradient Decent in Linear Regression.pptxalphaomega55
 
Simple Linear Regression: Step-By-Step
Simple Linear Regression: Step-By-StepSimple Linear Regression: Step-By-Step
Simple Linear Regression: Step-By-StepDan Wellisch
 
Interpreting Regression Results - Machine Learning
Interpreting Regression Results - Machine LearningInterpreting Regression Results - Machine Learning
Interpreting Regression Results - Machine LearningKush Kulshrestha
 
Data Science - Part XII - Ridge Regression, LASSO, and Elastic Nets
Data Science - Part XII - Ridge Regression, LASSO, and Elastic NetsData Science - Part XII - Ridge Regression, LASSO, and Elastic Nets
Data Science - Part XII - Ridge Regression, LASSO, and Elastic NetsDerek Kane
 
Linear functions and modeling
Linear functions and modelingLinear functions and modeling
Linear functions and modelingIVY SOLIS
 

Semelhante a Understanding linear regression models (20)

Machine learning session4(linear regression)
Machine learning   session4(linear regression)Machine learning   session4(linear regression)
Machine learning session4(linear regression)
 
Regression Analysis presentation by Al Arizmendez and Cathryn Lottier
Regression Analysis presentation by Al Arizmendez and Cathryn LottierRegression Analysis presentation by Al Arizmendez and Cathryn Lottier
Regression Analysis presentation by Al Arizmendez and Cathryn Lottier
 
Detail Study of the concept of Regression model.pptx
Detail Study of the concept of  Regression model.pptxDetail Study of the concept of  Regression model.pptx
Detail Study of the concept of Regression model.pptx
 
SEM
SEMSEM
SEM
 
What is Isotonic Regression and How Can a Business Utilize it to Analyze Data?
What is Isotonic Regression and How Can a Business Utilize it to Analyze Data?What is Isotonic Regression and How Can a Business Utilize it to Analyze Data?
What is Isotonic Regression and How Can a Business Utilize it to Analyze Data?
 
Chapter 14 Part I
Chapter 14 Part IChapter 14 Part I
Chapter 14 Part I
 
Structural equation modeling in amos
Structural equation modeling in amosStructural equation modeling in amos
Structural equation modeling in amos
 
HRUG - Linear regression with R
HRUG - Linear regression with RHRUG - Linear regression with R
HRUG - Linear regression with R
 
MF Presentation.pptx
MF Presentation.pptxMF Presentation.pptx
MF Presentation.pptx
 
Building a Regression Model using SPSS
Building a Regression Model using SPSSBuilding a Regression Model using SPSS
Building a Regression Model using SPSS
 
statistical learning theory
statistical learning theorystatistical learning theory
statistical learning theory
 
Gradient Decent in Linear Regression.pptx
Gradient Decent in Linear Regression.pptxGradient Decent in Linear Regression.pptx
Gradient Decent in Linear Regression.pptx
 
Linear Regression
Linear RegressionLinear Regression
Linear Regression
 
Simple Linear Regression: Step-By-Step
Simple Linear Regression: Step-By-StepSimple Linear Regression: Step-By-Step
Simple Linear Regression: Step-By-Step
 
Multiple Linear Regression
Multiple Linear Regression Multiple Linear Regression
Multiple Linear Regression
 
Interpreting Regression Results - Machine Learning
Interpreting Regression Results - Machine LearningInterpreting Regression Results - Machine Learning
Interpreting Regression Results - Machine Learning
 
Data Science - Part XII - Ridge Regression, LASSO, and Elastic Nets
Data Science - Part XII - Ridge Regression, LASSO, and Elastic NetsData Science - Part XII - Ridge Regression, LASSO, and Elastic Nets
Data Science - Part XII - Ridge Regression, LASSO, and Elastic Nets
 
Statistics for ess
Statistics for essStatistics for ess
Statistics for ess
 
Linear functions and modeling
Linear functions and modelingLinear functions and modeling
Linear functions and modeling
 
Unit 03 - Consolidated.pptx
Unit 03 - Consolidated.pptxUnit 03 - Consolidated.pptx
Unit 03 - Consolidated.pptx
 

Mais de Ryan Sain

Psyc 321_14 surveys
Psyc 321_14 surveysPsyc 321_14 surveys
Psyc 321_14 surveysRyan Sain
 
Psyc 321_13 ethics
Psyc 321_13 ethicsPsyc 321_13 ethics
Psyc 321_13 ethicsRyan Sain
 
Psyc 321_12 small n research
Psyc 321_12 small n researchPsyc 321_12 small n research
Psyc 321_12 small n researchRyan Sain
 
Psyc 321_11 quasi experimentation
Psyc 321_11 quasi experimentationPsyc 321_11 quasi experimentation
Psyc 321_11 quasi experimentationRyan Sain
 
psyc 321_10 experimental ecology
psyc 321_10 experimental ecologypsyc 321_10 experimental ecology
psyc 321_10 experimental ecologyRyan Sain
 
Psyc 321_09 within groups
Psyc 321_09 within groupsPsyc 321_09 within groups
Psyc 321_09 within groupsRyan Sain
 
Psyc 321_07 control
Psyc 321_07 controlPsyc 321_07 control
Psyc 321_07 controlRyan Sain
 
psyc 321_06 threats to validity and control
psyc 321_06 threats to validity and controlpsyc 321_06 threats to validity and control
psyc 321_06 threats to validity and controlRyan Sain
 
Psyc 321_05 introduction to stats
Psyc 321_05 introduction to statsPsyc 321_05 introduction to stats
Psyc 321_05 introduction to statsRyan Sain
 
Psyc 321_04 numerical description
Psyc 321_04 numerical descriptionPsyc 321_04 numerical description
Psyc 321_04 numerical descriptionRyan Sain
 
Psyc 321_03 hypotheses
Psyc 321_03 hypothesesPsyc 321_03 hypotheses
Psyc 321_03 hypothesesRyan Sain
 
Psyc 321_02 methods of_science
Psyc 321_02 methods of_sciencePsyc 321_02 methods of_science
Psyc 321_02 methods of_scienceRyan Sain
 
Psyc 321_01 what is science
Psyc 321_01 what is sciencePsyc 321_01 what is science
Psyc 321_01 what is scienceRyan Sain
 
324 12 3 special topics tool use language
324 12 3 special topics tool use language324 12 3 special topics tool use language
324 12 3 special topics tool use languageRyan Sain
 
324 12 2 special topics timing
324 12 2 special topics timing324 12 2 special topics timing
324 12 2 special topics timingRyan Sain
 
324 12 part 1 special topics food caching
324 12 part 1 special topics food caching324 12 part 1 special topics food caching
324 12 part 1 special topics food cachingRyan Sain
 
324 10 observational learning
324 10 observational learning324 10 observational learning
324 10 observational learningRyan Sain
 
324 09 avoidance
324 09 avoidance324 09 avoidance
324 09 avoidanceRyan Sain
 
324 7 part 2 extinction
324 7 part 2 extinction 324 7 part 2 extinction
324 7 part 2 extinction Ryan Sain
 
324 06 stimulus control
324 06 stimulus control324 06 stimulus control
324 06 stimulus controlRyan Sain
 

Mais de Ryan Sain (20)

Psyc 321_14 surveys
Psyc 321_14 surveysPsyc 321_14 surveys
Psyc 321_14 surveys
 
Psyc 321_13 ethics
Psyc 321_13 ethicsPsyc 321_13 ethics
Psyc 321_13 ethics
 
Psyc 321_12 small n research
Psyc 321_12 small n researchPsyc 321_12 small n research
Psyc 321_12 small n research
 
Psyc 321_11 quasi experimentation
Psyc 321_11 quasi experimentationPsyc 321_11 quasi experimentation
Psyc 321_11 quasi experimentation
 
psyc 321_10 experimental ecology
psyc 321_10 experimental ecologypsyc 321_10 experimental ecology
psyc 321_10 experimental ecology
 
Psyc 321_09 within groups
Psyc 321_09 within groupsPsyc 321_09 within groups
Psyc 321_09 within groups
 
Psyc 321_07 control
Psyc 321_07 controlPsyc 321_07 control
Psyc 321_07 control
 
psyc 321_06 threats to validity and control
psyc 321_06 threats to validity and controlpsyc 321_06 threats to validity and control
psyc 321_06 threats to validity and control
 
Psyc 321_05 introduction to stats
Psyc 321_05 introduction to statsPsyc 321_05 introduction to stats
Psyc 321_05 introduction to stats
 
Psyc 321_04 numerical description
Psyc 321_04 numerical descriptionPsyc 321_04 numerical description
Psyc 321_04 numerical description
 
Psyc 321_03 hypotheses
Psyc 321_03 hypothesesPsyc 321_03 hypotheses
Psyc 321_03 hypotheses
 
Psyc 321_02 methods of_science
Psyc 321_02 methods of_sciencePsyc 321_02 methods of_science
Psyc 321_02 methods of_science
 
Psyc 321_01 what is science
Psyc 321_01 what is sciencePsyc 321_01 what is science
Psyc 321_01 what is science
 
324 12 3 special topics tool use language
324 12 3 special topics tool use language324 12 3 special topics tool use language
324 12 3 special topics tool use language
 
324 12 2 special topics timing
324 12 2 special topics timing324 12 2 special topics timing
324 12 2 special topics timing
 
324 12 part 1 special topics food caching
324 12 part 1 special topics food caching324 12 part 1 special topics food caching
324 12 part 1 special topics food caching
 
324 10 observational learning
324 10 observational learning324 10 observational learning
324 10 observational learning
 
324 09 avoidance
324 09 avoidance324 09 avoidance
324 09 avoidance
 
324 7 part 2 extinction
324 7 part 2 extinction 324 7 part 2 extinction
324 7 part 2 extinction
 
324 06 stimulus control
324 06 stimulus control324 06 stimulus control
324 06 stimulus control
 

Último

Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxEyham Joco
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentInMediaRes1
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitolTechU
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfUjwalaBharambe
 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxUnboundStockton
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementmkooblal
 

Último (20)

Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptx
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media Component
 
ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptx
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docx
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of management
 

Understanding linear regression models

  • 2. Regression Introduced Regression is about prediction Predicting an unknown point based on observations (or measurements) Widgets sold based on advertising We can explore known relationships We can explore unknown relationships
  • 3. The Variables Outcome Variable The thing we are predicting Number of widgets sold Predictor Variable (simple regression) The variables that you know about Advertising dollars Predictor Variables (multiple regression) We predict values of a dependent variable (outcome) using one or more independent variables (predictors)
  • 4. The model Any prediction follows the basic formula: Outcomei = (model) + errori In regression our model contains several things: Slope of the line (that best fits the data measured) = b1 Intercept of the line (at the Y axis) b0 So our model = Yi = (b0 + b1Xi) + Errori Do you recognize this equation? The model is simply a line
  • 5. So how do we calculate this line? The Method of Least Squares The line that is the closest to all the data points Residuals = Deviations (distance of actual data points to the line) Square these residuals to get rid of negatives Then sum them.
  • 6. How well does this line fit? No line is perfect (there are always residuals) If our line is a good one it should be better than a basic line (significantly so) We compare our line to a basic line: Deviation = SUM (observed – model)2 This is basically a ‘mean’ (model) The mean is an awful predictor No matter how much you spend on adverts – the sales of your widgets are the same
  • 7. Fitness continued SSt = total sum of squared differences (using the mean) SSr= total residual sum of squares (using our best fit model) Represents a degree of inaccuracy SSm (model sum of squares) = SSt – SSr Large = our model is different than the simple model Proportion of improvement: R2 = SSm/ SSt Percentage of variation in the outcome that can be explained by our model
  • 8. More fitness You can assess this using an F test as well F is simply systematic variance/unsystematic variance In regression that means: Improvement of the model (SSm - systematic) and the difference between the model and the observed data (SSr – unsystematic) But we need to look at mean squares Because we need to use the average sums of squares in an F test. So we divide by degrees of freedom For SSm = the number of variables in the model For SSr = number of observations – the number of parameters being estimated (number of beta coefficients or predictors) F = MSM / MSR
  • 9. Individual Predictors The coefficient bis essentially the gradient of the line If the predictor is not valuable then it will predict no change in the outcome as it changes. This would be b= 0 This is what the mean does If the predictor is valuable – then it will be significantly different than 0.
  • 10. Individual Predictors cont. To test if b is different from 0 we will use a t-test. We are comparing how big the b value is in comparison to the amount of error in that estimate. We will then use the standard error of the bvalue. t = bobserved – bexpected / SEb Since the expected value is 0 (no change) then we have to simply divide the observed b value by the standard error of b to get the t score. Degress of freedom is calculated using the following: N – p – 1 (p = number of predictors)