A QR code photographed in poor lighting, so that it can be difficult to distinguish black and white pixels. The gray color (X) in each pixel is therefore coded on a scale from 0 (white) to 100 (black). The true pixel value (without shadow) the code is Y = 0 for white, and Y = 1 for black. We treat X and Y as random variables. For the highlighted pixel in the figure is the gray color X = 20 and the true pixel value is white, i.e. Y = 0. We assume that QR codes are designed so that, on average, there are as many white as black pixels, which means that pY (0) = pY (1) = 1/2. In this situation, X is continuously distributed (0 ≤ X ≤ 100) and Y is discretely distributed, but we can still think about th
A QR code photographed in poor lighting, so that it can be difficult to distinguish black and white pixels. The gray color (X) in each pixel is therefore coded on a scale from 0 (white) to 100 (black). The true pixel value (without shadow) the code is Y = 0 for white, and Y = 1 for black. We treat X and Y as random variables. For the highlighted pixel in the figure is the gray color X = 20 and the true pixel value is white, i.e. Y = 0. We assume that QR codes are designed so that, on average, there are as many white as black pixels, which means that pY (0) = pY (1) = 1/2. In this situation, X is continuously distributed (0 ≤ X ≤ 100) and Y is discretely distributed, but we can still think about the simultaneous distribution of X and Y. We start by defining the conditional density of X, given the value of Y :
fX|Y(x|0) = "Pixel is really white"
fX|Y(x|1) =" Pixel is really balck "
Use Bayes formula as given in the picture and find the probability for x = 20 like in the picture.
Step by step
Solved in 2 steps