I want to generate noise in a DataFrame using multivariate_normal. For this i want to use the Covariance matrix of the original DataFrame
The original DataFrame have 4 columns and 6819 rows. So the Covariance matrix is 4x4.
For the moment I am generating the noise like that:
rng = np.random.default_rng()
noise = rng.multivariate_normal(mean = np.array([0,0,0,0], cov = df.cov(), size = df.shape)
#the noise have a dimens of (6819,4,4)
result = df + noise
where df is the original DataFrame.
But i don't know how to sum DataFrames of different dimensions