ASK APPLETSTETRACTYS LogoTETRACTYS Software
  • Home

    How to

  • Ask an Applet

    Collections

  • Index
  • Utilities
  • Science
  • Graphic FX
  • Games
  • Bernoulli2Gauss 1.0 a simple test for statistical distributions
    Download it here! only 1749 bytes

    Bernoulli2Gauss is a simple Applet that shows falling pixels following the Bernoulli distribution rule.


    Applet Installation

    Simply upload the file Bernoulli2Gauss1.zip to your site and put these HTML tags in your page:

    <APPLET CODE=Bernoulli2Gauss.class
    ARCHIVE=Bernoulli2Gauss1.zip WIDTH=201 HEIGHT=300>
    </APPLET>
    

    Review

    This Applet shows some undecided pixels. They don't know if it's better to go to the right or to the left. The total effect is an approximation of the famous Gaussian Curve.

    Among the most important statistic distribution there are the Bernoulli (or Binomial) Distribution and the Gaussian Distribution.

    We have the first one when an event has a given probability p to happen and we ask how many times we have k successes on n trials. So the Binomial is a function of k, given n and p.

    The Gaussian Distribution can be obtained as a limit from the Binomial when n reaches infinity and the standard deviation s is given by the square root of np(1-p).

    For the pixels the trials n are 150 and p = 1/2 so s ~ 6. But n doesn't reach infinity and so the obtained curve if quite approximative, as you can see.

    For more information
    send an email to
    TETRACTYS Software
    Copyright © 1999 Leonardo Boselli
    All Rights Reserved. Legal Terms.