Question

In: Statistics and Probability

Linear functions of the form y = ax + b are used to describe many real-world...

Linear functions of the form y = ax + b are used to describe many real-world situations. Research any relationship between two variables that occurs in your field of study or career and then:

Describe the two variables. Which is the input (x) variable and which is the output, or y, variable?

Show an example of this relationship with real-world data from one of the following sources: magazine, internet, advertisement, newspaper, professional journal, college professor, or professional in the field.  Create a scatterplot to show the data. Does the relationship appear to be linear? Why or why not?  Explain.

Use Excel to find the regression equation, r2-value, and r-value for this data set.  Show the equation and the r-value on your scatterplot. Using Table A-6 in the text, determine whether your r-value is significant. Explain.

Solutions

Expert Solution

Here we have to see the real-life example of linear relationships of the form y = ax + b. There are so many situations where we need to use linear regression equation for the prediction of one variable based on other variable(s). Let us consider the example of house size and price of the house. It was observed that there is a strong positive linear relationship or association exists between the two variables house size and price of the house. We have to check this fact by using some real-life data from internet. For convenience, we only collect the data for 20 houses for the two variables house size and house price only. We do not consider other variables in this scenario. There are so many websites available for the collection of house size and price data and we can easily collect this data from these sites. The collected data for house size and price is given as below:

House Size (in sq.ft.) (X)

House Price (in $) (Y)

1500

278028

1013

218062

1702

342077

926

201107

1489

273995

1139

255494

1715

342467

1050

244453

1565

296478

1536

291101

952

211094

1537

281247

720

183944

786

173887

1598

307292

1526

278920

1196

244930

1779

341873

1418

263763

1486

308360

Suppose we have to estimate the price of the house for the given value for the size of a house. For this purpose, we have to construct the regression model for the prediction of the dependent variable or response variable price of the house in US$ based on the independent variable or explanatory variable house size in square feet. First of all we have to check whether these two variables have any relationship or not. For checking this relationship we have to use scatterplot which is given as below:

From above scatter plot it is observed that there is a very strong positive linear relationship or association exists between given two variables house size and house price.

Now, we have to find out the regression equation for the prediction of the dependent variable house price based on the independent variable house size. The regression model by using excel is given as below:

SUMMARY OUTPUT

Regression Statistics

Multiple R

0.964499232

R Square

0.930258769

Adjusted R Square

0.926384257

Standard Error

13751.36527

Observations

20

ANOVA

df

SS

MS

F

Significance F

Regression

1

45402347459

45402347459

240.0969657

7.47765E-12

Residual

18

3403800843

189100046.9

Total

19

48806148303

Coefficients

Standard Error

t Stat

P-value

Lower 95%

Upper 95%

Intercept

67906.98928

13207.13275

5.14169052

6.8391E-05

40159.83303

95654.14553

House Size (in sq.ft.) (X)

149.4548948

9.645323706

15.49506262

7.47765E-12

129.1908217

169.718968

From above regression model, the regression equation for the prediction of dependent variable house price is given as below:

House Price = 67906.99 + 149.45*House size

For this regression equation, the y-intercept is given as 67906.99 and slope for this regression equation is given as 149.45.

The correlation coefficient between two variables is given as r = 0.9645 which indicate a strong positive linear association between two variables.

We have sample size = n = 20, df = n – 2 = 20 – 2 = 18

We consider level of significance = α = 0.05

Critical value = 0.444 (by using table)

r = 0.9645 > critical value, so we conclude that this correlation coefficient is statistically significant.

The value for R square or coefficient of determination is given as 0.9303, this means about 93.03% of the variation in the dependent variable house price is explained by the independent variable house size.


Related Solutions

Write a function to solve a system of linear equations of the form Ax= b using...
Write a function to solve a system of linear equations of the form Ax= b using the iterative Gauss-Seidel method. You are free to use any basic MATLAB operation to implement the algorithm (i.e. you may use any combination of loops, indexing, math, etc.), but avoid “built-in” solution methods — you would not be allowed to use the GaussSeidel function if such a function existed. The function must also test for a number of possible issues. If an issue is...
If an SPL ( LINEAR EQUATION SYSTEM ) is known: Ax = b. A is a...
If an SPL ( LINEAR EQUATION SYSTEM ) is known: Ax = b. A is a matrix sized m × n and b is a vector sized m × 1, with the component values of matrix A and vector b known. The x vector is n × 1 and the component values are unknown. Explain how the possible solution of SPL Ax = b. i want answer for the question , and what he mean by (the component values of...
2.) By Theorem 3.23 of the text, the linear diophantine equation of the form ax +...
2.) By Theorem 3.23 of the text, the linear diophantine equation of the form ax + by = c has no integral solutions if c is not divisible by (a, b), the greatest common divisor of a and b. On the other hand if (a, b) divides c, then we can use the Extended Euclidean Algorithm to find integers s, t such that sa + tb = (a, b); multiplying through by the correct factor gives an integral solution x,...
Given the differential equation (ax+b)2d2y/dx2+(ax+b)dy/dx+y=Q(x) show that the equations ax+b=et and t=ln(ax+b) reduces this equation to...
Given the differential equation (ax+b)2d2y/dx2+(ax+b)dy/dx+y=Q(x) show that the equations ax+b=et and t=ln(ax+b) reduces this equation to a linear equation with constant coefficients hence solve (1+x)2d2y/dx2+(1+x)dy /dx+ y=(2x+3)(2x+4)
2. (Solving linear systems) Consider the linear system Ax = b with A =[14 9 14...
2. (Solving linear systems) Consider the linear system Ax = b with A =[14 9 14 6 -10;-11 -11 5 8 6;15 -2 -14 8 -15;14 13 11 -3 -7;0 9 13 5 -14], and . b = [-4;8;6;0;10]. a) Verify that the linear system has a unique solution. Hint: use rref, rank, det, or any other Matlab method. Briefly explain the answer please. You'll now solve Ax = b in three different ways. Store the three different solutions in...
A linear system of equations Ax=b is known, where A is a matrix of m by...
A linear system of equations Ax=b is known, where A is a matrix of m by n size, and the column vectors of A are linearly independent of each other. Please answer the following questions based on this assumption, please explain all questions, thank you~. (1) Please explain why this system has at most one solution. (2) To give an example, Ax=b is no solution. (3) According to the previous question, what kind of inference can be made to the...
Solve the linear system of equations Ax = b, and give the rank of the matrix...
Solve the linear system of equations Ax = b, and give the rank of the matrix A, where A = 1 1 1 -1 0 1 0 2 1 0 1 1 b = 1 2 3
For the following functions f and g : f(x, y) = e ax − (1 −...
For the following functions f and g : f(x, y) = e ax − (1 − a)lny a > 0 g(x, y, z) = −3x 2 − 3y 2 − 3z 2 + 2xy + 2xz + 2yz 1. Calculate the Hessian matrices of f and g noted Hf (x, y) and Hg(x, y, z) 2. Show that Hg(x, y, z) is define negativly for all (x, y, z) ∈ Dg 3. For what value o a is , Hf...
Consider the linear transformation T : P1 → R^3 given by T(ax + b) = [a+b...
Consider the linear transformation T : P1 → R^3 given by T(ax + b) = [a+b a−b 2a] a) find the null space of T and a basis for it (b) Is T one-to-one? Explain (c) Determine if w = [−1 4 −6] is in the range of T (d) Find a basis for the range of T and its dimension (e) Is T onto? Explain
Identify two real world examples of how an organization has used BI ( of any form)...
Identify two real world examples of how an organization has used BI ( of any form) to drive success. (2-4 sentences or bullet points)
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT