Let there be two random variables $X_1$ and $X_2$. With probability $\gamma$, they are perfectly correlated and each distributed uniformly on the interval $[0,1]$. With probability $1-\gamma$, they are independent and each distributed uniformly on the interval $[0,1]$.
What is the joint density function? i.e. $f(x_1,x_2)$?
What is the distribution function? i.e. $Prob(X_1 \leq x_1, X_2 \leq x_2):=F(x_1,x_2)$?
What is the conditional distribution function? i.e. $Prob(X_1 \leq x_1|x_2):=F(x_1|x_2)$?
For 1), I tried something like \begin{align} f(x,y)=\begin{cases} 1 &\text{ if } x=y \\ 1-\gamma &\text{ if } x\neq y \end{cases} \end{align}
However, it does not seems right. Because when I do the integration (let $A=\{(a,b)\in [0,1]^2:a=b \}$)
\begin{align} &\int\int_{(x,y)\in [0,1]^2}f(x,y)dxdy\\ =& \int\int_{(x,y)\in [0,1]^2 \setminus A}f(x,y)dxdy + \int\int_{(x,y)\in A }f(x,y)dxdy \\ =& \int\int_{(x,y)\in [0,1]^2 \setminus A}(1- \gamma) dxdy + \int\int_{(x,y)\in A }1 dxdy \\ \end{align}
where $\int\int_{(x,y)\in [0,1]^2 \setminus A} (1- \gamma) dxdy =(1- \gamma)$ ? and $\int\int_{(x,y)\in A }1 dxdy =0$?
If it is true, it does not add up to 1... I don't know where it goes wrong....
Thank you in advance!!!