0% found this document useful (0 votes)
6 views

ML_assignment 1

machine learning basic questions

Uploaded by

ayusssssh100
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views

ML_assignment 1

machine learning basic questions

Uploaded by

ayusssssh100
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

ML Assignment -1

1. Determine the probability of the following:


i) Drawing a Red Queen
ii) Drawing a King of Spades
iii) Drawing a Red Number Card

2. From a bag of red and blue balls, the probability of picking a red ball is x/2. Find “x”
if the probability of picking a blue ball is ⅔.

3. Find the expected value of X if the probability density function is defined as:

3 2
𝑓(𝑥) = { 2 𝑥 , 0 ≤ 𝑥 ≤ 2

0, 𝑜𝑡ℎ𝑒𝑟𝑤𝑖𝑠𝑒

4. Let X be a continuous random variable whose probability density function is:


𝑥3
𝑓(𝑥) =
4
For an interval 0<x<c. What is the value of the constant c that makes f(x) a valid
probability density function?

5. Consider the following dataset:

Using Naive Bayes’ theorem find out the class for the new instance:
Give Birth: yes; Can fly=no; Live in water=yes; Have legs=no.
6. In a Covid test of 1000 patients, there were 45 positive tests, of which 30 patients had
covid and 15 were falsely tested positive. Of the 955 negative tests, there were 5 that
were incorrect, these patients had covid but were tested negatively. Draw the confusion
matrix and calculate the accuracy, precision, recall.

7. A card is drawn from a well shuffled pack of 52 cards. Find the probability of:

(i) ‘2’ of spades

(ii) a jack

(iii) a king of red colour

(iv) a card of diamond

(v) a king or a queen

(vi) a non-face card

(vii) a black face card

(viii) a black card

(ix) a non-ace

(x) non-face card of black colour

(xi) neither a spade nor a jack

(xii) neither a heart nor a red king

NOTE :
• The assignment should be handwritten.
• Use A4 size paper for writing the assignment and submit using a file.
• Provide a cover page with details (your name, roll number etc.).
• The sequence for writing the assignment should be strictly followed as given list of
questions above.
• The presentation of your assignment will also hold the marks (20% marks).
• Maintain the deadline strictly.

You might also like