Upcoming SlideShare
×

# Simple linear regression

1,194 views

Published on

Simple Regression presentation is a
partial fulfillment to the requirement in PA 297 Research for Public Administrators, presented by Atty. Gayam , Dr. Cabling and Mr. Cagampang

Published in: Technology, Economy & Finance
0 Likes
Statistics
Notes
• Full Name
Comment goes here.

Are you sure you want to Yes No
• Be the first to comment

• Be the first to like this

Views
Total views
1,194
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
96
0
Likes
0
Embeds 0
No embeds

No notes for slide

### Simple linear regression

1. 1. SIMPLE LINEAR REGRESSION(PA297Statistics for Public Administrator)<br />Reporters: <br /> Atty. Gener R. Gayam, CPA<br />Agapito “pete” M. Cagampang, PM<br /> Raymond B. Cabling, MD<br />Presented to:<br />Dr. Maria Theresa P. Pelones<br />
2. 2. SIMPLE LINEAR REGRESSION<br />The Scatter Diagram<br /> 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.<br /> 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.<br />
3. 3. Table 6.1<br />
4. 4. Figure 6.1 – A Scatter Diagram for Table 6.1 Data<br />X<br />X<br />X<br />X<br />X<br />X<br />X<br />X<br />
5. 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<br />
6. 6. Figure 6.2 - A trend line drawn on the linear direction between working experience and income of eight employees<br />Trend Line<br />
7. 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.<br />
8. 8. a = Ῡ - bX<br />B. The Least Square Linear Regression Equation<br />The least square linear regression equation can be understood through this formula known from algebra.<br /> Y = a + bx<br /> 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.<br /> In solving the regression equations, you need to solve first,<br />
9. 9. ΣX = 62 ΣY = 90<br />X = 7.75 Y = 11.25<br />Example: Solve the least squares regression line for the data scores in Table 6.1.<br />
10. 10. Solution:<br />
11. 11. After solving the values of b and a, your regression equation obtained from Table 6.1 is.<br />
12. 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.<br />Se = Σ(Yi ‒ Ŷ)²<br /> n ‒ 2<br />√<br />C. The standard Error of Estimate<br />
13. 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:<br /> Se = ΣYi² ‒ a(Yi) ‒ b(Xi ‒ Yi)<br /> n ‒ 2<br /> Note:<br /> The symbol a and b stand for the intercept and the slope of the regression line.<br />√<br />
14. 14. √<br />Example:<br /> Solve the standard error of estimate for the regression line which was derived from the data in Table 6.1.<br /> Se = Σ(Yi ‒ Ŷ)²<br /> n ‒ 2<br />
15. 15. Step 1 – Compute the value of Y at each of the X values.<br /> Example:<br /> Y = 6.68 + .59 (2)<br /> = 6.68 + 1.18<br /> = 7.68<br />Do the rest by following the same procedure.<br />Step 2 – Get the difference between (Yi ‒ Ŷ).<br /> Example:<br /> 8 – 7.86 = .14<br />Step 3 – Square all the difference Yi ‒ Ŷ.<br /> Example:<br /> (.14)² = .0196<br />
16. 16. √<br />√<br />√<br />√<br />Step 4 – Apply the formula.<br /> Se = Σ(Yi ‒ Ŷ)²<br /> n ‒ 2<br /> = 16.692<br /> 8 – 2<br /> = 16.692<br /> 6<br /> = 2.782<br /> = 1.67<br />
17. 17. Solution 2:<br /> Se = ΣYi² ‒ a(Yi) ‒ b(Xi ‒ Yi)<br /> n ‒ 2<br />
18. 18. √<br />√<br />√<br />√<br />√<br />Step 1 – Square Y₁ <br /> Example:<br /> (8²) = 64<br />Step 2 – Multiply XiYi<br /> Example:<br /> 2 X 8 = 16<br />Step 3 – Get the sum of Yi² and XiYi<br />Step 4 – Apply the formula<br /> = 1084 – 6.68 (90) – .59 (791)<br /> n – 2<br /> = 1084 – 601.2 – 466.69<br /> 8 – 2<br /> = 1084 – 1067.89<br /> 8 – 2<br /> = 16.11<br /> 6<br /> = 2.685<br /> = 1.64<br />
19. 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.<br /> 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.<br />
20. 20. Y = 6.68 + .59 X<br />Figure 6.3 – A regression Line with One Standard Error Distance<br />