1-sigma error from data
조회 수: 25 (최근 30일)
이전 댓글 표시
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?
댓글 수: 0
채택된 답변
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
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 ANOVA에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!