Question

Your answer is partially correct. Try again. Use a computer to develop the equation of the regression model for the following

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

MATLAB Code:

close all
clear
clc

y = [12 18 31 28 52 47 38 25 36 17]';
x1 = [174 281 189 202 149 188 215 155 167 135]';
x2 = [3 9 4 8 9 12 5 10 8 5]';

% To obtain the model y = a0 + a1*x1 + a2*x2,
% we need to solve the system Ac = y,
% where A = [1 x1 x2] and c = [a0 a1 a2]
A = [ones(size(x1)) x1 x2];
c = A\y; % Solve the system
fprintf('Model: y = (%.2f) + (%.2f)*x1 + (%.2f)*x2\n', c)
fprintf('Prediction: y(x1 = 190, x2 = 7) = %.2f\n', c(1) + c(2)*190 + c(3)*7)

Output:

Model: y = (25.86) + (-0.07)*x1 + (2.36)*x2
Prediction: y(x1 = 190, x2 = 7) = 29.38

Add a comment
Know the answer?
Add Answer to:
Your answer is partially correct. Try again. Use a computer to develop the equation of the...
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
  • * Your answer is incorrect. Try again. In the regression equation y = 1959.71 - 0.46...

    * Your answer is incorrect. Try again. In the regression equation y = 1959.71 - 0.46 x1 + 2.16 x2, suppose that the you are considering the point (x1, x2) = (1.5, 0.5), and furthermore, suppose that the variable x1 increases by a factor of 2 (i.e., it doubles). What must be the change in the variable x2 so that y remains unchanged? 0.638 2.16 -0.319 ОО 0.319 -2.16 Click if you would like to Show Work for this question:...

  • Your answer is partially correct. Try again. 1992) describes an experiment in which the amount of...

    Your answer is partially correct. Try again. 1992) describes an experiment in which the amount of radon released in showers was investigated Radon-enriched water was used in the experiment, and six Contifice diameters were tested in shower heads. The data from the experimentare shown in the following table, The department of health studied the number of patients who need liver transplantation. The following data are the Liver Transplantation Waiting List (LTWL), where y is the size (in number of patients)...

  • Your answer is partially correct. Try again. Find an equation for the tangent plane and parametric...

    Your answer is partially correct. Try again. Find an equation for the tangent plane and parametric equations for the normal line to the surface at the point P. 2=*+y: P(1, -3,10) Tangent Plane: 2x -6y-10 Edit Normal Line: X(t) = 1 +21 Edit Edit y -3-2t z(t) = 10-1 By accessing this Question Assistance, you will learn while you earn points based on the Point Potential Policy set by your instructor © 2000-2020 John Wiley & Sons, Inc. All Rights...

  • 10.2.8 Your answer is partially correct. Try again. A photoconductor film is manufactured at a nominal...

    10.2.8 Your answer is partially correct. Try again. A photoconductor film is manufactured at a nominal thickness of 25 mils. The product engineer wishes to increase the mean speed of the film, and believes that this can be achieved by reducing the thickness of the film to 20 mils. Eight samples of each film thickness are manufactured in a pilot production process, and the film speed (in microjoules per square inch) is measured. For the 25-mil film, the sample data...

  • I need help with my applied managerial statistics project Do a descriptive analysis(calculate mean, mode ,range...

    I need help with my applied managerial statistics project Do a descriptive analysis(calculate mean, mode ,range ,variance ,std ,deviation etc ) on each of the four variables sales ,calls, time, years and plot a histogram (using Excel)for each of the four variables. B Sales (Y) 37 38 40 117 45 43 34 37 137 138 44 45 37 38 43 46 45 Calls (X1) Time (X2) Years (X3) 117 14.8 117 15.3 15.6 117 15.8 120 18.2 120 13.6 131...

  • Your answer is partially correct. Try again. Post to the investment accounts. (Use T-accounts.) (Post entries...

    Your answer is partially correct. Try again. Post to the investment accounts. (Use T-accounts.) (Post entries in the order of journal Stock Investments 1/1 Bal. 18790011/1 Bal. 1/20 327600 1/20 71500 9/6 6806011 9/6 35200 12/31 Bal, Y 352 2/31 Bal. ▼ 182020 SHOW LIST OF ACCOUNTS LINKTO TEXT LINK TO TEXT 回Your ans wer is correct. Prepare the adjusting entry at December 31, 2018 to report the portfolio at fair value. (Credit acco entry for the account titles and...

  • URCES Problem 15-4 Your answer is partially correct. Try again. Marigold Corporation's charter authorized issuance of...

    URCES Problem 15-4 Your answer is partially correct. Try again. Marigold Corporation's charter authorized issuance of 105,000 shares of $10 par value common stock completed. Each transaction is independent of the others. 1 Issued a $9,200,9% bond payable at par and gave as a bonus one share of preferred stock, which at that time and 4o soo shares of sso preferred stock. The followino transactions involving the issuance of shares of stock were Jbv. Study 2. Issued 460 shares of...

  • The accompanying computer excel output (please see attachment on Blackboard) provides details of data and analysis...

    The accompanying computer excel output (please see attachment on Blackboard) provides details of data and analysis on the topic of “patient satisfaction”. A hospital administrator wished to study the relation between patient satisfaction (Y) and patients’ age (X1, in years) , severity of illness (X2), and anxiety level (X3). The output includes a listing of all 46 observations; descriptive statistics for each variable; and, the results of a regression analysis that uses patient satisfaction as the dependent variable, and patient’s...

  • Please use Excel, and show all functions. 3. Answer the following question for where Y has...

    Please use Excel, and show all functions. 3. Answer the following question for where Y has been regressed on X1, X2, and X3. Use the linear regression output in the Excel file. Your answers should be rounded to 2 decimal places. a. What is the equation for the line of best fit or regression line? b. The proportion is for the amount of the variability of Y that is explained or accounted for by the model. C. The correlation between...

  • ***PLEASE DO ALL THIS IS MY LAST QUESTION OF THE GIVEN AMOUNT OF QUESTIONS :( *** Which value of r indicates a stronger correlation:r 0.751 orr0.896? Explain your reasoning Choose the correct answer...

    ***PLEASE DO ALL THIS IS MY LAST QUESTION OF THE GIVEN AMOUNT OF QUESTIONS :( *** Which value of r indicates a stronger correlation:r 0.751 orr0.896? Explain your reasoning Choose the correct answer below. A. r=-0.896 represents a stronger correlation because 0.751 >-0.896. B. r=0.751 represents a stronger correlation because l-08961-10.751. C· r--0 896 represents a stronger correlation because 1-0 8961-10751. D. 0.751 represents a stronger correlation because 0.751> -0.896. The budget (in millions of dollars) and worldwide gross (in...

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
ADVERTISEMENT