SlideShare a Scribd company logo
1 of 20
SIMPLE LINEAR REGRESSION(PA297Statistics for Public Administrator) Reporters:  	Atty. Gener R. Gayam, CPA Agapito “pete” M. Cagampang, PM 	Raymond B. Cabling, MD Presented to: Dr. Maria Theresa P. Pelones
SIMPLE LINEAR REGRESSION The Scatter Diagram 	In solving problems that concern estimation and forecasting, a scatter diagram can be used as a graphical approach. This technique consists of joining the points corresponding to the paired scores of dependent and independent variables which are commonly represented by X and Y on the X – y coordinate system. 	Below is an illustration of a scatter diagram using the data in Table 6.1. This table shows the data about the six years working experience and the income of eight employees in a big industrial corporation.
Table 6.1
Figure 6.1 – A Scatter Diagram for Table 6.1 Data X X X X X X X X
For you to roughly predict the value of a dependent variable, such as years of working experience, from the dependent variable, which is income, your next step is to draw a trend line. This is a line passing through the series of points such that the total vertical measurement of the points below this line is more or less equal to the total measurements of the points  above the line. If these requirements are satisfied, you draw a correct trend Y. The illustration is shown in figure 6.1
Figure 6.2 - A trend line drawn on the linear direction between working experience and income of eight employees Trend Line
	Using the trend line draw in Figure 6.1 above, the value estimated for Y when X is 16, is 18. You should not fail to remember that if a “straight line” appears to describe the relationship, the algebraic approach called the regression formula can be used as explained in the next topic.
a = Ῡ - bX B. The Least Square Linear Regression Equation The least square linear regression equation can be understood through this formula known from algebra. 			Y = a + bx 	For instance the Y = a+bx in figure 6.1 in that line that gives the smallest sum of the squares of the vertical measurements or distance of the points from the line. 	In solving the regression equations, you need to solve first,
ΣX = 62  ΣY = 90 X = 7.75 Y = 11.25 Example: Solve the least squares regression line for the data scores in Table 6.1.
Solution:
After solving the values of b and a, your regression equation obtained from Table 6.1 is.
Now, we are interested in the distance of the Y values from Y₁ the corresponding ordinate of the regression line. Here, we are going to base our measure of dispersion or variation around the regression line on the distance (Y₁ ‒ Y)². This can be well understood by this standard error of estimate formula given below. Se =     Σ(Yi ‒ Ŷ)² 	 	              n ‒ 2 √ C. The standard Error of Estimate
However, this formula entails a very tedious process of computing the standard error of estimate, so that the formula by Basil P. Korin (1977), which is easier to solve suggested as follows: 		Se =        ΣYi² ‒ a(Yi) ‒ b(Xi ‒ Yi) 		    n ‒ 2 	Note: 	The symbol a and b stand for the intercept and the slope of the regression line. √
√ Example: 	Solve the standard error of estimate for the regression line which was derived from the data in Table 6.1. 		Se =      Σ(Yi ‒ Ŷ)² 	 	                  n ‒ 2
Step 1 – Compute the value of Y at each of the X values. 	Example: 			Y = 6.68 + .59 (2) 			   = 6.68 + 1.18 			   = 7.68 Do the rest by following the same procedure. Step 2 – Get the difference between (Yi ‒ Ŷ). 	Example: 			8 – 7.86 = .14 Step 3 – Square all the difference Yi ‒ Ŷ. 	Example: 			(.14)² = .0196
√ √ √ √ Step 4 – Apply the formula. 	Se =      Σ(Yi ‒ Ŷ)² 	 	      n ‒ 2 	     =       16.692 		     8 – 2 	     = 	  16.692 		       6 	     =	  2.782 	     =  1.67
Solution 2: 		Se =        ΣYi² ‒ a(Yi) ‒ b(Xi ‒ Yi) 		       n ‒ 2
√ √ √ √ √ Step 1 – Square Y₁  	Example: 		(8²) = 64 Step 2 – Multiply XiYi 	Example: 		2 X 8 = 16 Step 3 – Get the sum of Yi² and XiYi Step 4 – Apply the formula 			=      1084 – 6.68 (90) – .59 (791) 				            n – 2 			=      1084 – 601.2 – 466.69 				          8 – 2 			=      1084 – 1067.89 			                   8 – 2 			=      16.11 			            6 			=      2.685 			=   1.64
The standard error of estimate is interpreted as the standard deviation. For example, if we measure vertically three standard errors from the regression line above and below, we will find that the same value of X will always fall between the upper and lower 3Se Limits. 	In the example above of the standard error of estimate which is 1.64 you will come up with 4.92 units (3) (1.64) above and below the regression line. This means that these “bounds” of 4.92 unit above and below the regression line pertain to all observations taken for that particular sample. If you draw two parallel lines, each of them lying one Se from the regression line, you will expect two thirds of the observations falling between these bounds. See Figure 6.1 for the illustration of the data in Table 6.1.
Y = 6.68 + .59 X Figure 6.3 – A regression Line with One Standard Error Distance

