Starting from:

$30

Machine Learning-Exercise 3 Solved

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.

More products