Quando la variabile casuale può assumere tutti i valori di un intervallo, la probabilità non si concentra più su singoli punti ma si spalma con continuità: la descrive una funzione densità f(x)f(x), e le probabilità diventano aree (integrali). I due modelli continui fondamentali sono la gaussiana (la campana di Gauss, onnipresente in statistica) e l’esponenziale (i tempi di attesa fra eventi), quest’ultima strettamente legata al decadimento radioattivo.

When the random variable can take all the values of an interval, probability no longer concentrates on single points but spreads out with continuity: it is described by a density function f(x)f(x), and probabilities become areas (integrals). The two fundamental continuous models are the Gaussian (the Gaussian bell, ubiquitous in statistics) and the exponential (the waiting times between events), the latter closely tied to radioactive decay.

Quando i valori possibili formano un intervallo continuo, non ha più senso assegnare una probabilità a ogni singolo valore: la probabilità si descrive con una funzione densità, e diventa un’area.

Definizione — Funzione densità di probabilità

Una v.c. continua XX è descritta da una funzione densità di probabilità f(x)0f(x)\ge 0 con +f(x)dx=1\int_{-\infty}^{+\infty}f(x)\,dx = 1. La probabilità che XX cada in un intervallo è P(aXb)=abf(x)dx.P(a\le X\le b) = \int_a^b f(x)\,dx.

Osservazione

Per una variabile continua, P(X=x0)=0P(X=x_0) = 0 per ogni valore singolo x0x_0 (l’integrale su un punto è zero). Ha senso solo chiedere la probabilità di un intervallo.

L’area totale sotto la curva vale sempre 11: è l’analogo continuo della condizione pi=1\sum p_i = 1 delle distribuzioni discrete.

Collegamenti

Argomenti: Distribuzioni probabilita
Concetti: Densita di probabilita · Variabile aleatoria
Competenze: Interpretare grafico

When the possible values form a continuous interval, it no longer makes sense to assign a probability to each single value: probability is described by a density function, and it becomes an area.

Definition — Probability density function

A continuous r.v. XX is described by a probability density function f(x)0f(x)\ge 0 with +f(x)dx=1\int_{-\infty}^{+\infty}f(x)\,dx = 1. The probability that XX falls in an interval is P(aXb)=abf(x)dx.P(a\le X\le b) = \int_a^b f(x)\,dx.

Remark

For a continuous variable, P(X=x0)=0P(X=x_0) = 0 for every single value x0x_0 (the integral over a point is zero). It only makes sense to ask for the probability of an interval.

The total area under the curve is always 11: it is the continuous analogue of the condition pi=1\sum p_i = 1 of discrete distributions.

Topics: Distribuzioni probabilita
Concepts: Densita di probabilita · Variabile aleatoria
Skills: Interpretare grafico

La distribuzione normale è il modello continuo più importante della statistica: descrive misure soggette a molti piccoli errori casuali e la sua curva è la celebre “campana di Gauss”.

Proprietà — XN(μ,σ2)X\sim N(\mu,\sigma^2)

f(x)=1σ2πe(xμ)22σ2.f(x) = \frac{1}{\sigma\sqrt{2\pi}}\,e^{-\frac{(x-\mu)^2}{2\sigma^2}}. La curva è la famosa “campana di Gauss”: simmetrica rispetto a μ\mu, con larghezza proporzionale a σ\sigma.

Storia — La "campana" prima di Gauss

La curva a campana comparve per la prima volta nel 1733, quando Abraham de Moivre la ricavò come approssimazione della distribuzione binomiale per un gran numero di prove, cercando di stimare le probabilità nel gioco d’azzardo (Boyer). Fu poi Pierre-Simon Laplace a inserirla al centro della teoria degli errori e a intravedere il teorema del limite centrale, mentre Carl Friedrich Gauss la impiegò nel 1809 per giustificare il metodo dei minimi quadrati nell’analisi delle osservazioni astronomiche (Stigler). Il nome “gaussiana” è così, in parte, un tributo storico un po’ ingeneroso verso de Moivre e Laplace.

