1. Implement and plot a simple linear regression for the above data, where the temperature is “x", and the length is “y" 2. Implement and plot a multiple linear regression "Polynomial regression" with different degrees. For example, Degree of 3:

Operations Research : Applications and Algorithms
4th Edition
ISBN:9780534380588
Author:Wayne L. Winston
Publisher:Wayne L. Winston
Chapter24: Forecasting Models
Section24.4: Winter’s Method: Exponential Smoothing With Seasonality
Problem 16P
icon
Related questions
Question
We all know that when the temperature of a metal increases, it begins to expand. So,
we experimented with exposing a metal rod to different temperatures and recorded its
length as follows:
20
Length
Temp
25
30
35
40
45
50
55
60
65
0.5
1.8
5
6.2
6.5
7.8
9.4
9.8
10.9
Required:
1. Implement and plot a simple linear regression for the above data, where the
temperature is “x", and the length is "y"
2. Implement and plot a multiple linear regression "Polynomial regression" with
different degrees.
For example, Degree of 3:
Y = w,x' + w2x? + W3x³ + W4
Where w4 represents bias.
*you can use normal equation to calculate 'W' as follow:
W (X".X)².(X".Y)
Then calculate Y, Where Y = X.WT
3. Try degree of 2, 3, 5, and 8
Transcribed Image Text:We all know that when the temperature of a metal increases, it begins to expand. So, we experimented with exposing a metal rod to different temperatures and recorded its length as follows: 20 Length Temp 25 30 35 40 45 50 55 60 65 0.5 1.8 5 6.2 6.5 7.8 9.4 9.8 10.9 Required: 1. Implement and plot a simple linear regression for the above data, where the temperature is “x", and the length is "y" 2. Implement and plot a multiple linear regression "Polynomial regression" with different degrees. For example, Degree of 3: Y = w,x' + w2x? + W3x³ + W4 Where w4 represents bias. *you can use normal equation to calculate 'W' as follow: W (X".X)².(X".Y) Then calculate Y, Where Y = X.WT 3. Try degree of 2, 3, 5, and 8
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Decision Tree
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Operations Research : Applications and Algorithms
Operations Research : Applications and Algorithms
Computer Science
ISBN:
9780534380588
Author:
Wayne L. Winston
Publisher:
Brooks Cole