DEV Community

Cover image for "Day 52 of My Learning Journey: Setting Sail into Data Excellence! ⛵️ Today's Focus: Maths for Data Analysis ( Per & Comb - 7)
Nitin-bhatt46
Nitin-bhatt46

Posted on

1

"Day 52 of My Learning Journey: Setting Sail into Data Excellence! ⛵️ Today's Focus: Maths for Data Analysis ( Per & Comb - 7)

PERMUTATION AND COMBINATION - 7

Combination ( Or Selection )

It has two concept

Selection of different objects
Selection of alike objects.

Combination ( or selection of different objects )
Q1. Consider 4 different balls
A,B,C,D
In how many ways can we select a ZERO ball ?

Sol. There are 1 way.

Q2. Consider 4 different balls
A,B,C,D
In how many ways can we select ONE ball ?

Sol. There are 4 ways.

Q3. Consider 4 different balls
A,B,C,D
In how many ways can we select TWO balls ?

Sol. There are 6 ways.
AB , BC, AC, AD, BD, CD

Q4. Consider 4 different balls
A,B,C,D
In how many ways can we select THREE balls ?

Sol. There are 4 ways.
ABC, BCD, ABD, ACD

Q5. Consider 4 different balls
A,B,C,D
In how many ways can we select FOUR balls ?

Sol. There are 1 way.
ABCD

SELECTION
HERE EQUATING (=) HELP US TO KNOW THE NO. OF WAYS.
0 = ALL ( 1 WAY )
1 = N-1
2 = N-2
3 = N-3

100 BALLS
IN HOW MANY WAYS WE CAN SELECT ZERO BALLS = 1 WAYS
IN HOW MANY WAYS WE CAN SELECT ONE ABLLS = 100 WAYS
IN HOW MANY WAYS WE CAN SELECT TWO BaLLS =

Now it is interesting

100 * 99 / 2! * 98!

While selection arrangement does not count.

In how many ways we can select ‘r’ balls = 100! / r! * ( 100-r )!

In general = n! / r! * ( n-r)! = nCr

Total number of ways of selection of ‘r’ different objects out of n- different objects.

🙏 Thank you all for your time and support! 🙏

API Trace View

How I Cut 22.3 Seconds Off an API Call with Sentry 🕒

Struggling with slow API calls? Dan Mindru walks through how he used Sentry's new Trace View feature to shave off 22.3 seconds from an API call.

Get a practical walkthrough of how to identify bottlenecks, split tasks into multiple parallel tasks, identify slow AI model calls, and more.

Read more →

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay