NEOCODE

๐Ÿ”น Introduction to Probability

Probability or chance is a common term used in everyday life. For instance, we often say, "It may rain today", indicating uncertainty.

Probability is a quantitative measure of the likelihood or chance of occurrence of a particular event.

It is defined on a scale from 0 to 1, where:

๐Ÿ”น Random Experiment

An experiment is said to be a random experiment if:

๐Ÿ“Œ Examples of Random Experiments:

๐Ÿ”น Sample Space (S)

The sample space is the set of all possible outcomes of an experiment.

Experiment Sample Space (S)
Tossing a coin {H, T}
Rolling a die {1, 2, 3, 4, 5, 6}
Tossing two coins {HH, HT, TH, TT}
Drawing one card 52 possible outcomes

๐Ÿ”น Equally Likely Events

Events are equally likely if each outcome has the same chance of occurring.

Examples:
  • Tossing a coin: H or T
  • Rolling a die: Any of 1 to 6

๐Ÿ”น Classification of Events

Event Type Definition Example
Simple Event Single outcome Getting a '4' on a die
Compound Event Combination of simple events Getting an even number on a die
Mutually Exclusive Events that cannot occur simultaneously Getting H and T on a single coin toss
Not Mutually Exclusive Events that can occur together A = {2, 4, 6}, B = {4, 5, 6} โ‡’ A โˆฉ B โ‰  ฯ•
Independent Events Events where the outcome of one does not affect the other Tossing a coin twice
Dependent Events Events where the outcome of one affects the other Drawing cards without replacement
Exhaustive Events All possible outcomes of an experiment Tossing 2 coins โ‡’ 4 outcomes
Complementary Events The event not occurring is called the complement (denoted by Aฬ…) If P(A) = 0.7 โ‡’ P(Aฬ…) = 0.3

๐Ÿ”น Basic Probability Formula

P(E) = n(E) / n(S)

P(E): Probability of event E

n(E): Number of favorable outcomes

n(S): Total number of outcomes in sample space

Important Rules:

๐Ÿ”น Addition Theorem

If A and B are two events:

P(AโˆชB) = P(A) + P(B) โˆ’ P(AโˆฉB)

If A and B are mutually exclusive:

P(AโˆชB) = P(A) + P(B)

๐Ÿ”น Multiplication Theorem (Independent Events)

P(AโˆฉB) = P(A) โ‹… P(B)

๐Ÿ”น Complement Rule

P(Aฬ…) = 1 - P(A)

๐Ÿ”น Odds in Favor and Against

Odds in favor of event E: x : y โ†’ x/y

Odds against event E: y : x โ†’ y/x

๐Ÿ”น Conditional Probability

The probability of an event given that another event has already occurred:

P(AโˆฃB) = P(AโˆฉB) / P(B), if P(B) > 0
Example:

In a box with 3 red and 2 blue balls, one ball is drawn and not replaced.

What is the probability the second ball is blue given the first was red?

P(Bโ‚‚โˆฃRโ‚) = (3/5 โ‹… 2/4) รท 3/5 = 1/2

๐Ÿ”น Problems Based on Coins, Dice, and Cards

๐Ÿช™ Coins:
๐ŸŽฒ Dice:
๐Ÿƒ Cards: