Spesso vogliamo aggiornare la probabilità di un evento alla luce di un’informazione già acquisita: è questo il ruolo della probabilità condizionata P(AB)P(A \mid B). Da essa nasce la formula del prodotto, che esprime la probabilità dell’intersezione di due eventi, e la nozione di correlazione, che misura se il verificarsi di un evento favorisce, sfavorisce o lascia invariato l’altro.

Often we want to update the probability of an event in the light of information already acquired: this is the role of conditional probability P(AB)P(A \mid B). From it arises the product formula, which expresses the probability of the intersection of two events, and the notion of correlation, which measures whether the occurrence of one event favours, works against, or leaves unchanged the other.

Quando riceviamo un’informazione su un esperimento, la probabilità che assegniamo a un evento può cambiare. La probabilità condizionata formalizza questo aggiornamento.

Definizione

La probabilità condizionata di AA dato BB, con P(B)>0P(B) > 0, è: P(AB)=P(AB)P(B).P(A \mid B) = \frac{P(A \cap B)}{P(B)}. È la probabilità di AA “sapendo che” BB si è verificato: riduce l’universo degli esiti a BB e misura la frazione di BB che sta anche in AA.

Collegamenti

Argomenti: Probabilita
Concetti: Probabilita · Probabilita condizionata
Metodi: Prob condizionata
Competenze: Calcolo probabilita

When we receive some information about an experiment, the probability we assign to an event can change. Conditional probability formalises this update.

Definition

The conditional probability of AA given BB, with P(B)>0P(B) > 0, is: P(AB)=P(AB)P(B).P(A \mid B) = \frac{P(A \cap B)}{P(B)}. It is the probability of AA “knowing that” BB has occurred: it reduces the universe of outcomes to BB and measures the fraction of BB that also lies in AA.

Topics: Probability
Concepts: Probability · Conditional probability
Methods: Conditional prob
Skills: Calculating probability

Riordinando la definizione di probabilità condizionata otteniamo un’espressione per la probabilità dell’intersezione di due eventi.

Proprietà — Formula del prodotto

P(AB)=P(B)P(AB)=P(A)P(BA).P(A \cap B) = P(B) \cdot P(A \mid B) = P(A) \cdot P(B \mid A).

La doppia scrittura mostra che possiamo scomporre l’intersezione partendo indifferentemente da AA o da BB: si sceglie quello per cui le probabilità sono più facili da calcolare.

Collegamenti

Argomenti: Probabilita
Concetti: Formula del prodotto · Probabilita condizionata
Competenze: Usare formule

Rearranging the definition of conditional probability we obtain an expression for the probability of the intersection of two events.

Property — Product formula

P(AB)=P(B)P(AB)=P(A)P(BA).P(A \cap B) = P(B) \cdot P(A \mid B) = P(A) \cdot P(B \mid A).

The two ways of writing it show that we can decompose the intersection starting equally from AA or from BB: we choose the one for which the probabilities are easier to compute.

Topics: Probability
Concepts: Product formula · Conditional probability
Skills: Using formulae

La correlazione misura quanto il verificarsi di un evento modifica la probabilità di un altro, confrontando la probabilità dell’intersezione con quella che avremmo se i due eventi fossero indipendenti.

Definizione — Correlazione

La correlazione tra due eventi AA e BB è la quantità: corr(A,B)=P(AB)P(A)P(B)1.\operatorname{corr}(A,B) = \frac{P(A \cap B)}{P(A) \cdot P(B)} - 1.

  • Se corr(A,B)=0\operatorname{corr}(A,B) = 0: gli eventi sono indipendenti (definizione equivalente a P(AB)=P(A)P(B)P(A \cap B) = P(A)P(B)).
  • Se corr(A,B)>0\operatorname{corr}(A,B) > 0: correlazione positiva. Il verificarsi di BB favorisce AA, cioè P(AB)>P(A)P(A \mid B) > P(A).
  • Se corr(A,B)<0\operatorname{corr}(A,B) < 0: correlazione negativa. Il verificarsi di BB sfavorisce AA, cioè P(AB)<P(A)P(A \mid B) < P(A).

Esempio — Eventi indipendenti vs correlati

Lancio due dadi equilibrati. Evento AA: “il primo dado mostra 6”. Evento BB: “il secondo dado mostra 6”. P(A)=P(B)=1/6P(A) = P(B) = 1/6, P(AB)=1/36P(A \cap B) = 1/36. Il prodotto P(A)P(B)=1/36P(A) \cdot P(B) = 1/36 coincide con P(AB)P(A \cap B): indipendenti. ✓

Evento CC: “la somma dei due dadi è 1212”. P(C)=1/36P(C) = 1/36 (solo l’esito (6,6)(6,6)). P(CA)P(C \mid A): sapendo che il primo è 66, il secondo deve essere 66: P(CA)=1/6P(C \mid A) = 1/6. Poiché 1/6>1/361/6 > 1/36, i due eventi AA e CC sono correlati positivamente.

Collegamenti

Argomenti: Probabilita
Concetti: Correlazione · Eventi indipendenti · Probabilita condizionata
Competenze: Calcolo probabilita

Correlation measures how much the occurrence of one event changes the probability of another, comparing the probability of the intersection with the one we would have if the two events were independent.

Definition — Correlation

The correlation between two events AA and BB is the quantity: corr(A,B)=P(AB)P(A)P(B)1.\operatorname{corr}(A,B) = \frac{P(A \cap B)}{P(A) \cdot P(B)} - 1.

  • If corr(A,B)=0\operatorname{corr}(A,B) = 0: the events are independent (a definition equivalent to P(AB)=P(A)P(B)P(A \cap B) = P(A)P(B)).
  • If corr(A,B)>0\operatorname{corr}(A,B) > 0: positive correlation. The occurrence of BB favours AA, that is, P(AB)>P(A)P(A \mid B) > P(A).
  • If corr(A,B)<0\operatorname{corr}(A,B) < 0: negative correlation. The occurrence of BB works against AA, that is, P(AB)<P(A)P(A \mid B) < P(A).

Example — Independent vs correlated events

I roll two fair dice. Event AA: “the first die shows 6”. Event BB: “the second die shows 6”. P(A)=P(B)=1/6P(A) = P(B) = 1/6, P(AB)=1/36P(A \cap B) = 1/36. The product P(A)P(B)=1/36P(A) \cdot P(B) = 1/36 coincides with P(AB)P(A \cap B): independent. ✓

Event CC: “the sum of the two dice is 1212”. P(C)=1/36P(C) = 1/36 (only the outcome (6,6)(6,6)). P(CA)P(C \mid A): knowing that the first is 66, the second must be 66: P(CA)=1/6P(C \mid A) = 1/6. Since 1/6>1/361/6 > 1/36, the two events AA and CC are positively correlated.

Topics: Probability
Concepts: Correlation · Independent events · Conditional probability
Skills: Calculating probability