difference between normcdf and 1-erfc

 Akzeptierte Antwort

the cyclist
the cyclist am 6 Jul. 2014

2 Stimmen

No. Here is some simple code that creates a plot that illustrates that those two functions are not equal:
x = -5 : 0.01 : 5;
y1 = normcdf(x);
y2 = 1-erfc(x);
figure
plot(x,y1,x,y2)
legend('normcdf','1-erfc')

Weitere Antworten (1)

Tri
Tri am 6 Jul. 2014

0 Stimmen

Thank you! After further research, looks like normcdf = 0.5*erfc(-x/(sqrt(2))

Kategorien

Mehr zu Special Functions finden Sie in Hilfe-Center und File Exchange

Produkte

Gefragt:

Tri
am 6 Jul. 2014

Beantwortet:

Tri
am 6 Jul. 2014

Community Treasure Hunt

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

Start Hunting!

Translated by