Tre gaussiane. La blu è la normale standard N(0,1)N(0,1). La rossa ha media μ=1\mu=1 e σ\sigma piccolo (stretta e alta). La verde ha media μ=1\mu=-1 e σ\sigma grande (larga e bassa). L’area sotto ogni curva è sempre 11.

Esplora la campana di Gauss nella simulazione: sposta μ\mu per traslare la curva e σ\sigma per allargarla o restringerla.

Trascina i cursori: $\mu$ trasla la campana, $\sigma$ la allarga o la restringe (area sempre $1$).

Video consigliati

Collegamenti

Argomenti: Distribuzioni probabilita
Concetti: Densita di probabilita · Deviazione standard · Distribuzione normale · Valore atteso
Competenze: Interpretare grafico · Modellizzare
Persone: Abraham de Moivre · Carl Friedrich Gauss · Pierre-Simon Laplace

The normal distribution is the most important continuous model in statistics: it describes measurements subject to many small random errors and its curve is the celebrated “Gaussian bell”.

Property — XN(μ,σ2)X\sim N(\mu,\sigma^2)

f(x)=1σ2πe(xμ)22σ2.f(x) = \frac{1}{\sigma\sqrt{2\pi}}\,e^{-\frac{(x-\mu)^2}{2\sigma^2}}. The curve is the famous “Gaussian bell”: symmetric about μ\mu, with width proportional to σ\sigma.

History — The "bell" before Gauss

The bell-shaped curve first appeared in 1733, when Abraham de Moivre derived it as an approximation of the binomial distribution for a large number of trials, while trying to estimate probabilities in games of chance (Boyer). It was then Pierre-Simon Laplace who placed it at the heart of the theory of errors and glimpsed the central limit theorem, while Carl Friedrich Gauss used it in 1809 to justify the method of least squares in the analysis of astronomical observations (Stigler). The name “Gaussian” is therefore, in part, a historically somewhat unfair tribute to de Moivre and Laplace.

Three Gaussians. The blue one is the standard normal N(0,1)N(0,1). The red one has mean μ=1\mu=1 and small σ\sigma (narrow and tall). The green one has mean μ=1\mu=-1 and large σ\sigma (wide and low). The area under each curve is always 11.

Explore the Gaussian bell in the simulation: move μ\mu to shift the curve and σ\sigma to widen or narrow it.

Drag the sliders: $\mu$ shifts the bell, $\sigma$ widens or narrows it (area always $1$).

Topics: Distribuzioni probabilita
Concepts: Densita di probabilita · Deviazione standard · Distribuzione normale · Valore atteso
Skills: Interpretare grafico · Modellizzare
People: Carl Friedrich Gauss

Per una gaussiana esiste una regola pratica che permette di stimare a mente le probabilità degli intervalli centrati sulla media, senza ricorrere alle tabelle.

Proprietà — Regola del 6868959599,799{,}7

Per una variabile gaussiana:

  • P(μσXμ+σ)68%P(\mu-\sigma \le X \le \mu+\sigma) \approx 68\%
  • P(μ2σXμ+2σ)95%P(\mu-2\sigma \le X \le \mu+2\sigma) \approx 95\%
  • P(μ3σXμ+3σ)99,7%P(\mu-3\sigma \le X \le \mu+3\sigma) \approx 99{,}7\%

In parole: circa due terzi dei dati cadono entro una deviazione standard dalla media, il 95%95\% entro due, e praticamente tutti (il 99,7%99{,}7\%) entro tre. È il criterio con cui in laboratorio si giudica se una misura è “compatibile” con un valore atteso.

Nella simulazione seguente trascina il cursore kk e osserva come l’area sotto la gaussiana tra kσ-k\sigma e +kσ+k\sigma riproduce le percentuali della regola.

