20.06.2013 Views

Dispensa di modelli lineari in R - Dipartimento di Statistica

Dispensa di modelli lineari in R - Dipartimento di Statistica

Dispensa di modelli lineari in R - Dipartimento di Statistica

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

CAPITOLO 9. ANALISI DELLA VARIANZA AD UN FATTORE 98<br />

Circa la normalità, si può <strong>di</strong>re che i gruppi 2 e 4 presentano una <strong>di</strong>stribuzione sufficientemente<br />

simmetrica, mentre gli altri gruppi, <strong>in</strong> particolare il 3 ed il 5, evidenziano<br />

un’asimmetria della <strong>di</strong>stribuzione. Per saggiare graficamente l’ipotesi <strong>di</strong> normalità<br />

si consider<strong>in</strong>o i grafici quantile-quantile<br />

> par(mfrow = c(2, 3), pty = "s")<br />

> qqnorm(Speed[Expt == 1])<br />

> qql<strong>in</strong>e(Speed[Expt == 1])<br />

> qqnorm(Speed[Expt == 2])<br />

> qql<strong>in</strong>e(Speed[Expt == 2])<br />

> qqnorm(Speed[Expt == 3])<br />

> qql<strong>in</strong>e(Speed[Expt == 3])<br />

> qqnorm(Speed[Expt == 4])<br />

> qql<strong>in</strong>e(Speed[Expt == 4])<br />

> qqnorm(Speed[Expt == 5])<br />

> qql<strong>in</strong>e(Speed[Expt == 5])<br />

Sample Quantiles<br />

Sample Quantiles<br />

700 800 900 1000<br />

750 800 850 900<br />

●<br />

●<br />

●<br />

●<br />

● ●<br />

Normal Q−Q Plot<br />

●<br />

●<br />

● ●<br />

● ●<br />

●<br />

● ● ●<br />

● ● ●<br />

−2 −1 0 1 2<br />

●<br />

●<br />

●<br />

● ●<br />

●<br />

Theoretical Quantiles<br />

Normal Q−Q Plot<br />

●<br />

●<br />

● ●<br />

● ●<br />

−2 −1 0 1 2<br />

●<br />

●<br />

● ●<br />

Theoretical Quantiles<br />

●<br />

●<br />

●<br />

●<br />

●<br />

Sample Quantiles<br />

Sample Quantiles<br />

800 850 900 950<br />

750 800 850 900 950<br />

●<br />

●<br />

●<br />

● ● ●<br />

Normal Q−Q Plot<br />

●<br />

● ●<br />

●<br />

●<br />

● ● ● ●<br />

●<br />

● ●<br />

−2 −1 0 1 2<br />

●<br />

●<br />

●<br />

●<br />

●<br />

Theoretical Quantiles<br />

Normal Q−Q Plot<br />

● ● ● ● ● ●<br />

●<br />

●<br />

●<br />

● ● ●<br />

−2 −1 0 1 2<br />

Theoretical Quantiles<br />

●<br />

●<br />

●<br />

●<br />

●<br />

Sample Quantiles<br />

650 700 750 800 850 900 950<br />

●<br />

● ●<br />

Normal Q−Q Plot<br />

● ● ● ●<br />

●<br />

● ●<br />

● ●<br />

● ● ● ● ●<br />

−2 −1 0 1 2<br />

Theoretical Quantiles<br />

Figura 9.5: Q-q plot della velocità nei c<strong>in</strong>que esperimenti.<br />

Anche tali <strong>di</strong>agrammi <strong>in</strong><strong>di</strong>cano che l’assunzione <strong>di</strong> normalità è ragionevole per i<br />

gruppi 2 e 4, mentre ci sono delle anomalie negli altri 3 gruppi.<br />

L’allontanamento dalla normalità appare particolarmente marcato nel terzo gruppo.<br />

Si può ottenere qualche <strong>in</strong><strong>di</strong>cazione ulteriore relativa al terzo gruppo.<br />

> summary(Speed[Expt == 3])<br />

●<br />

●<br />

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!