We shall discuss an exam question of my Probability-3 course and see a proof as to why the given distance function is a metric over the space of random variables and a few related properties.
Published on: 14 June, 2026 | Author: Pragyan Pranay
probabilityanalysisky-fanmetric-spaces
Probability-3 course was a nightmare for me and I even
had to appear for backpaper for this course. This question
originally came in the end-semester paper for B.Stat 2nd
Year in session 2025-26. Yeah, this one was exceptionally
hard to be done in exam conditions, although with the right
tools, this isnβt very difficult, but producing the details
with this much perfection is still quite hard. Our
professor wonβt leave us if we wrote even a single
half-baked argument π«
Show that the infimum in the definition of d is
attained.
Show that d is a metric on T.
Let XβT and {Xnβ}nβ₯1β be a
sequence with XnββT for nβ₯1. Show
that
XnββpXβΊd(Xnβ,X)β0
as nββ.
Show that T is complete with respect to
metric d.
π‘Solution
We will solve the problem part by part. Also, for the
entire solution, define
DX,Yβ:={Ο΅β₯0:P(β£XβYβ£>Ο΅)β€Ο΅}.
Part A
DX,Yβ is non-empty since
1βDX,Yβ and DX,Yβ is bounded below by 0 by
definition. Thus, the infimum exists. Let
Ξ³=infDX,Yβ, which means there exists a real
sequence anββΞ³ where anββDX,Yβ. Thus,
P(β£XβYβ£>anβ)β€anβforΒ allΒ nβ₯1.
Write P(β£XβYβ£>anβ)=1βP(β£XβYβ£β€anβ) and let Z=β£XβYβ£. Then we get
1βanββ€P(β£XβYβ£β€anβ)=FZβ(anβ)
Taking nββ, then by the right continuity of
FZβ, we get
Finally, this means
0βDX,YββΊP(XβY=0)=1βΊX=Ya.s. Recall that 0β€t for all tβDX,Yβ,
and now we have shown 0βDX,Yβ, which means
d(X,Y)=infDX,Yβ=0 as desired.
where the equality of probabilities follows from the
simple fact that β£rβ£=β£βrβ£ for all rβR.
This gives infDX,Yβ=infDY,XββΉd(X,Y)=d(Y,X) and done.
We shall now prove the triangle inequality. This is
one is quite tricky. For X,Y,ZβT, we shall
prove
which ultimately shows
a+bβDX,YββΉc=d(X,Y)=infDX,Yββ€a+b
completing the proof to Part B. β
Part C
Assume XnββpX. Fix Ξ΅>0, we
now need to show that there exists NβN such
that d(Xnβ,X)=β£d(Xnβ,X)β0β£<Ξ΅ for
all n>N. Since XnββpX, for all
Ξ·>0 there exists N1ββN such that
To finish it off, this means
(infDXnβ,Xβ)β€Ξ΅/2 for all n>N1β,
which gives
d(Xnβ,X)β€2Ξ΅β<Ξ΅forΒ allΒ n>N1β
which proves nββlimβd(Xnβ,X)=0
as needed.
The other direction is quite easy as well, assume
nββlimβd(Xnβ,X)=0 and
define anβ:=d(Xnβ,X). By definition of
anβ, we know that P(β£XnββXβ£>anβ)β€anβ for
all nβN. Fix Ξ΅,Ξ·>0.
Since anβ>0 and anββ0, we can find
N1ββN such that anβ<Ξ΅ for
n>N1β. Moreover, we can also find
N2ββN such that anβ<Ξ· for n>N2β.
For n>max(N1β,N2β) we have
which proves that XnββpX. This completes
the proof to Part C. β
Part D
This one will use a few tools, specifically the
Cauchy Criteria for convergence in probability of
random variables. We shall now define what
cauchy in probability means and then prove the
theorem which will trivialize the problem.
Definition :(Cauchy in Probability)
We say a that a sequence of random variables
{Xnβ}nβ₯1β is Cauchy in Probability if
for all Ξ΅,Ξ·>0 there exists
NβN such that
P(β£XmββXnββ£>Ξ΅)<Ξ·
for all m,n>N.
Theorem :(Cauchy Criteria for Convergence in Probability)
For a sequence of real-valued random variables
{Xnβ}nβ₯1β
which proves that {Xnβ}nβ₯1β is cauchy
in probability as desired.
The other direction is much harder. Iβd produce the proof
as it is done by our Professor with some commentary as the
proof is quite involved. Assume that
{Xnβ}nβ₯1β is cauchy in probability.
Step 1 β Construct a rapidly Cauchy subsequence.
Since {Xnβ} is Cauchy in probability, for each jβN we can choose an index njβ (with n1β<n2β<β¦) such thatβr,sβ₯njβ,P(β£XrββXsββ£>2βj)<2βj.
In particular, for every j we have
P(β£Xnj+1βββXnjβββ£>2βj)<2βj.
Step 2 β Apply BorelβCantelli.
Because βj=1ββ2βj<β, the first BorelβCantelli lemma givesP(β£Xnj+1βββXnjβββ£>2βji.o.Β inΒ j)=0.
Returning back to the problem, let {Ynβ}nβ₯1β
be a sequence of random variables with YnββT
for all nβN which dβcauchy(that is
cauchy with the metric d). We will prove that
{Ynβ}nβ₯1β is _cauchy in probability. Define
am,nβ:=d(Ymβ,Ynβ). Fix Ξ΅,Ξ·>0,
then by definition there exists some
N1β,N2ββN such that
where the second inequality is by definition of am,nβ.
This shows that {Ynβ}nβ₯1β is cauchy in
probability. Invoking the cited theorem, the proof to
Part D is βcompleteβ. β