Trascina il cursore $k$: area sotto la normale standard tra $-k\sigma$ e $+k\sigma$.

Collegamenti

Argomenti: Distribuzioni probabilita
Concetti: Deviazione standard · Distribuzione normale
Competenze: Calcolo probabilita · Stimare
Persone: Carl Friedrich Gauss

For a Gaussian there is a practical rule that lets you estimate in your head the probabilities of intervals centred on the mean, without resorting to tables.

Property — The 6868959599,799{,}7 rule

For a Gaussian variable:

  • P(μσXμ+σ)68%P(\mu-\sigma \le X \le \mu+\sigma) \approx 68\%
  • P(μ2σXμ+2σ)95%P(\mu-2\sigma \le X \le \mu+2\sigma) \approx 95\%
  • P(μ3σXμ+3σ)99,7%P(\mu-3\sigma \le X \le \mu+3\sigma) \approx 99{,}7\%

In words: about two thirds of the data fall within one standard deviation of the mean, 95%95\% within two, and practically all (the 99,7%99{,}7\%) within three. It is the criterion by which, in the laboratory, one judges whether a measurement is “compatible” with an expected value.

In the simulation below drag the slider kk and watch how the area under the Gaussian between kσ-k\sigma and +kσ+k\sigma reproduces the rule’s percentages.

Drag the slider $k$: area under the standard normal between $-k\sigma$ and $+k\sigma$.

Topics: Distribuzioni probabilita
Concepts: Deviazione standard · Distribuzione normale
Skills: Calcolo probabilita · Stimare
People: Carl Friedrich Gauss

L’esponenziale è il modello dei tempi di attesa: quanto passa prima del prossimo decadimento, del prossimo arrivo, del prossimo guasto. È strettamente legata alla distribuzione di Poisson (che conta gli eventi) e al decadimento radioattivo.

Proprietà — XExp(λ)X\sim\text{Exp}(\lambda)

Modella i tempi di attesa tra eventi (decadimenti, arrivi, guasti). f(x)=λeλx per x0,f(x)=0 per x<0.f(x) = \lambda\,e^{-\lambda x} \text{ per } x\ge 0, \qquad f(x)=0 \text{ per } x<0. Media 1/λ1/\lambda, varianza 1/λ21/\lambda^2. La funzione di ripartizione è F(x)=1eλxF(x) = 1-e^{-\lambda x}.

Osservazione — Collegamento con le ODE

La distribuzione esponenziale è la stessa funzione che compare nella soluzione dell’ODE y=λyy'=-\lambda y: il decadimento radioattivo. Non è un caso: la probabilità di sopravvivenza P(X>t)=eλtP(X>t) = e^{-\lambda t} soddisfa esattamente quell’equazione differenziale.

Distribuzione esponenziale per tre valori di λ\lambda: λ\lambda grande significa attese brevi (curva che decade in fretta, partendo alta), λ\lambda piccolo attese lunghe.

Collegamenti

Argomenti: Distribuzioni probabilita
Concetti: Densita di probabilita · Distribuzione esponenziale · Funzione di ripartizione
Competenze: Interpretare grafico · Modellizzare

The exponential is the model of waiting times: how long passes before the next decay, the next arrival, the next failure. It is closely tied to the Poisson distribution (which counts the events) and to radioactive decay.

Property — XExp(λ)X\sim\text{Exp}(\lambda)

Models the waiting times between events (decays, arrivals, failures). f(x)=λeλx for x0,f(x)=0 for x<0.f(x) = \lambda\,e^{-\lambda x} \text{ for } x\ge 0, \qquad f(x)=0 \text{ for } x<0. Mean 1/λ1/\lambda, variance 1/λ21/\lambda^2. The cumulative distribution function is F(x)=1eλxF(x) = 1-e^{-\lambda x}.

Remark — Connection with ODEs

