Call:
lm(formula = y ~ x)
Coefficients:
(Intercept) x
-45.96887 0.01367
…..
Call:
lm(formula = y ~ x)
Residuals:
Min 1Q Median 3Q Max
-42.751 -9.068 -6.063 11.882 43.158
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) -45.968867 15.694147 -2.929 0.0126 *
x 0.013672 0.002153 6.350 3.66e-05 ***
---
Signif. codes: 0 `***' 0.001 `**' 0.01 `*' 0.05 `.' 0.1 ` ' 1
Residual standard error: 22.82 on 12 degrees of freedom
Multiple R-squared: 0.7707, Adjusted R-squared: 0.7515
F-statistic: 40.32 on 1 and 12 DF, p-value: 3.664e-05
PODSUMOWANIE REGRESJI
Min. 1st Qu. Median Mean 3rd Qu. Max. >>pods. X
2175 4472 6600 6716 9463 11090
Min. 1st Qu. Median Mean 3rd Qu. Max.
2.80 12.10 30.05 45.86 67.25 143.50 > .pods. y
4 wykresy ???
Funkcja kwadratowa
SUMMARY
Call:
lm(formula = y ~ x + I(x^2))
Residuals:
Min 1Q Median 3Q Max
-35.266 -6.996 1.448 5.737 30.086
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 2.596e+01 3.141e+01 0.826 0.4261
x -1.187e-02 1.030e-02 -1.152 0.2737
I(x^2) 1.875e-06 7.445e-07 2.518 0.0286 *
---
Signif. codes: 0 `***' 0.001 `**' 0.01 `*' 0.05 `.' 0.1 ` ' 1
Residual standard error: 18.98 on 11 degrees of freedom
Multiple R-squared: 0.8545, Adjusted R-squared: 0.8281
F-statistic: 32.3 on 2 and 11 DF, p-value: 2.487e-05
Param. Do kwadratowej
Call:
lm(formula = y ~ x + I(x^2))
Coefficients:
(Intercept) x I(x^2)
2.596e+01 -1.187e-02 1.874e-06
Param. Do pot. 5
Call:
lm(formula = y ~ x + I(x^2) + I(x^3) + I(x^4) + I(x^5))
Coefficients:
(Intercept) x I(x^2) I(x^3) I(x^4) I(x^5)
6.047e+02 -6.419e-01 2.490e-04 -4.410e-08 3.631e-12 -1.119e-16