how to find standard deviation in six sigma format?
조회 수: 5 (최근 30일)
이전 댓글 표시
I have plot my data with the help of scater plot. But in data statistics it is only mean and standard deviation. I need my plot which shows 1sigma, 2 sigma , 3sigma how to do that?
댓글 수: 0
답변 (1개)
Cris LaPierre
2023년 8월 29일
편집: Cris LaPierre
2023년 8월 29일
The function std returns one standard deviation. Multiply by +/-1, +/-2 and +/-3 to get more than that.
Here's a simple example
% generate a distribution
x = linspace(425,745,200);
y = normpdf(x,580,35);
scatter(x,y)
mu = mean(x)
xline(mu,'g--')
sd = std(x)
xline(mu + sd,'m--')
xline(mu - sd,'m--')
xline(mu + 2*sd,'b:')
xline(mu - 2*sd,'b:')
xline(mu + 3*sd,'k-.')
xline(mu - 3*sd,'k-.')
댓글 수: 2
Cris LaPierre
2023년 8월 30일
I can't duplicate the error. Please attach your spreadsheet to your post using the paperclip icon
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!