mean of 10 and a variance of 30

3 vues (au cours des 30 derniers jours)
S.M
S.M le 26 Oct 2022
Commenté : Image Analyst le 26 Oct 2022
How can i distribution is normal with a mean of 10 and a variance of 30.(for n samples;n=50)
  3 commentaires
S.M
S.M le 26 Oct 2022
size =[1 50] ;
sigma = 30 ;
mu = 10 ;
X = normrnd(mu,sigma,size);
is it true?
Image Analyst
Image Analyst le 26 Oct 2022
Did you see my answer down in the official Answer section below?

Connectez-vous pour commenter.

Réponse acceptée

Image Analyst
Image Analyst le 26 Oct 2022
Try this:
n = 50;
r = 10 + 30 * randn(1, n);
theActualMean = mean(r)
theActualMean = 11.4852
theActualSD = std(r)
theActualSD = 33.1631

Plus de réponses (0)

Catégories

En savoir plus sur Random Number Generation dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by