CMI M.Sc. and Ph.D. Computer Science Short Notes
Quick revision short notes for CMI M.Sc. and Ph.D. Computer Science. 54+ chapters of concise, exam-focused content. First chapter FREE!
Chapters
Subjects
First Chapter
Quick Revision
π Basic Probability
Basic Probability
This chapter establishes the fundamental concepts of probability theory, introducing sample spaces, events, and their associated probabilities. A solid grasp of these foundational principles is essential for tackling advanced topics in statistical modeling and machine learning, making this material critically important for the CMI examination.
---
Chapter Contents
|
| Topic |
|---|-------| | 1 | Sample Spaces and Events | | 2 | Finite Probability Spaces |---
We begin with Sample Spaces and Events.
Part 1: Sample Spaces and Events
This section covers the fundamental concepts of sample spaces and events, which form the bedrock of probability theory. It focuses on defining the set of all possible outcomes and subsets representing specific occurrences.
---
Formula Sheet
---
Key Definitions
---
Must Remember
---
Common Mistakes
---
Previous Year Questions
type="MSQ" question="[2016] Varsha lives alone and dislikes cooking, so she goes out for dinner every evening. She has two favourite restaurants, Dosa Paradise and Kababs Unlimited, which she travels by local train. The train to Dosa Paradise runs every minutes, at , , , , and minutes past the hour. The train to Kababs Unlimited runs every minutes, at , and minutes past the hour. She reaches the station at a random time between pm and pm and chooses between the two restaurants based on the next available train. What is the probability that she ends up in Kababs Unlimited?" options=["","","",""] answer="" hint="Consider the arrival time as a continuous random variable over the 60-minute interval. For each point in time, determine which restaurant's train departs sooner." solution="Let the arrival time be uniformly distributed in the interval minutes past 7:00 pm. The total duration is minutes.
Train departure times (minutes past 7:00 pm) within or immediately after the arrival interval:
* Dosa Paradise (D):
* Kababs Unlimited (K): (the next K train after 68 would be 88, which is past 8:15pm).
Varsha chooses Kababs Unlimited if the next available Kababs train departs at or before the next available Dosa train. Let be the departure time of the next Dosa train , and be the departure time of the next Kababs train . We want to find the length of such that .
We analyze the intervals for :
Total length of intervals where Varsha goes to Kababs Unlimited = minutes.
Total length of arrival interval = minutes.
The probability is .
"
---
Quick Practice
type="MCQ" question="A fair six-sided die is rolled. Which of the following defines the event 'rolling an even number or a number greater than 4'?" options=["","","",""] answer="" hint="Identify the sample space, then list outcomes for each individual condition ('even number', 'greater than 4'), and finally combine them using the 'or' operator (union)." solution="The sample space for a six-sided die roll is .
Let be the event 'rolling an even number'. .
Let be the event 'rolling a number greater than 4'. .
The event 'rolling an even number or a number greater than 4' is the union of and : ."
type="MCQ" question="Consider an experiment where two fair coins are tossed. Let be the event 'at least one head' and be the event 'exactly two tails'. Are and mutually exclusive?" options=["Yes, because ","No, because ","Yes, because ","No, because "] answer="Yes, because " hint="First, define the sample space. Then list the outcomes for and . Check their intersection." solution="The sample space for tossing two fair coins is .
Event : 'at least one head' = .
Event : 'exactly two tails' = .
The intersection of and is .
Since their intersection is the empty set, and are mutually exclusive. This implies ."
---
Remember
> A clear and precise definition of the sample space and events is the most critical first step for solving any probability problem.
See full notes for detailed explanations and worked examples!
---
---
Part 2: Finite Probability Spaces
This section provides a concise overview of finite probability spaces, focusing on essential formulas, definitions, and problem-solving techniques. It's designed for rapid recall of fundamental concepts for the CMI exam.
---
Formula Sheet
|
| Concept | Formula | When to Use |
|---|---------------------------------------|-------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------|
| 1 | Probability Space | | Foundation of probability theory: sample space, event space, probability measure. |
| 2 | Probability Measure Axioms | 1. for all
2.
3. if are mutually exclusive | Defines a valid probability function. For finite spaces, finite additivity is sufficient. |
| 3 | Equally Likely Outcomes | | When all outcomes in a finite sample space are equally likely. |
| 4 | Complement Rule | | To find the probability of an event not occurring. |
| 5 | Union of Two Events | | To find the probability of at least one of two events occurring. |
| 6 | Union of Mutually Exclusive Events | | If and cannot occur simultaneously (). |
| 7 | Conditional Probability | , for | To find the probability of event given that event has occurred. |
| 8 | Multiplication Rule | | To find the probability of both and occurring. |
| 9 | Event Independence | | If the occurrence of does not affect the probability of . |
| 10 | Permutations | | Number of ways to arrange items from distinct items (order matters). |
| 11 | Combinations | | Number of ways to choose items from distinct items (order does not matter). |
| 12 | Inclusion-Exclusion (3 Events) | | For finding the probability of the union of three events. |
---
Key Definitions
---
Must Remember
---
Common Mistakes
---
Previous Year Questions
type="MCQ" question="[Year: 2022] The Telvio mobile service provider allows each customer to choose a part of their 10-digit mobile number when they get a new connection. The first two digits of the number are fixed by the company based on the customer region. The customer can choose the last four digits that they wish. The company chooses each of the remaining four digits uniformly at random and without replacement from the digits . Note that this means that the digits in positions 3, 4, 5 and 6 in a Telvio number are all different. What is the probability that, in the mobile number assigned to a new customer by Telvio, the digits in positions 3, 4, 5 and 6 appear in increasing order when read from left to right?" options=["","","",""] answer="" hint="Consider the total number of ways to choose and arrange 4 distinct digits vs. the number of ways to choose 4 distinct digits and arrange them in increasing order." solution="Let the four chosen digits be .
Total number of ways to choose 4 distinct digits from 10 and arrange them in specific positions (3, 4, 5, 6) is a permutation: . This is the size of our sample space .
For the digits to appear in increasing order, once 4 distinct digits are chosen, there is only one way to arrange them in increasing order. For example, if digits are chosen, only satisfies the increasing order condition.
The number of ways to choose 4 distinct digits from 10 is a combination: . This is the number of favorable outcomes .
The probability is .
Alternatively, for any set of 4 distinct digits, there are ways to arrange them. Only 1 of these ways is in increasing order. So the probability is ."
type="MCQ" question="[Year: 2021] In the chamber containing the Philosopher's stone, Harry sees a deck of cards, each with a distinct number from to . Harry removes two cards from the deck, one at a time. What is the probability that the two cards selected are such that the first card's number is exactly one more than the number on the second card?" options=["","","",""] answer="" hint="The order of drawing cards matters. List all possible pairs and then count favorable pairs." solution="The cards are drawn one at a time, so the order matters.
Total number of ways to remove two cards one at a time from 5 distinct cards is a permutation: . This is the size of our sample space .
We are looking for pairs where is the first card and is the second card, such that .
The favorable pairs are:
(2, 1)
(3, 2)
(4, 3)
(5, 4)
There are 4 such favorable outcomes .
The probability is ."
type="MCQ" question="[Year: 2020] A fair coin is repeatedly tossed. Each time a head appears, rupee is added to the first bag. Each time a tail appears, rupees are put in the second bag. What is the probability that both the bags have the same amount of money after coin tosses?" options=["","","",""] answer="" hint="Let H be the number of heads and T be the number of tails. Set up an equation for the amounts in the bags." solution="Let be the number of heads and be the number of tails after 6 tosses.
We know .
Amount in the first bag = rupees.
Amount in the second bag = rupees.
We want the amounts to be equal, so .
Substitute into the equation: .
If , then .
So, we need exactly 4 heads and 2 tails in 6 tosses.
The number of ways to get 4 heads in 6 tosses is given by the binomial coefficient .
The total number of possible outcomes for 6 coin tosses is .
The probability is ."
type="MCQ" question="[Year: 2018] Let be the number of strings consisting of X's and Y's such that no initial segment of has more Y's than X's. Now consider the following problem. A person stands in the middle of a swimming pool holding a bag of red and blue balls. He draws a ball out one at a time and discards it. If he draws a blue ball, he takes one step back, if he draws a red ball, he moves one step forward. What is the probability that the person remains dry?" options=["","","",""] answer="" hint="The problem describes a path where 'red' is forward and 'blue' is backward. The condition 'remains dry' means the path never goes below the starting point. This is directly related to Catalan numbers." solution="The person draws red balls and blue balls, for a total of draws.
Let drawing a red ball (R) be a step forward (+1) and drawing a blue ball (B) be a step backward (-1).
The person starts at position 0. To 'remain dry' means the person's position never goes below 0. This is a classic problem related to Dyck paths.
The total number of ways to arrange red balls and blue balls is , which is the total size of our sample space .
The number of paths from to that do not go below the x-axis (i.e., never having more blue balls than red balls in any initial segment) is given by the -th Catalan number, .
The problem statement defines as 'the number of strings consisting of X's and Y's such that no initial segment of has more Y's than X's'. If X corresponds to a step forward (Red) and Y to a step backward (Blue), then is exactly the number of favorable outcomes where the person remains dry.
Therefore, the probability is ."
type="MCQ" question="[Year: 2017] An FM radio channel has a repository of songs. Each day, the channel plays distinct songs that are chosen randomly from the repository. Mary decides to tune in to the radio channel on the weekend after her exams. What is the probability that no song gets repeated during these days?" options=["","","",""] answer="" hint="Calculate the total possible song selections over two days, and then the number of selections where no song is repeated." solution="On Day 1, the channel chooses 3 distinct songs from 10. The number of ways is .
On Day 2, the channel also chooses 3 distinct songs from 10. The number of ways is .
The total number of ways the channel can play songs over two days (allowing repetition between days) is . This is our sample space .
For no song to be repeated during these 2 days, the 3 songs chosen on Day 2 must be distinct from the 3 songs chosen on Day 1.
Number of ways to choose 3 songs on Day 1: .
After Day 1, 3 songs have been played. So, for Day 2, there are songs remaining in the repository from which to choose.
Number of ways to choose 3 distinct songs from the remaining 7 songs for Day 2: .
The number of favorable outcomes (no song repeated) is . This is .
The probability is .
This expression matches option 3: ."
---
Quick Practice
---
Remember
> Master the art of defining the sample space and identifying favorable outcomes for accurate probability calculations.
See full notes for detailed explanations and worked examples!
---
Chapter Summary
* Sample Space (): The set of all possible outcomes of a random experiment. Outcomes must be mutually exclusive and exhaustive.
* Events (): Any subset of the sample space . The power set forms the set of all possible events for a finite sample space.
* Axioms of Probability: For any event , . . For mutually exclusive events , . For finite spaces, this simplifies to finite additivity.
* Finite Probability Space: Defined by , where is a finite set, is the power set of , and is a probability measure.
* Equally Likely Outcomes: If all outcomes in a finite sample space are equally likely, then the probability of an event is given by .
* Basic Probability Rules:
*
*
* Inclusion-Exclusion Principle: For any two events and , .
---
Chapter Review Questions
type="MCQ" question="Two fair six-sided dice are rolled. What is the probability that the sum of the numbers shown on the dice is 7?" options=["1/12","1/6","1/9","5/36"] answer="1/6" hint="Enumerate all possible outcomes for the sum of 7 and count the total possible outcomes." solution="The total number of possible outcomes when rolling two fair dice is . The outcomes where the sum is 7 are: (1,6), (2,5), (3,4), (4,3), (5,2), (6,1). There are 6 such outcomes. Thus, the probability is ."
type="NAT" question="In a survey of 200 students, 120 take Mathematics, 90 take Physics, and 40 take both. How many students take neither Mathematics nor Physics?" answer="30" hint="Use the Inclusion-Exclusion Principle to find the number of students taking at least one subject." solution="Let be the event that a student takes Mathematics and be the event that a student takes Physics.
We are given:
Using the Inclusion-Exclusion Principle for counts:
The number of students who take at least one subject is 170.
The total number of students surveyed is 200.
The number of students who take neither subject is:
."
type="NAT" question="A fair coin is tossed 5 times. What is the probability of observing at least one head? Express your answer as a decimal rounded to four decimal places." answer="0.9688" hint="Consider the complement event: 'no heads'." solution="The total number of possible outcomes when tossing a fair coin 5 times is .
The event 'at least one head' is the complement of the event 'no heads' (i.e., all tails).
There is only 1 outcome where no heads appear (TTTTT).
So, .
Therefore, .
As a decimal, . Rounded to four decimal places, this is 0.9688."
---
What's Next?
... content continues
All Short Notes Chapters
Probability Theory
Logic and Boolean Algebra
Calculus
Graph Theory
Linear Algebra
Discrete Mathematics
Formal Languages and Automata Theory
Algorithms and Data Structures
Why Use Short Notes?
Quick Revision
Cover entire syllabus in less time
Exam Focused
Only important points and formulas
Mobile Friendly
Study on the go, anywhere
Frequently Asked Questions
What are short notes?
Short notes are condensed, exam-focused summaries covering key concepts, formulas, and important points - perfect for quick revision before exams.
Is the first chapter free?
Yes! The first chapter's short notes are completely FREE with full content. Try before upgrading.
How are short notes different from study notes?
Short notes are concise summaries for quick revision, while study notes provide detailed explanations with examples and practice problems.
Can I use short notes for last-minute revision?
Absolutely! Short notes are specifically designed for quick revision before exams, covering all key points in minimal time.
More CMIM.Sc. and Ph.D. Computer Science Resources
Why Choose MastersUp?
AI-Powered Plans
Personalized study schedules based on your exam date and learning pace
15,000+ Questions
Verified questions with detailed solutions from past papers
Smart Analytics
Track your progress with subject-wise performance insights
Bookmark & Revise
Save important questions for quick revision before exams
No credit card required β’ Free forever for basic features