I want to calculate Cumulative distribution function of Y, when Y is a Random Variable (Y=min{X,X'}) and X is a piecewise defined function Random variable. CDF of X is something like this code:
if (0<x<A) then FX = B(x)
else if (A<x<A^2) then FX = D(x)
I know that FY=1-((1-FX)^2). But it doesn't work when X is a piecewise defined function. How can I calculate FY?