For this question you must give all answers rounded correct to exactly 3 signifi
ID: 3282545 • Letter: F
Question
For this question you must give all answers rounded correct to exactly 3 significant figures (nstead of decimal places) Recall that leading zeros are not significant (for example 00011 has 4 decimal places, but only 2 significant figures) To obtain more decimal places in the numbers Matilab gives you, type Tormat short g" first The article "The Incorporation of Uranium and Silver by Hydrothermalily Synthesized Galena" (Econ Geology, 1964: 1003-1024) reports on the determination of silver content of galena crystals grown ra dosed hydrothermal system over a range of temperature The temperature X in degrees C and the silver content r in mol% for 60 determinations are shown below. x1590 46 577 31 450 94 500 88 532 47 576 34 422.23 561.71 461.08 576.75 448 80 477 82 52421 424 26 393.39 502 99 486 88 464 28 49104 358 98 479 68 393.44 412 79 529 43 508.99 448. 19 47654 387 06 545.97 527.66 379 83 371 32 538 73 432 14 497 99 469 48 351 79 569 40 49625 446.03 491 35 447 68 543 21 568 70 465 55 477 65 51241 483 63 410 06 57682 549.50 552 40 562 24 517.00 464 41 438.48 596 85 421.29 589.06 351.08 y-055320 0 74428 047923 0 45283 O 48701 0 64284 0 37890 0 37643 0 39865 0 26843 0 25641 0 38939 O 37818-0 05294 0 30113 0 54796 0 36265 0 21166 O 58598 020473 0 44195 0.293770 318360 26016 0 454990 47434 0 44006 0. 11064 0.76482 0 60441 022549 0 08545 0 80400 0 25367 0.30103 0 61113 0 30876 0.37458 044849 0.39209 0 3399 1 0 301270 37961 0 37894 0 383 19 025660 0 475 15 0 4 1940 0 218 16 O 61466 0 59628 0 1 2946 O 63742 O 50307 O 53372 0.13223 O 58613 O 61 718 O 72482 O 200941 (a) Fit the linear regression of Y on X using Matiab What is the estimated intercept term Bo? Number (b) What is the estimated slope of the fitted line. NumberExplanation / Answer
MATLAB code
close all
clear
clc
x = [590.46 577.31 450.94 500.88 532.47 576.34 422.23 561.71 461.08 576.75 448.8 477.82 524.21 424.26 393.39 502.99 486.88 464.28 491.04 358.98 479.68 393.44 412.79 529.43 508.99 448.19 476.54 387.06 545.97 527.66 379.83 371.32 538.73 432.14 497.99 469.48 351.79 569.4 496.25 446.03 491.35 447.68 543.21 568.7 465.55 477.65 512.41 483.63 410.06 576.82 549.5 552.4 562.24 517 464.41 438.48 596.85 421.29 589.06 351.08];
y = [0.6532 0.74428 0.47923 0.45283 0.48701 0.64284 0.3789 0.37643 0.39865 0.26843 0.25641 0.38939 0.37818 -0.05294 0.30113 0.54796 0.36265 0.21166 0.58598 0.20473 0.44195 0.29377 0.31836 0.26016 0.45499 0.47434 0.44006 0.11064 0.76482 0.60441 0.22549 0.08545 0.804 0.25367 0.30103 0.61113 0.30876 0.37458 0.44849 0.39209 0.33991 0.30127 0.37961 0.37894 0.38319 0.2566 0.47515 0.4194 0.21816 0.61466 0.59628 0.12946 0.63742 0.50307 0.53372 0.13223 0.58613 0.61718 0.72482 0.28694];
A = ones(length(x), 2);
A(:,1) = x';
r = Ay';
slope = r(1);
intercept = r(2);
fprintf('Intercept (beta_0): %.6f Slope (beta_1): %.6f ', intercept, slope);
Output
Intercept (beta_0): -0.366195
Slope (beta_1): 0.001598
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.