$Z$ is a function of two dependent random variables, e.g. $X \cdot Y$. Here it is shown that
$$var(Z) = var(XY)=(cov(X^2,Y^2)+E[X^2]E[Y^2])-(cov(X,Y)+E[X]E[Y])^2$$
I am interested in a metric that tells me what percentage of the the variance of $Z$ is caused by $X$ and how much is caused by $Y$, e.g. 68% by $X$ and 32% by $Y$. An intuitive approach like
$$var(X)/var(Z)$$
does not make sense because it can be the case that $var(X)>var(Z)$. Is there a standard solution for this problem? I assume that for $Z = X+Y$ it is similar to the question of a portfolio of stocks and someone wants to know in which way the stocks contribute to the variance of the portfolio. I could not find anything and would be interested in a general formulation for arbitrary functions ($X \cdot Y$,$X-Y$,$X/Y$ etc).