Question

For this question you must give all answers rounded correct to exactly 3 significant figures (instead...

For this question you must give all answers rounded correct to exactly 3 significant figures (instead of decimal places). Recall that leading zeros are not significant (for example 0.0011 has 4 decimal places, but only 2 significant figures). To obtain more decimal places in the numbers Matlab gives you, type "format short g" first.

The article "The Incorporation of Uranium and Silver by Hydrothermally Synthesized Galena'" (Econ. Geology, 1964: 1003-1024) reports on the determination of silver content of galena crystals grown in a closed hydrothermal system over a range of temperature. The temperature X in degrees C and the silver content Y in mol% for 60 determinations are shown below.


x=[479.58 584.87 487.32 535.87 381.18 555.50 536.20 570.77 451.61 450.85 387.43 423.58 464.46 486.63 534.74 360.51 541.73 579.17 440.96 477.11 540.22 408.90 401.16 375.30 477.45 560.54 380.82 573.71 479.35 488.86 497.34 422.46 373.63 460.13 503.64 383.49 570.25 534.82 494.78 382.47 452.39 541.94 542.17 462.75 550.33 385.49 368.25 527.91 456.28 393.52 427.21 448.37 441.36 405.03 558.08 525.01 410.11 511.82 594.30 511.04]


y=[0.40234 0.50633 0.29246 0.65439 0.04503 0.60575 0.40097 0.25415 0.28937 0.20783 0.02029 0.30757 0.36416 0.49674 0.44884 0.42982 0.35239 0.75398 0.41539 0.44496 0.24032 0.07788 -0.06916 0.41822 0.38791 0.51546 0.10053 0.65465 0.21570 0.37734 0.50074 0.38288 0.21775 0.52252 0.44240 0.31544 0.25967 0.43492 0.30371 0.17315 0.08585 0.28621 0.47552 0.33373 0.46942 0.35096 0.40558 0.57644 0.31023 0.19833 0.31095 0.30035 0.24941 0.15795 0.52476 0.31204 0.29823 0.25044 0.58577 0.41554]

(a) Fit the linear regression of Y on X using Matlab. What is the estimated intercept term β^0?

____________

(b) What is the estimated slope of the fitted line, β^1?

____________

(c) What is the estimated residual variance s2e?

____________

(d) What is the standard error for β^1?

____________

(e) Give a 95% confidence interval for β^1.

Enter your confidence interval in the form (lower bound, upper bound).

( ____________ ,  ____________ )

(f) What is the predicted silver content of galena crystals grown at 500 degrees C?

____________

(g) Construct a 95% prediction interval for silver content when crystals are grown at 500 degrees C.

Enter your prediction interval in the form (lower bound, upper bound).

( ____________ ,  ____________ )

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Fit the linear regression of Y on X using Matlab. What is the estimated intercept term β^0?

estimated intercept is : 389.903

(b) What is the estimated slope of the fitted line, β^1?

estimated slope is : 244.916

(c) What is the estimated residual variance s2e?

RMSE: 54.610

(d) What is the standard error for β^1?

43.456

(e) Give a 95% confidence interval for β^1.

Enter your confidence interval in the form (lower bound, upper bound).

( 157.93 , 331.900)

(f) What is the predicted silver content of galena crystals grown at 500 degrees C?

122847.903

-----------------------------------------------------------------------------------------------------------------------------------------------

Code:

x = [479.58 584.87 487.32 535.87 381.18 555.50 536.20 570.77 451.61 450.85 387.43 423.58 464.46 486.63 534.74 360.51 541.73 579.17 440.96 477.11 540.22 408.90 401.16 375.30 477.45 560.54 380.82 573.71 479.35 488.86 497.34 422.46 373.63 460.13 503.64 383.49 570.25 534.82 494.78 382.47 452.39 541.94 542.17 462.75 550.33 385.49 368.25 527.91 456.28 393.52 427.21 448.37 441.36 405.03 558.08 525.01 410.11 511.82 594.30 511.04]


y = [0.40234 0.50633 0.29246 0.65439 0.04503 0.60575 0.40097 0.25415 0.28937 0.20783 0.02029 0.30757 0.36416 0.49674 0.44884 0.42982 0.35239 0.75398 0.41539 0.44496 0.24032 0.07788 -0.06916 0.41822 0.38791 0.51546 0.10053 0.65465 0.21570 0.37734 0.50074 0.38288 0.21775 0.52252 0.44240 0.31544 0.25967 0.43492 0.30371 0.17315 0.08585 0.28621 0.47552 0.33373 0.46942 0.35096 0.40558 0.57644 0.31023 0.19833 0.31095 0.30035 0.24941 0.15795 0.52476 0.31204 0.29823 0.25044 0.58577 0.41554]

format shortg
%Fit linear model-------------------------------------------------------
linmod = fitlm(y,x)

%coefficients--------------------------
Beta = linmod.Coefficients.Estimate
B1 = round(Beta(2),3)

%----------------------------------------------------------------------
CVM= linmod.CoefficientCovariance
se = diag(sqrt(CVM))
round(se(2),3) %standard error of beta1

%----------prediction----------
[ypred,yci] = predict(linmod,x(:))
predict(linmod,500) %prediction for x=500 Celsius

%estimated standard error--------------------------

res = y - ypred
res.'*res
sd_res = round(sqrt(res.'*res/(length(res)-2)),3)

%C.I for beta1----------------------------------------------------------------------
CI_Beta = coefCI(linmod,0.05)
round(CI_Beta(2,:),3) %95% CI for beta1

Add a comment
Know the answer?
Add Answer to:
For this question you must give all answers rounded correct to exactly 3 significant figures (instead...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • For this question you must give all answers rounded correct to exactly 3 significant figures (instead...

    For this question you must give all answers rounded correct to exactly 3 significant figures (instead of decimal places). Recall that leading zeros are not significant (for example 0.0011 has 4 decimal places, but only 2 significant figures). To obtain more decimal places in the numbers Matlab gives you, type "format short g" first. The article "The Incorporation of Uranium and Silver by Hydrothermally Synthesized Galena'" (Econ. Geology, 1964: 1003-1024) reports on the determination of silver content of galena crystals...

  • For this question you must give all answers rounded correct to exactly 3 significant figures (ins...

    For this question you must give all answers rounded correct to exactly 3 significant figures (instead of decimal places). Recall that leading zeros are not significant (for example 0.0011 has 4 decimal places, but only 2 significant figures). To obtain more decimal places in the numbers Matlab gives you, type "format short g" first. The article "The Incorporation of Uranium and Silver by Hydrothermally Synthesized Galena'" (Econ. Geology, 1964: 1003-1024) reports on the determination of silver content of galena crystals...

  • For this question you must give all answers rounded correct to exactly 3 significant figures (ins...

    x=[522.47 401.13 467.72 445.60 417.20 364.51 363.88 589.06 584.12 363.19 394.97 537.67 456.16 411.58 408.26 586.76 580.47 397.17 557.13 378.49 395.68 507.15 432.57 455.29 494.41 359.69 460.88 547.79 542.73 406.64 563.68 371.06 404.50 387.63 521.95 472.90 492.14 484.68 394.96 521.60 373.94 388.16 539.30 571.06 475.23 533.42 368.26 573.72 416.78 362.30 498.82 544.98 594.79 560.46 566.11 560.65 353.45 511.60 405.84 419.82] y=[0.37345 0.31015 0.51910 0.24506 0.20700 0.14325 0.18871 0.29920 0.54105 0.22042 0.26545 0.42971 0.34300 0.23166 0.31433 0.55698 0.57096 0.28747 0.51894 0.03466...

  • MY NOTES || ASK YOUR TEACHER PRACTICE ANOTHER [0.3/1 Points] DETAILS PREVIOUS ANSWERS ASWSBE13 14.E.037. You...

    MY NOTES || ASK YOUR TEACHER PRACTICE ANOTHER [0.3/1 Points] DETAILS PREVIOUS ANSWERS ASWSBE13 14.E.037. You may need to use the appropriate appendix table or technology to answer this question. The data below give the adjusted gross income x and the amount of itemized deductions taken by taxpayers y. Data were reported in thousands of dollars. Adjusted Gross Income Itemized Deductions ($1,000s) ($1,000s) 22 9.6 27 9.6 32 10.1 48 11.1 65 11.5 85 17.7 120 25.5 With the estimated...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT