In this exercise, you will compute the coefficients of the best-fit line, y= a + bx, through three data points in two ways. First using Excel, you will compute the coefficients a and b so that you will know the answer." Then you will compute the same coefficients using "the calculus way" by writing-down the error function, u(a, b). taking its partial derivatives. Du Da Du :0 & = 0, to find where the error function has a minimum. 86 zero, Du da ld 1 2 3 Cost per Unit Qty 490 518 579 Cost 814 827 858 Du & , and setting the derivatives equal to 86 Use Excel to determine the coefficients of the best-fit line, y= a + bx, through the three data points. What is the slope? [round to one decimal place--round to nearest tenth] What is the intercept? [round to nearest integer with no decimals] For the next question, please use the "Data Analysis" toolkit to verify that the Regression function returns the same estimates of the coefficients. a. Launch the Data Analysis Toolkit (Data → Data Analysis) [You will need to activate the FREE Excel Add-In] b. Select "Regression" and push OK. c. For the "Input Y Range:" push the "arrow" button to the right of the input box and select the range, then push the button on the right. d. For the "Input X Range:" push the "arrow" button tot the right of the input box and select the range, then push the button on the right. e. Verify the "Output options"--the default is to put the output on a new worksheet, otherwise specify a cell in the current worksheet where you would like the output to be written. f. *IF* you included labels in your ranges from a & b above, be sure to check the "Labels" box. What is the p-value of the slope of the Qty variable? [round to four decimal places]

