1. Learn
  2. /
  3. Courses
  4. /
  5. Mixture Models in R

Exercise

Binary images

An easy way to understand how distribution that relates to a data frame is to generate samples.

The size of the images are 2 by 2 pixels and the probability of being 1 for this cluster are 0.8, 0.8, 0.2 and 0.9 for the corresponding pixel.

Instructions

100 XP
  • Generate 100 binary images from cluster one. Start by simulating each of the four pixels as a binary sample.
  • Have a look at the generated binary images.