I have two vectors of probability distribution of the same length n for random variable X and Y. I want to built matrix of two-dimension distribution for X and Y with assumption of independence. P(X=i,Y=j)=P(X=i)*P(Y=j) I want to do this very fast for n=120 and big amount of different distribution of X and Y. Thanks. [[alternative HTML version deleted]]