More Related Content

What's hot

Regression analysis
Regression analysisRegression analysis
Regression analysis
Ravi shankar
 
Multiple regression presentation
Multiple regression presentationMultiple regression presentation
Multiple regression presentation
Carlo Magno
 

What's hot (20)

Regression analysis
Regression analysisRegression analysis
Regression analysis
 
Simple linear regression
Simple linear regressionSimple linear regression
Simple linear regression
 
Linear regression analysis
Linear regression analysisLinear regression analysis
Linear regression analysis
 
Simple linear regression
Simple linear regressionSimple linear regression
Simple linear regression
 
Simple Regression
Simple RegressionSimple Regression
Simple Regression
 
An Overview of Simple Linear Regression
An Overview of Simple Linear RegressionAn Overview of Simple Linear Regression
An Overview of Simple Linear Regression
 
Least Squares Regression Method | Edureka
Least Squares Regression Method | EdurekaLeast Squares Regression Method | Edureka
Least Squares Regression Method | Edureka
 
Linear regression analysis
Linear regression analysisLinear regression analysis
Linear regression analysis
 
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
 
Presentation on regression analysis
Presentation on regression analysisPresentation on regression analysis
Presentation on regression analysis
 
Logistic regression
Logistic regressionLogistic regression
Logistic regression
 
Multiple regression presentation
Multiple regression presentationMultiple regression presentation
Multiple regression presentation
 
Regression analysis
Regression analysisRegression analysis
Regression analysis
 
Regression analysis in R
Regression analysis in RRegression analysis in R
Regression analysis in R
 
Regression Analysis - Thiyagu
Regression Analysis - ThiyaguRegression Analysis - Thiyagu
Regression Analysis - Thiyagu
 
binomial distribution
binomial distributionbinomial distribution
binomial distribution
 
Simple Linear Regression
Simple Linear RegressionSimple Linear Regression
Simple Linear Regression
 
Regression analysis.
Regression analysis.Regression analysis.
Regression analysis.
 
Logistic Regression Analysis
Logistic Regression AnalysisLogistic Regression Analysis
Logistic Regression Analysis
 
Logistic regression
Logistic regressionLogistic regression
Logistic regression
 

Similar to Simple linear regression

Simple linear regression
Simple linear regressionSimple linear regression
Simple linear regression
Maria Theresa
 
Correlation by Neeraj Bhandari ( Surkhet.Nepal )
Correlation by Neeraj Bhandari ( Surkhet.Nepal )Correlation by Neeraj Bhandari ( Surkhet.Nepal )
Correlation by Neeraj Bhandari ( Surkhet.Nepal )
Neeraj Bhandari
 

Similar to Simple linear regression (20)

Simple linear regression
Simple linear regressionSimple linear regression
Simple linear regression
 
Regression
RegressionRegression
Regression
 
ML Module 3.pdf
ML Module 3.pdfML Module 3.pdf
ML Module 3.pdf
 
Corr-and-Regress (1).ppt
Corr-and-Regress (1).pptCorr-and-Regress (1).ppt
Corr-and-Regress (1).ppt
 
Corr-and-Regress.ppt
Corr-and-Regress.pptCorr-and-Regress.ppt
Corr-and-Regress.ppt
 
Cr-and-Regress.ppt
Cr-and-Regress.pptCr-and-Regress.ppt
Cr-and-Regress.ppt
 
Corr-and-Regress.ppt
Corr-and-Regress.pptCorr-and-Regress.ppt
Corr-and-Regress.ppt
 
Corr-and-Regress.ppt
Corr-and-Regress.pptCorr-and-Regress.ppt
Corr-and-Regress.ppt
 
Corr-and-Regress.ppt
Corr-and-Regress.pptCorr-and-Regress.ppt
Corr-and-Regress.ppt
 
Correlation & Regression for Statistics Social Science
Correlation & Regression for Statistics Social ScienceCorrelation & Regression for Statistics Social Science
Correlation & Regression for Statistics Social Science
 
Corr And Regress
Corr And RegressCorr And Regress
Corr And Regress
 
Correlation by Neeraj Bhandari ( Surkhet.Nepal )
Correlation by Neeraj Bhandari ( Surkhet.Nepal )Correlation by Neeraj Bhandari ( Surkhet.Nepal )
Correlation by Neeraj Bhandari ( Surkhet.Nepal )
 
