-1
$\begingroup$

What is the formula to calculate gaussian noise, given we have variance and mean? I am trying to search google for formula but i am unable to find any much relevant result. If for example i have mean as "11" and variance as "18". Then how i can use these two value for calculating/generating a noise signal from gauss distribution??which formula should i use,where i can put these values of variance and mean,and then i will get noise signal

$\endgroup$
2
$\begingroup$

In MATLAB, you can do it that way:

>> nsamples = 1e9;
mu = 11;
sigma_squared = 18;
x = mu + sqrt(sigma_squared)*randn(nsamples,1);
mean(x)
ans =

   10.9998
var(x)   
ans =

   17.9994

Edit: link https://www.mathworks.com/help/matlab/math/random-numbers-with-specific-mean-and-variance.html

| improve this answer | |
$\endgroup$
  • $\begingroup$ very nice. But from where did you got this formula?Link? x = mu + sqrt(sigma_squared)*randn(nsamples,1); $\endgroup$ – engr Mar 3 at 16:50
  • 1
    $\begingroup$ @engr Did you try clicking on and then reading the link? $\endgroup$ – Engineer Mar 3 at 17:47
0
$\begingroup$

tx = Transmission vector

noise=sqrt(sigma2/2)*randn(size(tx));
| improve this answer | |
$\endgroup$
  • $\begingroup$ sigma2? what is it? $\endgroup$ – engr Feb 2 at 16:04
  • $\begingroup$ variance of complex noise. $\endgroup$ – jomegaA Feb 2 at 17:28
  • $\begingroup$ can you please share link/refrence of this formula?? $\endgroup$ – engr Feb 9 at 5:51
  • $\begingroup$ no mention/use of mean in this formula? will the factor of mean will be redundant while calculating noise in this case? $\endgroup$ – engr Feb 9 at 5:52
  • $\begingroup$ What is transmission vector?how we can get/find its value? $\endgroup$ – engr Feb 9 at 5:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.