Question Video: Using Linear Regression Model to Estimate the Value of a Variable at a Certain Point | Nagwa Question Video: Using Linear Regression Model to Estimate the Value of a Variable at a Certain Point | Nagwa

# Question Video: Using Linear Regression Model to Estimate the Value of a Variable at a Certain Point Mathematics • Third Year of Secondary School

## Join Nagwa Classes

The table shows the price of a barrel of oil and the economic growth. Using the information in the table, estimate the economic growth if the price of a barrel of oil is 35.40 dollars.

04:25

### Video Transcript

The table shows the price of a barrel of oil and the economic growth. Using the information in the table, estimate the economic growth if the price of a barrel of oil is 35.40 dollars.

And then we have a table containing eight pairs of entries. So we begin by making an assumption that the bivariate data weโve been given is approximately linear. With that assumption, we can estimate some ๐ฆ-value for a given ๐ฅ-value, and vice versa, by first finding the equation of the regression line. Thatโs ๐ฆ hat equals ๐ plus ๐๐ฅ. Now, ๐ represents the slope of the data. And we can calculate that by finding S๐ฅ๐ฆ divided by S๐ฅ๐ฅ. And thatโs equivalent to ๐ times the sum of ๐ฅ๐ฆ minus the sum of ๐ฅ times the sum of ๐ฆ over ๐ times the sum of ๐ฅ squared minus the sum of all ๐ฅ-values squared. So it follows that to be able to calculate the slope, weโre going to need to find the various sums.

Letโs define the price of a barrel of oil in dollars to be ๐ฅ and the economic growth rate to be ๐ฆ. We can then add two further rows and one further column in our table. Then letโs complete the row that contains our ๐ฅ๐ฆ-values. To do this, we take a ๐ฆ-value and multiply it by its corresponding ๐ฅ-value. So thatโs 26 times 1.8, and thatโs 46.8. Next, we calculate 13.30 times 0.4. Thatโs 5.32. Then, for our third column, itโs 84.73. Next, we have 28.52. And 26.7 times 3.2 is 85.44. And we continue this row in this manner.

Next, weโll find all the ๐ฅ squared values. Remember, ๐ฅ is the price of a barrel of oil in dollars. So our first ๐ฅ squared value is 26 squared, which is 676. Next, we calculate 13.3 squared, which is 176.89. Our next value is 524.41. 12.4 squared is 153.76. And we can continue this row in the same way. Weโll now add up the total of each of our rows. The sum of all the values in our first row, the sum of ๐ฅ, is 180.2. The sum of our ๐ฆ-values is 14.9. Then the total here is the sum of our ๐ฅ๐ฆ-values. Itโs 322.16. Finally, the sum of our ๐ฅ squared values, itโs 4520.08.

With all this in mind, weโre now ready to calculate ๐, the slope of our regression line. Since there are eight pairs of values in our table, ๐ is eight. And so ๐ is eight times 322.16 minus 180.2 times 14.9 over eight times 4520.08 minus the sum of all our ๐ฅ-values squared, so 180.2 squared. Thatโs negative 0.0291.

Next, we need to calculate ๐. And thatโs the value of the ๐ฆ-intercept. We calculate ๐ by finding ๐ฆ bar minus ๐ times ๐ฅ bar, where ๐ฆ bar is the mean of ๐ฆ. Itโs the sum of all the ๐ฆ-values divided by ๐. And ๐ฅ bar is the mean of ๐ฅ. ๐ฆ bar is 14.9 over eight, and ๐ฅ bar is 180.2 over eight. And so that gives us an ๐-value of 14.9 over eight minus negative 0.0291 and so on times 180.2 over eight. And that gives us 2.517 and so on.

We now have everything we need to be able to create the equation of the regression line. So letโs clear some space and do that. Rounding our values for ๐ and ๐ correct to three significant figures, we get that ๐ฆ hat is 2.52 minus 0.0292๐ฅ. Now, remember, weโre trying to find the economic growth if the price of a barrel of oil is 35.40 dollars. So we can find this by letting ๐ฅ be equal to 35.40. Thatโs 1.48632. Now, in fact, in our table, each value for economic growth is rounded to one decimal place. So weโll do the same with our value. That gives us 1.5. So the estimate for the economic growth if the price of a barrel of oil is 35.4 dollars is 1.5.

## Join Nagwa Classes

Attend live sessions on Nagwa Classes to boost your learning with guidance and advice from an expert teacher!

• Interactive Sessions
• Chat & Messaging
• Realistic Exam Questions