The standard normal distribution is a special case of the normal distribution. It occurs when a normal random variable has a mean of 0 and a standard deviation of 1. The normal random variable of a standard normal distribution is called a standard score or a z score.
A conversion from Normally distributed to Standard Normally distributed value occurs via the formula,
Z = (X - u) / s where: Z = value on the standard normal distribution X = value on the original distribution u = mean of the original distribution s = standard deviation of the original distribution
the Z-value obtained is: -2.4
Generating a Random Standard Normal Function – Using nextGaussian() in Java :
The nextGaussian() method is used to get the next random, Normally distributed double value with mean 0.0 and standard deviation 1.0.
Declaration : public double nextGaussian() Parameters : NA Return Value : The method call returns the random, Normally distributed double value with mean 0.0 and standard deviation 1.0. Exception : NA
The following example shows the usage of java.util.Random.nextGaussian():
The next Gaussian value generated is : -0.24283691098606316
- Program to find Normal and Trace of a matrix
- Program to implement standard error of mean
- Program to implement standard deviation of grouped data
- Cake Distribution Problem
- Minimum and maximum number of N chocolates after distribution among K students
- Random number generator in arbitrary probability distribution fashion
- Find normal at a given point on the curve
- Length of the normal from origin on a straight line whose intercepts are given
- Java Program for Program to find area of a circle
- Java Program for Program to calculate area of a Tetrahedron
- Java Program for Program for array rotation
- Set in C++ Standard Template Library (STL)
- Calculate the IST : Indian Standard Time
- Mathematics | Mean, Variance and Standard Deviation
- Variance and standard-deviation of a matrix
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.