# How to create a complex Gaussian random noise with a specific covariance matrix

Data Science Asked by gurluk on November 27, 2020

I am trying to generate a complex Gaussian white noise, with zero mean and the covariance matrix of them is going to be a specific matrix which is assumed to be given.

Assume i to be a point on the grid of x axis, where there are N points on the axis. The problem is to generate a complex valued random noise at each point (let’s call the random value at the point i as $$y_i$$), which obeys Gaussian distribution and has a covariance matrix of,

$$E((y_i)(y_j^*)) = c_{ij}$$

where $$c_{ij}$$ is a given diagonal NxN matrix. * is complex conjugate, E represents the expectation value.

I am trying to generate this on Python.

Might be a bit late, but if you're still looking for an answer, here it is. You can use np.random.multivariate_normal. You need to provide the said covariance matrix as an argument to the function. You can find the documentation here.

Answered by learner on November 27, 2020

## Related Questions

### How to fix the index value that I use for X_test and y_test?

1  Asked on July 16, 2021 by as-if

### Training with different datasets for the same better VAE model yields poor results

0  Asked on July 15, 2021 by guo-ray

### Logistic Regression optimal threshold is a negative value

1  Asked on July 15, 2021 by user872009

### Contextual Object Detection

0  Asked on July 15, 2021 by static416

### MLP sequential fitting

1  Asked on July 15, 2021 by sidhom-slim

### Does the abstraction of a class affects the performance of neural networks?

1  Asked on July 14, 2021 by nontawat-wutticome

### Most useful clustering algorithm for NER / document matrix

0  Asked on July 14, 2021 by juan-luis-chulilla

### Count repeating “objects” in a picture

1  Asked on July 14, 2021

### Should augmentation also be performed on the validation set when the dataset is imbalanced?

2  Asked on July 14, 2021 by denisa-ionascu

### How to grid search feature selection and neural network hyperparameters in the same grid?

1  Asked on July 14, 2021 by kaylani2

### Text Mapping – Medicine Names

1  Asked on July 14, 2021 by kaushal-shah

### For a square matrix of data, I achieve $R^2=1$ for Linear Regression and $R^2=0$ for Lasso. What’s the intuition behind?

1  Asked on July 14, 2021

### Efficient Decision Tree Pruning

1  Asked on July 14, 2021

### Adding Features To Time Series Model LSTM

5  Asked on July 14, 2021 by rjay155

### Statistical test using Gmean to compare multiple algorithms on multiple datasets

1  Asked on July 14, 2021 by nafisa-anjum-samia

### Finding variable values to make equations behave like boolean gate

1  Asked on July 14, 2021 by anir

### Preparing ground truth labels for YOLO3

1  Asked on July 13, 2021 by alexandru-dinu

### AttributeError: ‘numpy.ndarray’ object has no attribute ‘img_to_array’

1  Asked on July 13, 2021 by divya-cs