(Given the process $(B(t))t≥0$ of Brownian motion, define the random variables
$$Y=\int_0^{1}B(s)\,ds $$ $$X=B(1) $$
Determine the quantities $E(Y|X)$, $Var(Y−E(Y|X))$ and the conditioned density $f_{Y|X}$
I already compute mean and variance using Fubini's theorem $E(Y) = \int_0^{1}E(B(s))\,ds =0$ and $Var(Y)= E(Y^2)=\dfrac{1}{3}$
I don't know if it's help me, I have this formula aswell $E(Y|X) = E(Y)+Cov(Y,X) + Cov(X,X)^{-1} + (X-E(X))$
Thanks for your help,
As I can't edit my comment anymore,
Thanks for the hint but I don't catch why it helps me. My problem is to deal with the quantities $\int_0^{1}E(B(s))\,ds$|X). I tried to use the formula : $Cov(Y,X) = E[(Y(t)-E(X)(X-E(X))=E[Y(t)B(1)]$ for $t<1$ $B(1)= Y(t)+(B1-Y(t))$ then we have $B(1)Y(t) = Y(t)^2+Y(t)(B(1)-Y(t))$ then $E[B(1)Y(t)]= E[Y^2] + E[Y(t)]E[B(1)-Y(t)]$ as increments are independent we find that $E[B(1)Y(t)]= \dfrac{1}{3}$ Then if I do the same for $t>1$ I find $E[B(1)Y(t)] = 1$.
Hint: you can write $$ B(s) = sX + T(s) $$ where $T$ is a Brownian bridge.
you get $$ E\left[Y|X\right] = E\left[\int_0^1 sXds\right] + E\left[\int_0^1 T(s)ds\right] = \frac X2 $$because $T$ has a symetric law.
and then $$ var(Y - E[Y|X]) = var\left(\int_0^1 T(s) ds\right) $$