[SOLVED] Machine Learning-Exercise 3

30.00 $

Programming resource
Digital learning resource
Category:
✓ Practical programming resource
✓ Suitable for guided study and reference
✓ Tutor guidance available when needed

Description

Rate this product

This exercise is composed of 2 parts:

1.       probability theory part

2.       coding part

Probability Theory Questions

1.       Given a random sample {𝑥1, 𝑥2, … , 𝑥𝑛}, derive the maximum likelihood estimator 𝑝 of the Binomial distribution.

𝑛 𝑥(1 − 𝑝)𝑛−𝑥 𝐵(𝑥, 𝑝) = ( ) 𝑝

𝑥

2.       A student wants to know her chances to pass and fail an exam if she studies and if she doesn’t study. From last year’s results, she sees that 𝑃(𝑝𝑎𝑠𝑠) = 60%. She also found out that 𝑃(𝑠𝑡𝑢𝑑𝑖𝑒𝑑|𝑝𝑎𝑠𝑠) = 95%, 𝑃(𝑠𝑡𝑢𝑑𝑖𝑒𝑑|𝑓𝑎𝑖𝑙𝑒𝑑) = 60%. You can assume that every student either studied or didn’t study, and either passed or failed.

a.       What is her probability of passing the exam if she studies?

b.       What is her probability of passing if doesn’t study?

3.       Find 3 random variables 𝑋, 𝑌, 𝐶 such that:

a.       𝑋 ⊥ 𝑌 | 𝐶  (𝑋 and 𝑌 are independent given 𝐶).

b.       𝑋 and 𝑌 are not independent.

c.       𝑋, 𝑌 are integers such that 3 ≤ 𝑋, 𝑌 ≤ 9 and 𝐶 is binary.

d.       The following conditions hold:

i.          𝑃(1 ≤ 𝑋 ≤ 5) = 0.4

ii.        𝑃(1 ≤ 𝑌 ≤ 5) = 0.4

iii.      𝑃(𝐶 = 0) = 0.3

You need to specify the value of 𝑃(𝑋 = 𝑥, 𝑌 = 𝑦, 𝐶 = 𝑐). How many relevant values exist?

4.       The probability of Wolt arriving on time is 0.75.

a.       What is the probability of having 2 on-time meals in a week (7 days)?

b.       What is the probability of having at least 4 on-time meals in a week?

c.       A company of 100 employees recorded the number of on-time meals they had during a particular week and averaged their results. What do you expect the value of that average to be?

Coding exercise

Follow the instructions supplied for you in the MAP classifier Jupyter notebook.

Resource details

Understand the Task Before You Use the Resource

Review the requirements, identify the programming concepts involved, study the implementation and test your understanding with your own examples and modifications.