The exponential distribution is the same function that appears in the solution of the ODE y=λyy'=-\lambda y: radioactive decay. This is no coincidence: the survival probability P(X>t)=eλtP(X>t) = e^{-\lambda t} satisfies exactly that differential equation.

Exponential distribution for three values of λ\lambda: large λ\lambda means short waits (a curve that decays quickly, starting high), small λ\lambda long waits.

Topics: Distribuzioni probabilita
Concepts: Densita di probabilita · Distribuzione esponenziale · Funzione di ripartizione
Skills: Interpretare grafico · Modellizzare

Nata come strumento per trattare gli errori di misura in astronomia, nell’Ottocento la curva normale invase le scienze umane e biologiche. A questa trasformazione sono legati due nomi: il belga Adolphe Quetelet e l’inglese Francis Galton.

Quetelet e “l’uomo medio”

Attorno al 1835 Adolphe Quetelet ebbe un’idea audace: applicare i metodi della statistica astronomica all’essere umano. Raccogliendo dati su statura, peso e altre misure di grandi popolazioni, osservò che questi si distribuivano proprio secondo la campana di Gauss. Ne trasse il concetto di homme moyen, “l’uomo medio”: un individuo fittizio le cui caratteristiche coincidono con la media μ\mu della popolazione, attorno a cui i singoli si disperdono con una certa deviazione standard σ\sigma (Stigler). Fu Quetelet a introdurre anche l’indice di massa corporea (il rapporto peso/statura2\text{peso}/\text{statura}^2), ancora oggi noto come indice di Quetelet.

Galton e la regressione

Alla fine del secolo Francis Galton, cugino di Charles Darwin, studiò l’ereditarietà misurando la statura di genitori e figli. Notò un fenomeno curioso: i figli di genitori molto alti tendevano in media a essere più bassi dei genitori, e i figli di genitori molto bassi più alti — un ritorno verso la media della popolazione. Chiamò questo effetto regression toward the mean (regressione verso la media), termine che è all’origine dell’odierna analisi di regressione (Stigler; Boyer). Per visualizzare come tante piccole cause casuali generino la campana, Galton costruì la quincunx (o “tavola di Galton”): una tavola inclinata su cui palline, rimbalzando su file di chiodi, si accumulano in basso disegnando spontaneamente una distribuzione normale.

Collegamenti

Argomenti: Distribuzioni probabilita
Concetti: Deviazione standard · Distribuzione normale · Valore atteso
Persone: Adolphe Quetelet · Francis Galton

Born as a tool for handling measurement errors in astronomy, in the nineteenth century the normal curve invaded the human and biological sciences. Two names are tied to this transformation: the Belgian Adolphe Quetelet and the Englishman Francis Galton.

Quetelet and the “average man”

Around 1835 Adolphe Quetelet had a bold idea: to apply the methods of astronomical statistics to human beings. Collecting data on height, weight and other measurements of large populations, he observed that these were distributed exactly according to the Gaussian bell. From this he drew the concept of the homme moyen, the “average man”: a fictitious individual whose characteristics coincide with the mean μ\mu of the population, around which individuals scatter with a certain standard deviation σ\sigma (Stigler). It was also Quetelet who introduced the body mass index (the ratio weight/height2\text{weight}/\text{height}^2), still known today as the Quetelet index.

Galton and regression

At the end of the century Francis Galton, a cousin of Charles Darwin, studied heredity by measuring the height of parents and children. He noticed a curious phenomenon: the children of very tall parents tended on average to be shorter than their parents, and the children of very short parents taller — a return toward the population mean. He called this effect regression toward the mean, a term that is at the origin of today’s regression analysis (Stigler; Boyer). To visualise how many small random causes generate the bell, Galton built the quincunx (or “Galton board”): a tilted board on which balls, bouncing off rows of pins, pile up at the bottom, spontaneously tracing out a normal distribution.

Topics: Distribuzioni probabilita
Concepts: Distribuzione normale · Deviazione standard · Valore atteso
People: Adolphe Quetelet · Francis Galton