MATLAB: An Introduction with Applications
6th Edition
ISBN:9781119256830
Author:Amos Gilat
Publisher:Amos Gilat
Chapter1: Starting With Matlab
Section: Chapter Questions
Problem 1P
icon
Related questions
Question
In this exercise, you will compute the coefficients of the best-fit line, y = a + bx, through three data points in two ways. First using Excel,
you will compute the coefficients a and b so that you will know the answer." Then you will compute the same coefficients using "the
Du ou
& and setting the derivatives equal to
calculus way" by writing-down the error function, u(a, b), taking its partial derivatives.
= 0, to find where the error function has a minimum.
da
3
= 0 &
86
zero. =
Id
1
2
3
Cost per Unit
Qty
490
518
579
Cost
814
827
858
Use Excel to determine the coefficients of the best-fit line, y= a + bx, through the three data points.
What is the slope?
[round to one decimal place--round to nearest tenth]
What is the intercept?
[round to nearest integer with no decimals]
For the next question, please use the "Data Analysis" toolkit to verify that the Regression function returns the same estimates of the
coefficients.
a. Launch the Data Analysis Toolkit (Data → Data Analysis) [You will need to activate the FREE Excel Add-In]
b. Select "Regression" and push OK.
c. For the "Input Y Range:" push the "arrow" button to the right of the input box and select the range, then push the button on the
right.
d. For the "Input X Range:" push the "arrow" button tot the right of the input box and select the range, then push the button on
the right.
e. Verify the "Output options"--the default is to put the output on a new worksheet, otherwise specify a cell in the current
worksheet where you would like the output to be written.
f. *IF* you included labels in your ranges from a & b above, be sure to check the "Labels" box.
What is the p-value of the slope of the Qty variable?
[round to four decimal places]
What would you enter to Wolfram Alpha to instruct it to compute the partial derivative with respect to the intercept
In the next series of questions, you will create the error function, u(a, b), term-by-term, then take its partial derivatives, set them equal
to zero, and finally solve for a and b.
First term: Consider the first point (490, 814). Its squared error is: (a + 490b-814)^2
Second term: Consider the second point: (518, 827). What is the squared error for this point?
Third term: What is the squared error for the third point?
Go to Wolfram Alpha (http://www.wolframalpha.com/) and and enter this instruction to compute this partial derivative.
What is the partial derivative (hover over the answer from Wolfram Alpha, push "plaintext," copy and paste here)?
FORM: [constant] + [constant] a + [constant] b
Now, modify your input to Wolfram Alpha to compute the partial derivative with respect to the slope b.
Wolfram Alpha here:
What is this partial derivative (again hover over, push "plaintext," copy and paste here)? |
[constant] a + [constant] b
du(a,b)
da
du(a,b)
86
?
FORM: [constant] +
12
Now, in Wolfram Alpha prepare to set both of these partial derivatives equal to zero and solve them for you. What do you enter to
Wolfram Alpha to do this?
MARE
750
SE
Enter the instruction to
Enter this instruction in Wolfram Alpha. The result may be expressed exactly in fractional form. Push the "Approximate form" button.
Compare this to the slope and intercept that you computed in Excel. Do they match? (Click to select) ✓
Transcribed Image Text:In this exercise, you will compute the coefficients of the best-fit line, y = a + bx, through three data points in two ways. First using Excel, you will compute the coefficients a and b so that you will know the answer." Then you will compute the same coefficients using "the Du ou & and setting the derivatives equal to calculus way" by writing-down the error function, u(a, b), taking its partial derivatives. = 0, to find where the error function has a minimum. da 3 = 0 & 86 zero. = Id 1 2 3 Cost per Unit Qty 490 518 579 Cost 814 827 858 Use Excel to determine the coefficients of the best-fit line, y= a + bx, through the three data points. What is the slope? [round to one decimal place--round to nearest tenth] What is the intercept? [round to nearest integer with no decimals] For the next question, please use the "Data Analysis" toolkit to verify that the Regression function returns the same estimates of the coefficients. a. Launch the Data Analysis Toolkit (Data → Data Analysis) [You will need to activate the FREE Excel Add-In] b. Select "Regression" and push OK. c. For the "Input Y Range:" push the "arrow" button to the right of the input box and select the range, then push the button on the right. d. For the "Input X Range:" push the "arrow" button tot the right of the input box and select the range, then push the button on the right. e. Verify the "Output options"--the default is to put the output on a new worksheet, otherwise specify a cell in the current worksheet where you would like the output to be written. f. *IF* you included labels in your ranges from a & b above, be sure to check the "Labels" box. What is the p-value of the slope of the Qty variable? [round to four decimal places] What would you enter to Wolfram Alpha to instruct it to compute the partial derivative with respect to the intercept In the next series of questions, you will create the error function, u(a, b), term-by-term, then take its partial derivatives, set them equal to zero, and finally solve for a and b. First term: Consider the first point (490, 814). Its squared error is: (a + 490b-814)^2 Second term: Consider the second point: (518, 827). What is the squared error for this point? Third term: What is the squared error for the third point? Go to Wolfram Alpha (http://www.wolframalpha.com/) and and enter this instruction to compute this partial derivative. What is the partial derivative (hover over the answer from Wolfram Alpha, push "plaintext," copy and paste here)? FORM: [constant] + [constant] a + [constant] b Now, modify your input to Wolfram Alpha to compute the partial derivative with respect to the slope b. Wolfram Alpha here: What is this partial derivative (again hover over, push "plaintext," copy and paste here)? | [constant] a + [constant] b du(a,b) da du(a,b) 86 ? FORM: [constant] + 12 Now, in Wolfram Alpha prepare to set both of these partial derivatives equal to zero and solve them for you. What do you enter to Wolfram Alpha to do this? MARE 750 SE Enter the instruction to Enter this instruction in Wolfram Alpha. The result may be expressed exactly in fractional form. Push the "Approximate form" button. Compare this to the slope and intercept that you computed in Excel. Do they match? (Click to select) ✓
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 8 images

Blurred answer
Recommended textbooks for you
MATLAB: An Introduction with Applications
MATLAB: An Introduction with Applications
Statistics
ISBN:
9781119256830
Author:
Amos Gilat
Publisher:
John Wiley & Sons Inc
Probability and Statistics for Engineering and th…
Probability and Statistics for Engineering and th…
Statistics
ISBN:
9781305251809
Author:
Jay L. Devore
Publisher:
Cengage Learning
Statistics for The Behavioral Sciences (MindTap C…
Statistics for The Behavioral Sciences (MindTap C…
Statistics
ISBN:
9781305504912
Author:
Frederick J Gravetter, Larry B. Wallnau
Publisher:
Cengage Learning
Elementary Statistics: Picturing the World (7th E…
Elementary Statistics: Picturing the World (7th E…
Statistics
ISBN:
9780134683416
Author:
Ron Larson, Betsy Farber
Publisher:
PEARSON
The Basic Practice of Statistics
The Basic Practice of Statistics
Statistics
ISBN:
9781319042578
Author:
David S. Moore, William I. Notz, Michael A. Fligner
Publisher:
W. H. Freeman
Introduction to the Practice of Statistics
Introduction to the Practice of Statistics
Statistics
ISBN:
9781319013387
Author:
David S. Moore, George P. McCabe, Bruce A. Craig
Publisher:
W. H. Freeman