1-sigma error from data

조회 수: 22 (최근 30일)
Markus Similä
Markus Similä 2022년 7월 21일
답변: Chunru 2022년 7월 21일
I have several thousand datapoints that follow a normal distribution (not zero centered and values ranging roughly from -500 to 500).
How can I get the interval from mean-1-sigma to mean+1-sigma?

채택된 답변

Chunru
Chunru 2022년 7월 21일
x = 500*randn(10000, 1) + 200; % some data
mx = mean(x);
sx = std(x);
plot(x, 'o'); hold on; grid on;
yline(mx+[-1 0 1]*sx, 'r');

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Numerical Integration and Differential Equations에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by