REGRESSION ANALYSIS
REGRESSION ANALYSISREGRESSION ANALYSIS
REGRESSION ANALYSIS
 
Regression
RegressionRegression
Regression
 
Regression Ayalysis (2).ppt
Regression Ayalysis (2).pptRegression Ayalysis (2).ppt
Regression Ayalysis (2).ppt
 
Chapter5
Chapter5Chapter5
Chapter5
 
Regression Analysis by Muthama JM
Regression Analysis by Muthama JM Regression Analysis by Muthama JM
Regression Analysis by Muthama JM
 
Regression analysis by Muthama JM
Regression analysis by Muthama JMRegression analysis by Muthama JM
Regression analysis by Muthama JM
 
Bba 3274 qm week 6 part 1 regression models
Bba 3274 qm week 6 part 1 regression modelsBba 3274 qm week 6 part 1 regression models
Bba 3274 qm week 6 part 1 regression models
 
Regression Analysis
Regression AnalysisRegression Analysis
Regression Analysis
 

More from Maria Theresa

Syllabus educ200 methods of research
Syllabus educ200 methods of researchSyllabus educ200 methods of research
Syllabus educ200 methods of research
Maria Theresa
 
ED197 episodes 1 12 (manual)
ED197 episodes 1 12 (manual)ED197 episodes 1 12 (manual)
ED197 episodes 1 12 (manual)
Maria Theresa
 
Module 5 a job induction & orientation
Module 5 a  job induction & orientationModule 5 a  job induction & orientation
Module 5 a job induction & orientation
Maria Theresa
 
Topic 1 ed105 b introduction
Topic 1 ed105 b introductionTopic 1 ed105 b introduction
Topic 1 ed105 b introduction
Maria Theresa
 

More from Maria Theresa (20)

Syllabus educ200 methods of research
Syllabus educ200 methods of researchSyllabus educ200 methods of research
Syllabus educ200 methods of research
 
ED197 episodes 1 12 (manual)
ED197 episodes 1 12 (manual)ED197 episodes 1 12 (manual)
ED197 episodes 1 12 (manual)
 
Module 5 a job induction & orientation
Module 5 a  job induction & orientationModule 5 a  job induction & orientation
Module 5 a job induction & orientation
 
Module2 human resource information system
Module2  human resource information systemModule2  human resource information system
Module2 human resource information system
 
Module 1 human resource management
Module 1  human resource managementModule 1  human resource management
Module 1 human resource management
 
Tarpaulin making contest
Tarpaulin making contestTarpaulin making contest
Tarpaulin making contest
 
Documentary film
Documentary filmDocumentary film
Documentary film
 
Fs 2 episode 1
Fs 2 episode 1Fs 2 episode 1
Fs 2 episode 1
 
Fs 2 episode 7
Fs 2 episode 7Fs 2 episode 7
Fs 2 episode 7
 
Fs 2 episode 6
Fs 2 episode 6Fs 2 episode 6
Fs 2 episode 6
 
Fs 2 episode 6
Fs 2 episode 6Fs 2 episode 6
Fs 2 episode 6
 
Fs 2 episode 5
Fs 2 episode 5Fs 2 episode 5
Fs 2 episode 5
 
Fs 2 episode 4
Fs 2 episode 4Fs 2 episode 4
Fs 2 episode 4
 
Fs 2 episode 3
Fs 2 episode 3Fs 2 episode 3
Fs 2 episode 3
 
Fs 2 episode 2
Fs 2 episode 2Fs 2 episode 2
Fs 2 episode 2
 
Fs 2 episode 1
Fs 2 episode 1Fs 2 episode 1
Fs 2 episode 1
 
Topic 1 ed105 b introduction
Topic 1 ed105 b introductionTopic 1 ed105 b introduction
Topic 1 ed105 b introduction
 
Exercise (t able and mail merge)
Exercise (t able and mail merge)Exercise (t able and mail merge)
Exercise (t able and mail merge)
 
Sample format for appendices & bibliography
Sample format for appendices & bibliographySample format for appendices & bibliography
Sample format for appendices & bibliography
 
Title page final format
Title page final formatTitle page final format
Title page final format
 

Recently uploaded

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 

Recently uploaded (20)

Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
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
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
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...
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 

