필터 지우기
필터 지우기

How to calculate the number of values in a Gaussian distribution greater than one standard deviation?

조회 수: 2 (최근 30일)
I have produced a Gaussian Randon Variable ranging between -3 to 3. I want to calculate the number of values greater than one standard deviation. How may I do that?
pd = makedist('Normal')
x = -3:.1:3;
pdf_normal = pdf(pd,x);
plot(x,pdf_normal,'LineWidth',2)
length(x)
x = -3:.1:3;
y = pdf_normal;

답변 (1개)

Torsten
Torsten 2022년 10월 1일
I want to calculate the number of values greater than one standard deviation.
Maybe you mean one standard deviation apart from the mean 0 of the standard normal distribution ?
Standard deviation of the standard normal distribution is 1. Thus there are
nnz(abs(-3:0.1:3) > 1)
ans = 40
values greater than one standard deviation apart from the mean 0 of the standard normal distribution.

카테고리

Help CenterFile Exchange에서 Multivariate Distributions에 대해 자세히 알아보기

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by