Solve manually not using code Exercise 1 (10 pts): We have collected the following data points that
Fantastic news! We've Found the answer you've been seeking!
Question:
Solve manually not using code
Transcribed Image Text:
Exercise 1 (10 pts): We have collected the following data points that give the yearly medical expenses for a male person based on his age. We want to build a model that predicts the medical expenses for any male person of any age. SNUM AGE MEXP 1 15 100 2 20 135 3 25 135 4 37 150 5 40 250 6 45 270 7 481 290 8 50 360 9 55 275 10 61 400 11 64 500 12 67 1000 13 70 1500 We want to manually develop regression model (hint: do the calculations using Excel). a) What kind of a model is most suitable for the task? Explain (have proof). b) Compute the parameters of the linear regression. c) Compute the corresponding obtained cost function d) Compute the corresponding R2 score. e) Now use Gradient Descent, with a learning rate = 0.1. Compute the update of the parameters for three iterations of the GD. Exercise 1 (10 pts): We have collected the following data points that give the yearly medical expenses for a male person based on his age. We want to build a model that predicts the medical expenses for any male person of any age. SNUM AGE MEXP 1 15 100 2 20 135 3 25 135 4 37 150 5 40 250 6 45 270 7 481 290 8 50 360 9 55 275 10 61 400 11 64 500 12 67 1000 13 70 1500 We want to manually develop regression model (hint: do the calculations using Excel). a) What kind of a model is most suitable for the task? Explain (have proof). b) Compute the parameters of the linear regression. c) Compute the corresponding obtained cost function d) Compute the corresponding R2 score. e) Now use Gradient Descent, with a learning rate = 0.1. Compute the update of the parameters for three iterations of the GD.
Expert Answer:
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these programming questions
-
This assignment requires you to complete the 2022 tax reporting for a fictional woman named Anna Smith. Question 1 T1 - step 4 - line 66 This is Anna's taxable income Answer: Question 2 T1 - step...
-
Q1. You have identified a market opportunity for home media players that would cater for older members of the population. Many older people have difficulty in understanding the operating principles...
-
Label each transition in this flowchart Label each transition in this flowchart as a chemical change or a physical change. 8 chemical physical 00
-
Is the breadth and number of Federal excise taxes increasing or decreasing? Explain.
-
How do the reverse genetic approaches used to dissect biological processes differ from classical genetic approaches?
-
In an attribute sampling plan for the Mid-East Sales Co., you examine 200 sales invoices. In your working papers, you make the following listing of possible exceptions to prescribed control...
-
Abardeen Corporation borrowed $90,000 from the bank on October 1, 2016. The note had an 8percent annual rate of interest and matured on March 31, 2017. Interest and principal were paid in cash on the...
-
The code of a program as follows. #include #include int main() { int i; for (i=0; i <4; i++) { fork(); } return 0; } Including itself, how many processes are created by the program shown above?
-
Mendina, Incorporated produces an advanced type of coffee maker. Information about the coffee maker is below: Total Variable Cost at 200 units Total Cost per Unit Sales Price Target Profit Volume...
-
Which one of the sociological theories do you think explains the most crime?
-
Your money is tied up and you need to borrow \($10\),000. The following two alternatives are being offered by the lender: (1) pay \($3\),288.91 at the end of each year for 5 years, starting at the...
-
Shortly after completing his MS degree in engineering, Jerry Dechert wanted to initiate a retirement plan. He decided to use a 15 percent mix of blue chip individual stocks, 50 percent mutual funds,...
-
How much money would have to be deposited today to accumulate a. $10,000 after 6 years if the investment earns 5%/year compounded annually. b. $6,500 after 4 years if the investment earns 8...
-
Dr. Sivaraman is considering purchasing a \($10\),000 bond with a bond coupon rate of 7 percent per year with semiannual interest payments (3.5 percent payable every 6 months). The bond has a life of...
-
Raye believes the previous advisers specification for debt is incorrect given that, for purposes of asset allocation, asset classes should be: A. diversifying. B. mutually exclusive. C. relatively...
-
Express the fourier transform of signal g(t) as G(). Also, show that a. G) = | 2nft-j g(1) sin 2nft g(1) cos g(1) cos 2nft, if g(t) is even signal !! c. G) =- 2j g(1) sin 2nft, if g(t) is odd signal
-
How has the too-big-to-fail policy been limited in the FDICIA legislation? How might limiting the too-big-to-fail policy help reduce the risk of a future banking crisis?
-
Linda and Richard are married and file a joint return for 2012. During the year, Linda, who works as an accountant for a national airline, used $2,100 worth of free passes for travel on the airline;...
-
Jim is fired from his job as a waiter and decides to take an extended trip to Europe. After touring Europe for 3 months, Jim returns to look for a new job as a waiter. Are his job-hunting expenses...
-
If Charles, a 16-year-old child model, earns $50,000 a year and is completely self supporting even though he lives with his parents, can his parents claim him as a dependent? Why or why not?...
-
An analysis by Professor Peter M Rothwell and his colleagues (Nuffield Department of Clinical Neuroscience, University of Oxford, UK) published in 2012 in the medical journal The Lancet...
-
Suppose a student is interested in knowing the preferred holiday destinations of the faculty members in their university. They are affiliated to the college of business and interview a few of the...
-
The following table shows the result of the 2018 General Elections in Pakistan, along with the vote share predicted by several organizations in the days before the elections. The sample sizes were...
Study smarter with the SolutionInn App