Simple Linear Regression

3 minutes
Share the link to this page
Copied
  Completed
You need to have access to the item to view this lesson.
One-time Fee
$49.99
List Price:  $69.99
You save:  $20
€47.33
List Price:  €66.27
You save:  €18.93
£39.56
List Price:  £55.39
You save:  £15.82
CA$70.08
List Price:  CA$98.13
You save:  CA$28.04
A$76.94
List Price:  A$107.73
You save:  A$30.78
S$66.97
List Price:  S$93.76
You save:  S$26.79
HK$389.07
List Price:  HK$544.73
You save:  HK$155.66
CHF 44.14
List Price:  CHF 61.80
You save:  CHF 17.65
NOK kr551.91
List Price:  NOK kr772.72
You save:  NOK kr220.80
DKK kr353.08
List Price:  DKK kr494.34
You save:  DKK kr141.26
NZ$84.92
List Price:  NZ$118.90
You save:  NZ$33.97
د.إ183.61
List Price:  د.إ257.06
You save:  د.إ73.45
৳5,945.13
List Price:  ৳8,323.66
You save:  ৳2,378.52
₹4,220.55
List Price:  ₹5,909.11
You save:  ₹1,688.55
RM223.60
List Price:  RM313.06
You save:  RM89.46
₦83,372.82
List Price:  ₦116,728.62
You save:  ₦33,355.80
₨13,820.59
List Price:  ₨19,349.93
You save:  ₨5,529.34
฿1,727.53
List Price:  ฿2,418.69
You save:  ฿691.15
₺1,729.22
List Price:  ₺2,421.05
You save:  ₺691.82
B$290
List Price:  B$406.02
You save:  B$116.02
R903.60
List Price:  R1,265.11
You save:  R361.51
Лв92.69
List Price:  Лв129.77
You save:  Лв37.08
₩69,708.73
List Price:  ₩97,597.80
You save:  ₩27,889.07
₪186.93
List Price:  ₪261.71
You save:  ₪74.78
₱2,944.96
List Price:  ₱4,123.18
You save:  ₱1,178.21
¥7,687.15
List Price:  ¥10,762.63
You save:  ¥3,075.47
MX$1,011.64
List Price:  MX$1,416.38
You save:  MX$404.73
QR181.44
List Price:  QR254.03
You save:  QR72.59
P678.74
List Price:  P950.29
You save:  P271.55
KSh6,461.20
List Price:  KSh9,046.20
You save:  KSh2,585
E£2,476.30
List Price:  E£3,467.03
You save:  E£990.72
ብር6,158.55
List Price:  ብር8,622.47
You save:  ብር2,463.91
Kz45,615.87
List Price:  Kz63,865.87
You save:  Kz18,250
CLP$48,593.25
List Price:  CLP$68,034.44
You save:  CLP$19,441.19
CN¥361.94
List Price:  CN¥506.75
You save:  CN¥144.80
RD$2,997.57
List Price:  RD$4,196.84
You save:  RD$1,199.27
DA6,668.59
List Price:  DA9,336.57
You save:  DA2,667.97
FJ$113.46
List Price:  FJ$158.85
You save:  FJ$45.39
Q384.37
List Price:  Q538.15
You save:  Q153.77
GY$10,408.46
List Price:  GY$14,572.68
You save:  GY$4,164.21
ISK kr6,877.62
List Price:  ISK kr9,629.22
You save:  ISK kr2,751.60
DH498.12
List Price:  DH697.40
You save:  DH199.28
L908.58
List Price:  L1,272.08
You save:  L363.50
ден2,912.59
List Price:  ден4,077.86
You save:  ден1,165.27
MOP$398.90
List Price:  MOP$558.50
You save:  MOP$159.59
N$901.01
List Price:  N$1,261.49
You save:  N$360.47
C$1,831.01
List Price:  C$2,563.56
You save:  C$732.55
रु6,716.80
List Price:  रु9,404.05
You save:  रु2,687.25
S/189.10
List Price:  S/264.76
You save:  S/75.65
K200.13
List Price:  K280.20
You save:  K80.07
SAR187.66
List Price:  SAR262.74
You save:  SAR75.08
ZK1,371.88
List Price:  ZK1,920.74
You save:  ZK548.86
L235.56
List Price:  L329.81
You save:  L94.24
Kč1,198.15
List Price:  Kč1,677.50
You save:  Kč479.35
Ft19,266.03
List Price:  Ft26,973.98
You save:  Ft7,707.95
SEK kr548.53
List Price:  SEK kr767.99
You save:  SEK kr219.45
ARS$49,915.93
List Price:  ARS$69,886.30
You save:  ARS$19,970.36
Bs343.78
List Price:  Bs481.32
You save:  Bs137.54
COP$221,073.29
List Price:  COP$309,520.29
You save:  COP$88,447
₡25,336.89
List Price:  ₡35,473.68
You save:  ₡10,136.78
L1,256.69
List Price:  L1,759.47
You save:  L502.78
₲387,767.04
List Price:  ₲542,904.89
You save:  ₲155,137.84
$U2,146.25
List Price:  $U3,004.92
You save:  $U858.67
zł204.87
List Price:  zł286.84
You save:  zł81.96
Already have an account? Log In

Transcript

Okay for this simple linear regressions. So in our high school we learn about linear regression, the formula is y equals mx plus C. In University, the formula is y equals alpha plus beta X. So to find L bar, we can use the y bar y bar is the mean of Y minus beta times the x bar x bar is the mean of x. To find that beta, we can use something like this our si minus x bar times y minus y bar, and then we do the summation divided by the summation of si minus S bar the mean of x and then we square the whole thing. So this is the formula to let's say, calculate alpha and beta for the simple linear regression equations. So, as I mentioned previously, prediction model is to predict numerical variable classification model is to predict a categorical variable.

So let's say we have a training data data set, we try to split this data into our training data and testing data. So we can split this data set using let's say, our sampling method 75% for training data and 25% for testing data. Then we These are 770 5% training data, we can use these training data to train our linear regressions. So we can use this training data to calculate the beta and the alpha. So after we use the training data to Car train these linear regression model we get is a linear regression equation which is a price equal minus seven 0.1 plus one pi 6.9 times the engine size. So, this will be the alpha.

So the alpha So, this will be the alpha, beta beta times the engine. So, we use the training data to train the linear regression model. And we get all these Alpine all this data for our simple linear regression equations. So, with these simple linear regression equation or model, we can actually use this equation to predict the price was from let's say a new data set or from the testing dataset. So this is a simple linear regressions

Sign Up

Share

Share with friends, get 20% off
Invite your friends to LearnDesk learning marketplace. For each purchase they make, you get 20% off (upto $10) on your next purchase.