R 中的回归入门
Richie Cotton
Data Evangelist at DataCamp
当 $x$ 为 0 时的 $y$ 值。
当 $x$ 增加 1 时,$y$ 增加的量。
$y = 截距 + 斜率 * x$







lm(total_payment_sek ~ n_claims, data = swedish_motor_insurance)
Call:
lm(formula = total_payment_sek ~ n_claims, data = swedish_motor_insurance)
Coefficients:
(Intercept) n_claims
19.994 3.414
Call:
lm(formula = total_payment_sek ~ n_claims, data = swedish_motor_insurance)
Coefficients:
(Intercept) n_claims
19.994 3.414
$total\_payment\_sek = 19.994 + 3.414 * n\_claims$
R 中的回归入门