Maximum Likelihood Parameter Estimation

716 views Asked by At

Given this dataset:

Color | Size

Red | Big

White | Small

Red | Big

Red | Small

White | Big

Red | Big

and the following bayesian network: Color --> Size, I am supposed to find the maximum likelihood parameters for the bayesian network. What will the estimators be? I am not sure how to proceed here, so any help will be greatly appreciated.

1

There are 1 answers

1
benavente On BEST ANSWER

Assuming a multinomial distribution for your Color and Size variables, you need to estimate the following parameters theta:

For color:

  • Theta_red: red probability.
  • Theta_white: white probability.

For size:

  • Theta_big|red: probability of being big given being red.
  • Theta_big|white: probability of being big given being white.
  • Theta_small|red: probability of being small given being red.
  • Theta_small|white: probability of being small given being white.

Which in the end are only 3, since

  • theta_white = 1 - theta_red,
  • theta_small|red = 1 - theta_big|red
  • theta_small|white = 1 - theta_big|white

The likelihood is the probability of the observed data given the model, in this case, for a dataset with n observations of color and size:

D = {(color_1, size_1), ..., (color_n, size_n)},

And parameters:

theta = {theta_red, theta_big|red, theta_big|white},

The likelihood is given by:

Likelihood

Since we are dealing with Bernoulli distributions here for the color and the size given the color, we can write it like so:

enter image description here

Where enter image description here is the count of observations that are red and small, and the other Ms are defined likewise.

Finally, by optimizing the likelihood function, you get the parameter estimators:

  • enter image description here
  • enter image description here
  • enter image description here