Download presentation
Presentation is loading. Please wait.
Published byLee Fowler Modified over 6 years ago
1
Résolution de l’ex 1 p40 t=c(2:12);N=c(55,90,135,245,403,665,1100,1810,3000,4450,7350) T=data.frame(t,N,y=log(N));T; > T t N y …..
2
Calcul de moyenne et écart-type
apply(T,2,mean); t N y apply(T,2,sd);
3
plot(T$t,T$N)
4
plot(T$t,T$y)
5
droite de regression ll=lm(y~t,data=T);ll; Call:
lm(formula = y ~ t, data = T) Coefficients: (Intercept) t
6
abline(ll);
7
summary(ll) Call: lm(formula = y ~ t, data = T) Min 1Q Median 3Q Max
Residuals: Min Q Median Q Max Coefficients: Estimate Std. Error t value Pr(>|t|) (Intercept) e-14 *** t e-15 *** --- Signif. codes: 0 `***' `**' 0.01 `*' 0.05 `.' 0.1 ` ' 1
8
summary(ll) suite Residual standard error: on 9 degrees of freedom Multiple R-Squared: , Adjusted R-squared: F-statistic: 1.329e+04 on 1 and 9 DF, p-value: 1.413e-15
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.