Presentation is loading. Please wait.

Presentation is loading. Please wait.

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 1 2 55 4.007333.

Similar presentations


Presentation on theme: "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 1 2 55 4.007333."— Presentation transcript:

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


Download ppt "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 1 2 55 4.007333."

Similar presentations


Ads by Google