In-Class Exercise: Instructions
In-Class Exercise: Instructions
Instructions
• Don’t look at the solution yet! This is for your benefit.
• This exercise must be submitted within 48 hours of the lecture in which it was given.
• As long as you do the exercise on time, you get full credit—your performance does not
matter.
• Without looking at the solution, take 5 minutes to try to solve the exercise.
• Pre-assessment: Write down how correct you think your answer is, from 0 to 100%.
• Post-assessment: Now, study the solution and give yourself a “grade” from 0 to 100%.
• Submit your work on the course website, including the pre- and post- assessments.
Exercise
Show that if p(θ) and q(θ) are both p.d.f.s. and
p(θ) ∝ q(θ)
then
p(θ) = q(θ)
for all θ.
1
2
Solution
The general definition of proportionality is that two functions f (x) and g(x) are proportional if there exist constants a, b which
are not both equal to 0 (i.e., either a is nonzero, or b is nonzero, or both of them are nonzero) such that
af (x) = bg(x)
for all x. Applying this to the case of p and q above, there are some a, b, not both zero, such that
ap(θ) = bq(θ) (0.1)
for all θ, thus
Z Z Z Z
a=a p(θ)dθ = ap(θ)dθ = bq(θ)dθ = b q(θ)dθ = b.
Therefore, a = b, so both a and b are nonzero, and cancelling a with b in Equation 0.1 shows that p(θ) = q(θ) for all θ.
Note: When we are dealing with p.d.f.s or p.m.f.s, both a and b must be nonzero, so the general definition is equivalent to:
f (x) and g(x) are proportional if there exists c such that
f (x) = cg(x)
for all x.