SOCR EduMaterials Activities BivariateNormalExperiment

Jump to: navigation, search

Bivariate Normal Experiment


The Bivariate Normal Experiment demonstrates the central tendency, variability, and spread of two quantitative variables in an event. A randomly generated point (X,Y) from a Bivariate normal distribution with mean (0,0) is graphically shown as a red dot in the scatter plot. The distribution regression line is also shown in the scatter plot as blue and the same regression line is shown as red. The middle graph contains the distribution graphs that display the density function and moments of X and the last graph displays the same information for variable Y. For each update, the coordinates are recorded in the data table to the left and the last two tables give the numerical moment values of X and Y, as well as the distribution standard deviation and mean. The last table gives the distribution and sample correlation.


To provide a simple applet that provides information for bivariate data that consists of two quantitative variables (e.g. age, height, blood pressure, etc.) and build a common ground about these events while enforcing the knowledge of bivariate procedures.


Go to the SOCR Experiments and select Bivariate Normal Experiment from the drop-down list of experiments located at the top left. The image below shows the initial view of this experiment:

SOCR Activities BivariateNormalExperiment Chui 050407 Fig1.jpg

When pressing the play button, one trial will be executed and recorded in the distribution table below. The fast forward button symbolizes the nth number of trials to be executed each time. The stop button ceases any activity and is helpful when the experimenter chooses “continuous,” indicating an infinite number of events. The fourth button will reset the entire experiment, deleting all previous information and data collected. The “update” scroll indicates nth number of trials (1, 10, 100, or 1000) performed when selecting the fast forward button and the “stop” scroll indicates the maximum number of trials in the experiment.

The distribution standard deviations and correlations can be varied with the scroll bars above the graphs. Note that modifying the mean and standard deviation of X and Y only changes the spread of the distribution graphs for X and Y. The distribution regression line (blue) in the scatter plot will remain horizontal and the density function graphs of X and Y will continue to be normal. When varying p, only the slope of the distribution regression line in the scatter plot changes; when p>0.50, the slope is positive and when p<0.50, the slope becomes negative. The image below displays information when p>0.50 after many trials.

SOCR Activities BivariateNormalExperiment Chui 050407 Fig2.jpg


The Bivariate Experiment is a special case for values that X and Y that are finite. If either of the values is infinite, then the bivariate probability reverts to the univariate probability.

This SOCR Java applet could be used in many different kinds of studies.

For instance, a professor may use the SOCR Bivariate Experiment to determine the grades for his students since the bivariate normal probability offers a “bell-shaped” curve.

Another example may be to study the population in a big city’s subway throughout a weekday. The distribution graph may be centered at the time of peak hours in the subway. Using the SOCR Bivariate Normal Experiment will display the exact mean and standard deviation of the population in the subway on a daily basis.

Suppose researchers want to determine the age of women who gave birth to a child. This study should offer a bell shaped curve as young teenagers and old women are not as likely to give birth to a child as those who are young to middle-aged women.

Applications - Conditional Probability

The SOCR Bivariate Normal Experiment may be used to demonstrate the notion of conditional probability.

Go to the Bivariate Normal Experiment. The Rho-parameter (\(\rho\)) controls the (in)dependence between the events A={X<a} & B={Y<b}, where X and Y are two different random Normal variables whose means and variances are controlled by sliders. If \(\rho =0\), then A and B are independent. If \(\rho \not=0\), then \(P(A|B) \not= P(A)\) -- and A and B are not independent as events.

For example, image below shows a simulation for \(\rho =0\), A={X<0} and B={Y<0}. By definition, the conditional probability P(A|B) = P(AB)/P(B), which can be experimentally validated to be = P(A). In this example we used a 20-point simulation and count the number of outcomes with the specified conditions:

P(A={X<0}) = 6/20 = 3/10
P(B={Y<0}) = 12/20

\[P(A|B) = {P(A \cap B) \over P(B)} = {4/20 \over 12/20} = 4/12 = 1/3 \approx P(A) = 3/10\]. This is pretty strong evidence of independence. But now changing \(\rho \not=0\), will cause a bigger discrepancy between P(A|B) and P(A). Try it out!

SOCR Activities BivariateNormalExperiment Dinov 091208 Fig2.png

Translate this page:

Uk flag.gif

De flag.gif

Es flag.gif

Fr flag.gif

It flag.gif

Pt flag.gif

Jp flag.gif

Bg flag.gif

الامارات العربية المتحدة
Ae flag.gif

Fi flag.gif

इस भाषा में
In flag.gif

No flag.png

Kr flag.gif

Cn flag.gif

Cn flag.gif

Ru flag.gif

Nl flag.gif

Gr flag.gif

Hr flag.gif

Česká republika
Cz flag.gif

Dk flag.gif

Pl flag.png

Ro flag.png

Se flag.gif