Beruflich Dokumente
Kultur Dokumente
23 Oct 2015
QUICK
GUIDE:
INTERPRETI
SIMPLE
LINEAR
MODEL
OUTPUT
IN R
Linear regression models are
a key part of the family of
supervised learning models.
In particular, linear
Regression - An example
using R. In general, statistical
linear regression in R to
datasets package in R
library(help =
"datasets") .
summary(cars)
## speed
## Min. : 4.0 Min.
## 1st Qu.:12.0 1st Q
## Median :15.0 Medi
## Mean :15.4 Mean
## 3rd Qu.:19.0 3rd Q
## Max. :25.0 Max.
stop.
variables:
plot(cars, col='blue', p
xlab="Speed in m
From the plot above, we can
interested in interpreting
potentially de ne next
building process.
price drop
one example:
set.seed(122)
speed.c = scale(cars$spe
mod1 = lm(formula = dist
summary(mod1)
##
## Call:
## lm(formula = dist ~
##
## Residuals:
## Min 1Q Med
## -29.069 -9.525 -2.
##
## Coefficients:
## Estimate
## (Intercept) 42.9800
## speed.c 3.9324
## ---
## Signif. codes: 0 '*
##
## Residual standard er
## Multiple R-squared:
## F-statistic: 89.57 on
The model above is achieved
model.
price drop
Formula Call
Residuals
model. If we wanted to
analyst wants to nd an
intercept and a slope such
3.9324088 feet.
relationship exists. In
observe a relationship
Consequently, a small p-
regression line by
approximately 15.3795867
Simplistically, degrees of
these parameters
slope).
Multiple R-squared,
Adjusted R-squared
of a proportion of variance.
R
2
is a measure of the linear
de ne what level of R
2
is
adjusted R
2
is the preferred
number of variables
considered.
F-Statistic
of whether there is a
number of predictors.
a relationship between
F-statistic is 89.5671065
is by transforming our
transformed mod2 =
lm(formula = log(dist) ~
new transformation of
3 Things I Learned
Helping Australia’s
Leading Creative
Agency Win A Large
Analytics Project In
Analytics Panel @
Big Data
DASAMA™ - Data
Maturity Assessment
model
buy
Data Analytics
Initiative
HOME ABOUT
TESTIMONIALS BLOG
MESSAGE
EMAIL felipe@felip
SOCIAL
SEND MESSAGE