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: Temp Length...


use pandas python & numpy


I want number 2)


We all know that when the temperature of a metal increases, it begins to expand. So,<br>we experimented with exposing a metal rod to different temperatures and recorded its<br>length as follows:<br>Temp<br>Length<br>20<br>25<br>30<br>35<br>40<br>45<br>50<br>55<br>60<br>65<br>0.5<br>1.8<br>6.2<br>6.5<br>7.8<br>9.4<br>9.8<br>10.9<br>Required:<br>1. Implement and plot a simple linear regression for the above data, where the<br>temperature is “x

Extracted 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: Temp Length 20 25 30 35 40 45 50 55 60 65 0.5 1.8 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 = Wix' + w2x²+ w3x³ + w4 Where w4 represents bias. *you can use normal equation to calculate 'W' as follow: W = (XT.X)-1.(XT.Y) Then calculate Y, Where Y = X.WT 3. Try degree of 2, 3, 5, and 8

Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here