Saturday, 12 October 2013

Error Function and Gaussian CDF/Quantile Calculator

The Error Function is very important in Statistics, as it is used to calculate the CDF (Cumulative Distribution Function) of the much used Gaussian distribution. It is also known as the Gauss Error Function, and is given by the formula



$\large erf(x)=\frac{2}{\sqrt{\pi}}\int_0^xexp(-t^2)dt$  


A numerical implementation of this function occurs in the calculator below. Fill in the left entry only to calculate the Error function - pressing the calculate button will populate the right box with the result. Alternatively, fill in the right box only to calculate its inverse Error Function (values must lie between -1 and +1, as this is the range of the Error function). Pressing the calculate button will populate the left box with the result.



$x$: $erf(x)$:




An implementation of the Gaussian CDF and Quantile function Calculator occurs below. Recall that the Gaussian or Normal distribution function (for mean $\mu$ and standard deviation $\sigma$) is:-
$\large N(t)=\frac{1}{\sigma\sqrt{2\pi}}exp(\frac{-(t-\mu)^2}{2\sigma^2})$  

The mean and std (standard deviation) fields have to be filled in, as well as two out of the three fields which are labelled Lower Limit, Upper Limit and Probability. The lower limit field needs to contain either a number or the string -inf (for minus infinity). The upper limit field needs to contain either a number or the string inf (for plus infinity). The probability field must contain a number only.



mean:
std:


Lower limit:
Upper limit:
Probablility:


Extra probability results pending...



Plot of distribution ($f(x)$) values against $x$ values
$f(x)$
$x$

1 comment:

  1. Good luck to anyone reading this true life story of mine, I Was Diagnosed With type 2 Herpes Virus Last year, And I Was Looking For Solution To Be Cured Luckily I Saw Testimonies On How Dr OYAGU Cure Herpes Virus I Decided To Contact Dr OYAGU I Contacted Him He Prepared A Herbal Medicine Portion And Sent It To Me, I Started The Herbal Medicine For My Health. He Gave Me Step By Step Instructions On How To Apply It, When I Applied It As Instructed, I Was Cured Of This Deadly Herpes Within 2 weeks, I Am Now Herpes Negative. My Brother And Sister I No That There Are So Many People That Have The Same Herpes Virus Please contact Dr OYAGU To Help You Too, And Help Me To Thank Dr OYAGU For Cure Me, I’m Cured By Dr. OYAGU Herbal Medicine, His Contact Email:oyaguherbalhome@gmail.com or visit his website https://oyaguspellcaster.wixsite.com/oyaguherbalhome Or Cell Whatsapp Number +2348101755322 thank you

    ReplyDelete