Simple linear regression

  • 1. SIMPLE LINEAR REGRESSION(PA297Statistics for Public Administrator) Reporters: Atty. Gener R. Gayam, CPA Agapito “pete” M. Cagampang, PM Raymond B. Cabling, MD Presented to: Dr. Maria Theresa P. Pelones
  • 2. SIMPLE LINEAR REGRESSION The Scatter Diagram In solving problems that concern estimation and forecasting, a scatter diagram can be used as a graphical approach. This technique consists of joining the points corresponding to the paired scores of dependent and independent variables which are commonly represented by X and Y on the X – y coordinate system. Below is an illustration of a scatter diagram using the data in Table 6.1. This table shows the data about the six years working experience and the income of eight employees in a big industrial corporation.
  • 4. Figure 6.1 – A Scatter Diagram for Table 6.1 Data X X X X X X X X
  • 5. For you to roughly predict the value of a dependent variable, such as years of working experience, from the dependent variable, which is income, your next step is to draw a trend line. This is a line passing through the series of points such that the total vertical measurement of the points below this line is more or less equal to the total measurements of the points above the line. If these requirements are satisfied, you draw a correct trend Y. The illustration is shown in figure 6.1
  • 6. Figure 6.2 - A trend line drawn on the linear direction between working experience and income of eight employees Trend Line
  • 7. Using the trend line draw in Figure 6.1 above, the value estimated for Y when X is 16, is 18. You should not fail to remember that if a “straight line” appears to describe the relationship, the algebraic approach called the regression formula can be used as explained in the next topic.
  • 8. a = Ῡ - bX B. The Least Square Linear Regression Equation The least square linear regression equation can be understood through this formula known from algebra. Y = a + bx For instance the Y = a+bx in figure 6.1 in that line that gives the smallest sum of the squares of the vertical measurements or distance of the points from the line. In solving the regression equations, you need to solve first,
  • 9. ΣX = 62 ΣY = 90 X = 7.75 Y = 11.25 Example: Solve the least squares regression line for the data scores in Table 6.1.
  • 11. After solving the values of b and a, your regression equation obtained from Table 6.1 is.
  • 12. Now, we are interested in the distance of the Y values from Y₁ the corresponding ordinate of the regression line. Here, we are going to base our measure of dispersion or variation around the regression line on the distance (Y₁ ‒ Y)². This can be well understood by this standard error of estimate formula given below. Se = Σ(Yi ‒ Ŷ)² n ‒ 2 √ C. The standard Error of Estimate
  • 13. However, this formula entails a very tedious process of computing the standard error of estimate, so that the formula by Basil P. Korin (1977), which is easier to solve suggested as follows: Se = ΣYi² ‒ a(Yi) ‒ b(Xi ‒ Yi) n ‒ 2 Note: The symbol a and b stand for the intercept and the slope of the regression line. √
  • 14. √ Example: Solve the standard error of estimate for the regression line which was derived from the data in Table 6.1. Se = Σ(Yi ‒ Ŷ)² n ‒ 2
  • 15. Step 1 – Compute the value of Y at each of the X values. Example: Y = 6.68 + .59 (2) = 6.68 + 1.18 = 7.68 Do the rest by following the same procedure. Step 2 – Get the difference between (Yi ‒ Ŷ). Example: 8 – 7.86 = .14 Step 3 – Square all the difference Yi ‒ Ŷ. Example: (.14)² = .0196
  • 16. √ √ √ √ Step 4 – Apply the formula. Se = Σ(Yi ‒ Ŷ)² n ‒ 2 = 16.692 8 – 2 = 16.692 6 = 2.782 = 1.67
  • 17. Solution 2: Se = ΣYi² ‒ a(Yi) ‒ b(Xi ‒ Yi) n ‒ 2
  • 18. √ √ √ √ √ Step 1 – Square Y₁ Example: (8²) = 64 Step 2 – Multiply XiYi Example: 2 X 8 = 16 Step 3 – Get the sum of Yi² and XiYi Step 4 – Apply the formula = 1084 – 6.68 (90) – .59 (791) n – 2 = 1084 – 601.2 – 466.69 8 – 2 = 1084 – 1067.89 8 – 2 = 16.11 6 = 2.685 = 1.64
  • 19. The standard error of estimate is interpreted as the standard deviation. For example, if we measure vertically three standard errors from the regression line above and below, we will find that the same value of X will always fall between the upper and lower 3Se Limits. In the example above of the standard error of estimate which is 1.64 you will come up with 4.92 units (3) (1.64) above and below the regression line. This means that these “bounds” of 4.92 unit above and below the regression line pertain to all observations taken for that particular sample. If you draw two parallel lines, each of them lying one Se from the regression line, you will expect two thirds of the observations falling between these bounds. See Figure 6.1 for the illustration of the data in Table 6.1.
  • 20. Y = 6.68 + .59 X Figure 6.3 – A regression Line with One Standard Error Distance