Generate random data for a continuous distribution and compare its histogram to the PDF:
Generate random data for a discrete distribution and compare its histogram to the PDF:
Generate random data for a bivariate distribution and compare its histogram to the PDF:
Compare the plots of random data for continuous multivariate distributions:
Consider vectors with standard normal components:
The angle will follow a uniform distribution:
The norm will follow a Rayleigh distribution:
Consider three-dimensional vectors with standard normal components:
The

angle in spherical coordinates follows a uniform distribution:
The norm will follow a

distribution:
Verify the Poisson approximation to the binomial distribution using random variates:
Define a truncated triangular distribution:
Generate random numbers from this distribution:
Mean, variance, and kurtosis:
Moments:
Probabilities and expectations:
Simulate the distribution of a function of a random variable:
Compare the mean and variance of the sample with those for the distribution:
Generate random data from a normal distribution:
Define nonparametric distributions using this data:
Compare the mean and variance of these distributions:
Simulate 10 throws of a fair six-sided die:
Simulate seven throws of a pair of fair six-sided dice:
A coin-tossing experiment consists of tossing a fair coin repeatedly until a head results. Simulate the process:
A radioactive material on average emits 3.2

-particles per second; show the distribution. Simulate a typical particle-count experiment for 10 minutes:
Simulate a symmetric random walk with values

and

:
Generate random data for a normal distribution:
Estimate the distribution parameters using the random data:
Generate high-precision random data for a component mixture distribution:
Estimate the mixture probabilities, assuming the component distributions are known:
Given a binormal sample, the

-statistic follows a shifted
FisherZDistribution:
Generate the distribution of

-statistics for binormal samples of size

:
Visually compare the

-statistic distribution to a shifted
FisherZDistribution:
DistributionFitTest confirms the result: