Distribuzioni continue

Introduzione alla statistica in R

Maggie Matsui

Content Developer, DataCamp

Aspettando l'autobus

Timeline 13:00–14:00 con 6 arrivi bus, uno ogni 12 min

Introduzione alla statistica in R

Distribuzione uniforme continua

Assi con wait time sull'asse x

Introduzione alla statistica in R

Distribuzione uniforme continua

L'asse Y diventa P(outcome = wait time) con una linea orizzontale a 1/12

Introduzione alla statistica in R

Probabilità = area

$$P(4 \le \text{wait time} \le 7) = ~~ ?$$

Area tra 4 e 7 evidenziata sotto la linea orizzontale

Introduzione alla statistica in R

Probabilità = area

$$P(4 \le \text{wait time} \le 7) = ~~ ?$$

Larghezza area evidenziata 7-4=3, altezza 1/12

Introduzione alla statistica in R

Probabilità = area

$$P(4 \le \text{wait time} \le 7) = 3 \times 1/12 = 3/12$$

Larghezza area evidenziata: 7-4=3, altezza: 1/12

Introduzione alla statistica in R

Distribuzione uniforme in R

$$ P(\text{wait time} \le 7)$$

Area evidenziata da 0 a 7 sotto la linea orizzontale

punif(7, min = 0, max = 12)
0.5833333
Introduzione alla statistica in R

lower.tail

$$ P(\text{wait time} \ge 7)$$

Area evidenziata da 7 a 12

punif(7, min = 0, max = 12, lower.tail = FALSE)
0.4166667
Introduzione alla statistica in R

$$ P(4 \le \text{wait time} \le 7)$$

Area evidenziata da 4 a 7

Introduzione alla statistica in R

$$ P(4 \le \text{wait time} \le 7)$$

Area evidenziata da 0 a 7

Introduzione alla statistica in R

$$ P(4 \le \text{wait time} \le 7)$$

Area 0–4 leggermente evidenziata, 4–7 più scura

punif(7, min = 0, max = 12) - punif(4, min = 0, max = 12)
0.25
Introduzione alla statistica in R

Area totale = 1

$$P(0 \le \text{wait time} \le 12) = ~~ ?$$

Larghezza distribuzione = 1, altezza = 1/12

Introduzione alla statistica in R

Area totale = 1

$$P(0 \le \text{outcome} \le 12) = 12 \times 1/12 = 1$$

Larghezza distribuzione = 1, altezza = 1/12

Introduzione alla statistica in R

Altre distribuzioni continue

 

Distribuzione con 2 picchi

 

Distribuzione a campana

Introduzione alla statistica in R

Altre distribuzioni continue

 

Area sotto la curva evidenziata con testo: area = 1

 

Area sotto la curva a campana evidenziata con testo: area = 1

Introduzione alla statistica in R

Altri tipi speciali di distribuzioni

Distribuzione normale

Grafico della distribuzione normale

Distribuzione di Poisson

Grafico della distribuzione di Poisson

Introduzione alla statistica in R

Andiamo a praticare!

Introduzione alla statistica in R

Preparing Video For Download...