Math For Ai
Math For Ai
Hence,
▪ Math is the study of patterns
▪ AI is a way to recognize patterns in order to take decisions
▪ AI needs Math to study and recognize patterns in order to take decisions
Can you identify any pattern in the image given below?
▪ A has 2 plants, B has 3 plants, C has 1 plant, D has 7 plants. How many
plants are there in total?
Applications of Statistics:
▪
Predict the performance of sports teams
▪ It can be used to find out specific things such as:
o the reading level of students
o the opinions of voters
o the average weight of a city’s resident
o Probability
Purpose: To understand the possibility of occurrence of an event.
Introduction to probability
Probability of an Event =
Number of Favorable Outcomes / Total Number of Possible Outcomes
We say that the probability of the coin landing H is ½ and the probability
of the coin landing T is ½ When we talk about probability, we use a few
terms that help us understand the chances for something to happen.
Probability can be expressed in the following ways:
▪ Certain events: An event will happen without a doubt
▪ Likely events: The probability of one event is higher than the probability of
another event
▪ Unlikely events: One event is less likely to happen than another event
▪ Impossible events: There's no chance of an event happening
▪ Equal Probability events: Chances of each event happening is same
The probability of an event occurring is somewhere between impossible and
certain.
• If an event is certain or sure to happen, it will have a probability of 1.
For example, the probability that you can pick a red ball from a bag containing only
blue balls is 0.
1-mark questions
1) What is the probability of an impossible event?
a) 1
b) 0
c) Insufficient data
d) Not defined
Ans: b) 0
2) What does probability mean?
a) The total number of possible outcomes in an event
b) The ratio of favourable outcomes to all outcomes
c) The chance of an event happening
d) How certain an event will occur
Ans. b)
3) What is the probability of getting an even number when a dice is thrown?
a) 1/6
b) ½
c) 1/3
d) ¼
Ans: b) ½
4) If we throw two dice simultaneously, what would be the probability that we get a
10 or 11?
a) 5/36
b) 5/12
c) 1/7
d) 1/3
Ans: a. 5/36
5) If P (E) = 0.30, then the probability of event E not occurring will be
a) 0.30
b) 0.70
2-mark question
1. A bag contains 5 red balls, 3 blue balls, and 2 green balls. A ball is drawn at
random. Calculate the probability of drawing a blue ball.
2. Two dice are rolled. Find the probability that the sum of the numbers on the dice is
7.
3. A box contains 4 red marbles, 5 blue marbles, and 3 green marbles. Two marbles
are drawn at random without replacement. Calculate the probability that both
marbles are blue.
7. The heights (in cm) of students in a class are recorded as follows: 160, 165, 170,
155, 175. Calculate the mean height.
8. The following data represents the number of siblings of students in a class: 0, 1, 2,
3, 4. Find the median number of siblings.
9. The scores of 10 students in a test are: 85, 78, 92, 70, 88, 75, 82, 90, 79, 84.
Calculate the mode of the scores.
10.The weights (in kg) of 8 students are: 55, 60, 65, 70, 55, 75, 60, 65. Find the range
of the weights.
11.The ages (in years) of 12 students are: 14, 15, 16, 14, 17, 15, 16, 15, 14, 17, 16, 15.
Calculate the standard deviation of the ages.
12.A survey of students' favourite sports yielded the following results: football 25%,
basketball 30%, soccer 20%, and tennis 25%. Calculate the probability that a
randomly selected student prefers basketball or tennis.
13.The number of cars passing through a toll booth in 10 minutes is recorded as
follows: 28, 32, 25, 30, 35, 27, 29, 31, 33, 26. Calculate the mean number of cars
passing through the toll booth per minute.
14.The time (in minutes) taken by 15 students to complete a test are: 40, 45, 50, 35,
55, 40, 42, 48, 38, 52, 46, 44, 50, 47, 41. Find the median time taken to complete
the test.
15.The scores (out of 50) of 20 students in a quiz are: 42, 35, 48, 40, 36, 45, 50, 38, 44,
47, 39, 42, 43, 41, 37, 49, 46, 34, 43, 40. Calculate the interquartile range (IQR) of
the scores.
16.The number of hours students spend on homework per week is recorded as follows:
5, 8, 6, 7, 9, 4, 10, 7, 6, 5. Calculate the variance of the number of hours spent on
homework per week.
1. A bag contains 3 red balls, 4 blue balls, and 5 green balls. If a ball is drawn at
random from the bag, what is the probability that it is not blue?
2. The heights (in cm) of students in a class are recorded as follows: 160, 165, 170,
155, 175. Calculate the median height.
3. A fair six-sided die is rolled. What is the probability of rolling a number less than
4?
4. The following data represents the ages (in years) of students in a class: 14, 15, 16,
14, 17, 15, 16, 15, 14, 17, 16, 15. Calculate the mode of the ages.
5. Two cards are drawn at random without replacement from a deck of 52 cards. What
is the probability that the first card drawn is a heart and the second card drawn is a
diamond?
Answers/ Solutions
2- mark question
1. A bag contains 5 red balls, 3 blue balls, and 2 green balls. A ball is drawn at
random. Calculate the probability of drawing a blue ball.
A: 3/10
2. Two dice are rolled. Find the probability that the sum of the numbers on the dice is
7.
A: 1/6
3. A box contains 4 red marbles, 5 blue marbles, and 3 green marbles. Two marbles are
drawn at random without replacement. Calculate the probability that both marbles
are blue.
A: 5/33
4. In a game, a spinner with 6 equal sections (numbered 1 to 6) is spun twice. Find the
probability that the sum of the numbers spun is less than 7.
A: 5/12
5. A card is drawn from a standard deck of 52 cards. Find the probability that the card
drawn is a face card (jack, queen, or king).
A: 12/52
6. The heights (in cm) of students in a class are recorded as follows: 160, 165, 170,
155, 175. Calculate the mean height.
A: 165
7. The following data represents the number of siblings of students in a class: 0, 1, 2, 3,
4. Find the median number of siblings.
A: 2
4 marks question
1. A bag contains 3 red balls, 4 blue balls, and 5 green balls. If a ball is drawn at
random from the bag, what is the probability that it is not blue?
A: the probability that a ball drawn is not blue is 2/3
2. The heights (in cm) of students in a class are recorded as follows: 160, 165, 170,
155, 175. Calculate the median height.
A: 165
3. A fair six-sided die is rolled. What is the probability of rolling a number less than
4?