Statistics/Normal distribution: Difference between revisions

From Rosetta Code
Content added Content deleted
(Created page with "{{draft task}} Normal distribution is arguably the most freqently use distribution in statistics, while most programming languages only provide a unifo...")
 
m (Mention Gaussian. expand task to include mention of native support. - Just ideas for the draft.)
Line 1: Line 1:
{{draft task}}
{{draft task}}
[[wp:Normal distribution|Normal distribution]] is arguably the most freqently use distribution in statistics, while most programming languages only provide a uniformly distributed random number generator. However, one [[wp:Normal distribution#Generating_values_from_normal_distribution|can derive]] normally distributed random numbers from a uniform generator.
[[wp:Normal distribution|Normal]] (or Gaussian) distribution is a freqently used distribution in statistics. While most programming languages provide a uniformly distributed random number generator, one can [[wp:Normal distribution#Generating_values_from_normal_distribution|derive]] normally distributed random numbers from a uniform generator.


;The task:
'''Task''': take a uniform random number generator, and create a large (you decide how large) set of numbers that follow a normal distribution. Calculate the dataset's mean and stddev, and show the histogram. You may refer to code in [[Statistics/Basic]] if available.
# Take a uniform random number generator and create a large (you decide how large) set of numbers that follow a normal (Gaussian) distribution. Calculate the dataset's mean and stddev, and show the histogram here.
# Mention any native language support for the generation of normal distributed random numbers.

;Reference:
* You may refer to code in [[Statistics/Basic]] if available.

Revision as of 11:12, 27 July 2011

Statistics/Normal distribution is a draft programming task. It is not yet considered ready to be promoted as a complete task, for reasons that should be found in its talk page.

Normal (or Gaussian) distribution is a freqently used distribution in statistics. While most programming languages provide a uniformly distributed random number generator, one can derive normally distributed random numbers from a uniform generator.

The task
  1. Take a uniform random number generator and create a large (you decide how large) set of numbers that follow a normal (Gaussian) distribution. Calculate the dataset's mean and stddev, and show the histogram here.
  2. Mention any native language support for the generation of normal distributed random numbers.
Reference