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
€46.88
List Price:  €65.64
You save:  €18.75
£40.41
List Price:  £56.58
You save:  £16.17
CA$68.75
List Price:  CA$96.26
You save:  CA$27.50
A$77.91
List Price:  A$109.08
You save:  A$31.17
S$68.05
List Price:  S$95.27
You save:  S$27.22
HK$391.49
List Price:  HK$548.12
You save:  HK$156.63
CHF 45.51
List Price:  CHF 63.72
You save:  CHF 18.21
NOK kr550.78
List Price:  NOK kr771.14
You save:  NOK kr220.35
DKK kr350.01
List Price:  DKK kr490.05
You save:  DKK kr140.03
NZ$84.90
List Price:  NZ$118.86
You save:  NZ$33.96
د.إ183.59
List Price:  د.إ257.05
You save:  د.إ73.45
৳5,474.28
List Price:  ৳7,664.43
You save:  ৳2,190.15
₹4,167.68
List Price:  ₹5,835.09
You save:  ₹1,667.40
RM239.15
List Price:  RM334.83
You save:  RM95.68
₦64,837.03
List Price:  ₦90,777.03
You save:  ₦25,940
₨13,881.90
List Price:  ₨19,435.77
You save:  ₨5,553.87
฿1,839.66
List Price:  ฿2,575.67
You save:  ฿736.01
₺1,623.95
List Price:  ₺2,273.66
You save:  ₺649.71
B$260.10
List Price:  B$364.16
You save:  B$104.06
R964.54
List Price:  R1,350.44
You save:  R385.89
Лв91.62
List Price:  Лв128.28
You save:  Лв36.65
₩68,711
List Price:  ₩96,200.90
You save:  ₩27,489.90
₪188.01
List Price:  ₪263.23
You save:  ₪75.22
₱2,878.07
List Price:  ₱4,029.53
You save:  ₱1,151.45
¥7,729.70
List Price:  ¥10,822.20
You save:  ¥3,092.50
MX$854.85
List Price:  MX$1,196.86
You save:  MX$342.01
QR182
List Price:  QR254.81
You save:  QR72.81
P692.79
List Price:  P969.97
You save:  P277.17
KSh6,559.29
List Price:  KSh9,183.54
You save:  KSh2,624.24
E£2,416.01
List Price:  E£3,382.61
You save:  E£966.60
ብር2,834.19
List Price:  ብር3,968.10
You save:  ብር1,133.90
Kz41,841.63
List Price:  Kz58,581.63
You save:  Kz16,740
CLP$47,609.52
List Price:  CLP$66,657.14
You save:  CLP$19,047.61
CN¥361.89
List Price:  CN¥506.67
You save:  CN¥144.78
RD$2,968.15
List Price:  RD$4,155.65
You save:  RD$1,187.50
DA6,728.30
List Price:  DA9,420.16
You save:  DA2,691.86
FJ$113.84
List Price:  FJ$159.39
You save:  FJ$45.54
Q387.95
List Price:  Q543.16
You save:  Q155.21
GY$10,436.03
List Price:  GY$14,611.27
You save:  GY$4,175.24
ISK kr7,061.08
List Price:  ISK kr9,886.08
You save:  ISK kr2,825
DH505.32
List Price:  DH707.48
You save:  DH202.16
L895.32
List Price:  L1,253.52
You save:  L358.20
ден2,886.58
List Price:  ден4,041.45
You save:  ден1,154.86
MOP$402.43
List Price:  MOP$563.44
You save:  MOP$161
N$958.44
List Price:  N$1,341.89
You save:  N$383.45
C$1,847.63
List Price:  C$2,586.83
You save:  C$739.20
रु6,662.22
List Price:  रु9,327.64
You save:  रु2,665.42
S/186.11
List Price:  S/260.57
You save:  S/74.45
K189.98
List Price:  K265.99
You save:  K76
SAR187.53
List Price:  SAR262.56
You save:  SAR75.02
ZK1,280.70
List Price:  ZK1,793.08
You save:  ZK512.38
L233.42
List Price:  L326.81
You save:  L93.38
Kč1,184.73
List Price:  Kč1,658.72
You save:  Kč473.99
Ft18,492.80
List Price:  Ft25,891.40
You save:  Ft7,398.60
SEK kr545.57
List Price:  SEK kr763.84
You save:  SEK kr218.27
ARS$43,553.78
List Price:  ARS$60,978.78
You save:  ARS$17,425
Bs345.41
List Price:  Bs483.61
You save:  Bs138.19
COP$195,954.42
List Price:  COP$274,351.87
You save:  COP$78,397.45
₡25,050.04
List Price:  ₡35,072.06
You save:  ₡10,022.02
L1,231.46
List Price:  L1,724.15
You save:  L492.68
₲369,029.32
List Price:  ₲516,670.58
You save:  ₲147,641.25
$U1,919.32
List Price:  $U2,687.21
You save:  $U767.88
zł202.20
List Price:  zł283.10
You save:  zł80.89
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.