DEV Community

Cover image for "Day 47 of My Learning Journey: Setting Sail into Data Excellence! Today's Focus: Maths for Data Analysis ( P & C- 2)
Nitin-bhatt46
Nitin-bhatt46

Posted on

1

"Day 47 of My Learning Journey: Setting Sail into Data Excellence! Today's Focus: Maths for Data Analysis ( P & C- 2)

PERMUTATION AND COMBINATION - 2

Fundamental Principle of Counting. :-

  1. Fundamental Addition Principle of Counting. :-

If there are ‘m’ different ways of doing an even and ’n’ other different ways of doing same event ,m then the number of ways in which the event can be done is given by ’m+n’ different ways.

( Only one event is there )

Model - 1

There are two houses -house 1 and house 2, From house 1 to house 2 we have three ways to travel by train, with 4 ways to travel by bus and 2 ways by air.

Find total ways

The total ways to go from house 1 to house 2 = 3+4+2 = 9

In this case one event takes place only. ( only one event is there ).
This previous decision does not depend on others.

Model - 2

There are four boxes 1,2,3,& 4
Boxes has
1 - 5 different chocolate
2 - 4 different chocolate
3 - 3 different chocolate
4 - 2 different chocolate
IN how many ways a boy/girl can eat one chocolate.

Total possibility = 14
Because only one event takes place out of one event.

🙏 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! 💻✨

Image of Timescale

🚀 pgai Vectorizer: SQLAlchemy and LiteLLM Make Vector Search Simple

We built pgai Vectorizer to simplify embedding management for AI applications—without needing a separate database or complex infrastructure. Since launch, developers have created over 3,000 vectorizers on Timescale Cloud, with many more self-hosted.

Read full post →

Top comments (0)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

AWS GenAI Live!

GenAI LIVE! is a dynamic live-streamed show exploring how AWS and our partners are helping organizations unlock real value with generative AI.

Tune in to the full event

DEV is partnering to bring live events to the community. Join us or dismiss this billboard if you're not interested. ❤️