bugl
bugl
HomeLearnPatternsSearch
HomeLearnPatternsSearch

Loading lesson path

Learn/AI/Statistics
AI•Statistics

Probability

Probability is about how

Likely something is to occur, or how likely something is true.

The mathematic probability is a

Number between

and . 0 indicates

Impossibility and 1 indicates

Certainty.

The Probability of an Event

The probability of an event is:

Formula

The number of ways the event can happen / The number of possible outcomes.
Probability = # of Ways / Outcomes

Tossing Coins

When tossing a coin, there are two possible outcomes:

Way

Probability

Heads

Formula

1/2 = 0.5

Tails

Formula

1/2 = 0.5
P(A) - The Probability

The probability of an event

A is often written as P(A). When tossing two coins, there are 4 possible outcomes:

Event

P(a)

Formula

Heads + Heads
1/4 = 0.25
Tails + Tails
1/4 = 0.25
Heads + Tails
1/4 = 0.25
Tails + Heads
1/4 = 0.25

Throwing Dices

When throwing a dice, there are 6 possible outcomes:

Event

P(a)

Lands on 1

Formula

1/6 = 0.166666

Lands on 2

Formula

1/6 = 0.166666

Lands on 3

Formula

1/6 = 0.166666

Lands on 4

Formula

1/6 = 0.166666

Lands on 5

Formula

1/6 = 0.166666

Lands on 6

Formula

1/6 = 0.166666

The possibility of throwing 3 fours at the same time is

Formula

(1/6)

(Lands on 4 to the power of 3):

The possibility is:

let p = Math.pow(1/6, 3);

The possibility of throwing 3 likes at the same time is 6 times larger:

Formula

(lands on 1) + (Lands on 2) + ... + (Lands on 6)

The possibility is:

let p = Math.pow(1/6, 3) * 6;

6 Balls I have 6 balls in a bag: 3 reds, 2 are green, and 1 is blue. Blindfolded. What is the probability that I pick a green one?

Previous

Distribution