DEV Community

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

Posted on

1

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

PERMUTATION AND COMBINATION - 6

Factorial ( NPR )

N! = NO. of ways in which n-different objects can be arranged linearly.

N! / (N-r)! = nPr = no. of ways in which an β€˜r’ object out of β€˜n’ object can be arranged linearly.

Permutation of n object taken in r = npr

Representation of npr = p(n,r) or nPr

Where ( r<= n )
Npr = n!

Numerical

Q1. 4 different letter A,B,W,P & four different boxes
In how many ways 4 letters can be arranged in the four boxes ?
Sol :- 4!
A has 4 possibilities
B has 3 possibilities

W has 2 possibilities
P has 1 possibilities

Q2. 10 different letter A,B,C,D,E,P,Q,R,S,T & four different boxes
In how many ways ARRANGEMENT of 10 different letters taken 4 letters at a time into 4 boxes ?
Sol :- npr will be used
10! / (10-4)!
= 10*9*8*7

πŸ™ Thank you all for your time and support! πŸ™
Don't forget to catch me daily at 6:30 Pm (Monday to Friday)for the latest updates on my programming journey! Let's continue to learn, grow, and inspire together! πŸ’»βœ¨

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