DEV Community

Cover image for "Day 60 of My Learning Journey: Setting Sail into Data Excellence! Today's Focus: Maths for Data Analysis (Probability - 6)
Nitin-bhatt46
Nitin-bhatt46

Posted on

1

"Day 60 of My Learning Journey: Setting Sail into Data Excellence! Today's Focus: Maths for Data Analysis (Probability - 6)

SUMMARY OF PROBABILITY THEORY

PROBABILITY - 6

Probability theory :-

What is probability ?
Numerical representation of likelihood events.

Numeric values between 0 to 1.
More towards 1 the more likelihood ( occurrence )
Event means which is an outcome of a random experiment.

Probability of event = no.of occurrence ( event ) / no.of occurrence ( sample )

What is a sample ?
It is a total outcome possibility.

Example :-

When we toss, what is the probability of getting head ?

Event is Head. { how many time we can get head in a single toss } = 1
Sample means what we can get from the experiment is { Head , Tail } = 2 outcomes

Probability of getting Head is = 1 / 2 = 0.5

ODDs RATIO :-

OR = PROBABILITY / 1- PROBABILITY

Probability / Probability against the event.

EXAMPLE :-

Getting a head probability is 0.5 ?

The probability of getting odd = 0.5 / 1 - 0.5 = 1

Type of events :-

Independent / dependent.

Mutually exclusive :- cannot be done together.

Type of probability :-

Joint probability :-

A= Getting a head
B = Getting an even number.

P ( A U B) = P(A) * P(B)

Conditional probability :-

A= Getting a even number
B = Getting a number greater than 4..

P ( A | B) = P(A ⋂ B) / P(B) = 1 / 6 / 2 / 6 = 1/2

P ( A | B) = what is the probability of A happening when B already happened.

Bayes Theorem :-

It works on conditional probability .

P ( A | B) = P(A) * P(B | A) / P(B)

🙏 Thank you all for your time and support! 🙏
Don't forget to catch me daily for the latest updates on my programming journey! Let's continue to learn, grow, and inspire together! 💻✨

Warp.dev image

The best coding agent. Backed by benchmarks.

Warp outperforms every other coding agent on the market, and gives you full control over which model you use. Get started now for free, or upgrade and unlock 2.5x AI credits on Warp's paid plans.

Download Warp

Top comments (0)

Warp.dev image

Warp is the highest-rated coding agent—proven by benchmarks.

Warp outperforms every other coding agent on the market, and gives you full control over which model you use. Get started now for free, or upgrade and unlock 2.5x AI credits on Warp's paid plans.

Download Warp

Frontend Challenge: Office Edition sponsored by Axero (ends July 27, $3k in prizes)

For the first time ever, we’re offering cash prizes for a Frontend Challenge thanks to Axero. This challenge features our beloved "CSS Art" prompt as well as a brand new prompt: "Holistic Webdev"!

Check out the challenge

DEV is bringing live events to the community. Dismiss if you're not interested. ❤️