# 5.8 Discrete and continuous random variables: using spreadsheets

 Page 1 / 1
Basic directions on exploring distributions.

## Discrete and continuous random variables using spreadsheets

In this section we will discuss techniques using spreadsheet for exploring discrete and continuous variables particularly, creating probability tables, calculating the binomial probability functions, and then graphing probabilities.

## Creating probability tables

If you are generating your data and have your outcomes, or if you know the probabilities of the outcomes you can generate a table of probabilities by using a formula. You will create a three column table with the “possible outcomes” in the first column, the probability of that outcome in the second column, and in the third column you will create the formula multiplying column one by column two or the “expected value”. Using the example in the book on finding the expected value of the number of times a baby’s crying will wakes its mother after midnight. The data below is from a sample of 50 mothers’ responses to the question how many times did your baby’s crying awake you after midnight? 2 mothers said “0” times, 11 mothers said “1” time, 23 mothers said “2” times, 9 mothers said “3” times, 4 mothers said “4” times, 1 mother said “5” times,

Number of times baby’s cry awoke mother after midnight

Number of Mothers who selected
0 P( x =0) = 2/50
1 P( x =1) = 11/50
2 P( x =2) = 23/50
3 P( x =3) = 9/50
4 P( x =4) = 4/50
5 P( x =5) = 1/50

Using the formulas shown in the google spreadsheet below you can calculate the expected value and create a chart of probabilities.

## Calculating the binomial probability function

Note that the answer to the question is asking for a cumulative frequency for 12 or less people out of the sample of twenty. The answer is in column C, row 14, .9738. We would expect that out of a sample size of 20 people a probability of 97.38% that 12 or less people would have a high school diploma and did not pursue further education.

To graph probability functions, we have found that “Statistics Online Computational Resources (SOCR)” has a wonderful site with tools for statistics. If you go to http://socr.ucla.edu/htmls/SOCR_Distributions.html in the dropdown menu for SOCR distribution you will find many types of distributions. For the example we just completed you would use Binomial Distribution; set the number of trials to 20 and the success probability to .41 (as stated in the problem and the following image will appear. Everything you would want to know.

## Continuous uniform distributions and normal distributions:

This same tool can be used to generate continuous uniform distributions, and normal distributions. For continuous uniform distributions you will need to know and enter the lower and upper limits of the data plus the range of data that you wish to calculate the probability. In the example below I have used the problem from the book: Suppose we want to find the area between f(x) = 1/20 and the x-axis where 4<x<15 the following image would be produced with the Red shaded density (probability) = 0.55

For a normal distribution, you will need to have your mean and standard deviation and again your right and left cut off values. Replicating Figure 5.3 in your text, I would use 0 as the mean, 1 as the standard deviation and 1 as my left cut off and 2 as my right cut off. See below. I now have the density or probability for a value between 1 and 2 (0.125905)

## Optional classroom exercise:

At your computer, try to use some of these tools to work out homework problems or check homework that you have completed to see if the results are the same or similar.

where we get a research paper on Nano chemistry....?
nanopartical of organic/inorganic / physical chemistry , pdf / thesis / review
Ali
what are the products of Nano chemistry?
There are lots of products of nano chemistry... Like nano coatings.....carbon fiber.. And lots of others..
learn
Even nanotechnology is pretty much all about chemistry... Its the chemistry on quantum or atomic level
learn
da
no nanotechnology is also a part of physics and maths it requires angle formulas and some pressure regarding concepts
Bhagvanji
hey
Giriraj
Preparation and Applications of Nanomaterial for Drug Delivery
revolt
da
Application of nanotechnology in medicine
what is variations in raman spectra for nanomaterials
ya I also want to know the raman spectra
Bhagvanji
I only see partial conversation and what's the question here!
what about nanotechnology for water purification
please someone correct me if I'm wrong but I think one can use nanoparticles, specially silver nanoparticles for water treatment.
Damian
yes that's correct
Professor
I think
Professor
Nasa has use it in the 60's, copper as water purification in the moon travel.
Alexandre
nanocopper obvius
Alexandre
what is the stm
is there industrial application of fullrenes. What is the method to prepare fullrene on large scale.?
Rafiq
industrial application...? mmm I think on the medical side as drug carrier, but you should go deeper on your research, I may be wrong
Damian
How we are making nano material?
what is a peer
What is meant by 'nano scale'?
What is STMs full form?
LITNING
scanning tunneling microscope
Sahil
how nano science is used for hydrophobicity
Santosh
Do u think that Graphene and Fullrene fiber can be used to make Air Plane body structure the lightest and strongest. Rafiq
Rafiq
what is differents between GO and RGO?
Mahi
what is simplest way to understand the applications of nano robots used to detect the cancer affected cell of human body.? How this robot is carried to required site of body cell.? what will be the carrier material and how can be detected that correct delivery of drug is done Rafiq
Rafiq
if virus is killing to make ARTIFICIAL DNA OF GRAPHENE FOR KILLED THE VIRUS .THIS IS OUR ASSUMPTION
Anam
analytical skills graphene is prepared to kill any type viruses .
Anam
Any one who tell me about Preparation and application of Nanomaterial for drug Delivery
Hafiz
what is Nano technology ?
write examples of Nano molecule?
Bob
The nanotechnology is as new science, to scale nanometric
brayan
nanotechnology is the study, desing, synthesis, manipulation and application of materials and functional systems through control of matter at nanoscale
Damian
Is there any normative that regulates the use of silver nanoparticles?
what king of growth are you checking .?
Renato
What fields keep nano created devices from performing or assimulating ? Magnetic fields ? Are do they assimilate ?
why we need to study biomolecules, molecular biology in nanotechnology?
?
Kyle
yes I'm doing my masters in nanotechnology, we are being studying all these domains as well..
why?
what school?
Kyle
biomolecules are e building blocks of every organics and inorganic materials.
Joe
how did you get the value of 2000N.What calculations are needed to arrive at it
Privacy Information Security Software Version 1.1a
Good
Got questions? Join the online conversation and get instant answers!