Search code examples
pythonnormal-distribution

T in multivariate distribution in python


I saw a code for generating numbers from multivariate distribution but could not understand what is ".T" here used for? I could not find it elsewhere I searched for.

  x, y = np.random.multivariate_normal(mean, cov, 5000).T

Solution

  • Here .T in numpy stands is for Transpose