That's an unnecessarily tedious way to do it if you just want the variance of Y, but yeah, to find the expectation of that quadratic quantity in X, if we're given the PDF or PMF, we can easily find it using the Law of the Unconscious Statistician (LOTUS).How would you do it without the formula ? find E(y^2) and E(y) ? How do you even find E(y^2)
y = 2X + 3
y^2 = 4X^2 + 12X + 9
E(y^2) = E(4X^2 + 12X + 9) ?
I can demonstrate the integral/sum you'd need to set up if you provide the PDF or PMF.