3. QR codes: Start by reading the text under Figure 1. We will generally consider X and Y as random variables. For the highlighted pixel in the figure, the gray color X=25 and the true pixel value white, i.e. Y = 0. We assume that QR codes are made so that there are on average as many white as black pixels, which means that pỵ (0)=RY (1) = 1/2. In this situation, X is continuously distributed (0 ≤x≤ 100) and Y is discretely distributed, but we can still talk about the simultaneous distribution of X and Y We start by defining the conditional density

A First Course in Probability (10th Edition)
10th Edition
ISBN:9780134753119
Author:Sheldon Ross
Publisher:Sheldon Ross
Chapter1: Combinatorial Analysis
Section: Chapter Questions
Problem 1.1P: a. How many different 7-place license plates are possible if the first 2 places are for letters and...
icon
Related questions
Question

3a)

3. QR codes: Start by reading the text under Figure 1. We will generally consider X and Y as random
variables. For the highlighted pixel in the figure, the gray color X = 25 and the true pixel value white,
i.e. Y = 0. We assume that QR codes are made so that there are on average 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 talk about the simultaneous distribution of X and Y. We start by defining the conditional density
of X, given the value of Y:
ONO
fx|x(x | 0) =
fx|x (x | 1) =
4
100 (1
X
100.
4
3
100 (100) ²
DXO
3
(pixel actually white)
(pixel actually black)
Figure 1: QR code photographed in poor lighting, making it 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) is coded Y=0 for white, and Y = 1 for black.
P(Y=0 | X = x) =
(a) Make a plot of the marginal density fx(x) = Eyfxy(x1y)Py (y) for 0 ≤ x ≤ 100
Bayes' formula in this situation takes the form:
fxy(x0)Py(0)
fx (x)
(b) Use Bayes' formula to find the probability of white when x = 25 as in the figure.
Transcribed Image Text:3. QR codes: Start by reading the text under Figure 1. We will generally consider X and Y as random variables. For the highlighted pixel in the figure, the gray color X = 25 and the true pixel value white, i.e. Y = 0. We assume that QR codes are made so that there are on average 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 talk about the simultaneous distribution of X and Y. We start by defining the conditional density of X, given the value of Y: ONO fx|x(x | 0) = fx|x (x | 1) = 4 100 (1 X 100. 4 3 100 (100) ² DXO 3 (pixel actually white) (pixel actually black) Figure 1: QR code photographed in poor lighting, making it 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) is coded Y=0 for white, and Y = 1 for black. P(Y=0 | X = x) = (a) Make a plot of the marginal density fx(x) = Eyfxy(x1y)Py (y) for 0 ≤ x ≤ 100 Bayes' formula in this situation takes the form: fxy(x0)Py(0) fx (x) (b) Use Bayes' formula to find the probability of white when x = 25 as in the figure.
Expert Solution
steps

Step by step

Solved in 3 steps with 3 images

Blurred answer
Follow-up Questions
Read through expert solutions to related follow-up questions below.
Follow-up Question

help with question b)

Solution
Bartleby Expert
SEE SOLUTION