ML_assignment 1
ML_assignment 1
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, 𝑜𝑡ℎ𝑒𝑟𝑤𝑖𝑠𝑒
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:
(ii) a jack
(ix) a non-ace
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.