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?

 Akzeptierte Antwort

Chunru
Chunru am 21 Jul. 2022

0 Stimmen

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');

Weitere Antworten (0)

Kategorien

Mehr zu Numerical Integration and Differential Equations finden Sie in Hilfe-Center und File Exchange

Tags

Gefragt:

am 21 Jul. 2022

Beantwortet:

am 21 Jul. 2022

Community Treasure Hunt

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

Start Hunting!

Translated by