Chapter 5 AppendixDistributions for Counts and Proportions with Excel, JMP, Minitab, SPSS, CrunchIt!, R, and TI-83/-84 Calculators

TA5-1

Distribution Calculation

image

Binomial Distribution

  1. Click an empty cell in the spreadsheet.
  2. Click Formulas ➔ More Functions ➔ Statistical.
  3. Scroll down the list of functions and double-click on the “BINOM.DIST” function.
  4. In the “Number_s” box, input the specified value of (the number of successes).
  5. In the “Trials” box, input the value of (number of trials/observations).
  6. In the “Probability s” box, input the value of (probability of success).
  7. If you wish to have , then input “0” or “FALSE” in the “Cumulative” box. If you wish to have , then input “1” or “TRUE” in the “Cumulative” box.
  8. Click “OK” to find the results.

Poisson Distribution

  1. Click an empty cell in the spreadsheet.
  2. Select the Statistical function menu as described previously.
  3. Scroll down the list of functions and double-click on the “POISSON.DIST” function choice.
  4. In the “” box, input the specified value of (the number of successes).
  5. In the “Mean” box, input the value of (mean number of successes per unit of measure).
  6. If you wish to have , then input “0” “FALSE” in the “Cumulative” box. If you wish to have , then input “1” or “TRUE” in the “Cumulative” box.
  7. Click “OK” to find the results.

image

Binomial Distribution

  1. Help ➔ Sample Data ➔ Teaching Scripts (in Teaching Resources) ➔ Interactive Teaching Modules ➔ Distribution Calculator
  2. Select “Binomial” for the distribution.
  3. Enter (success) and .
  4. Select the type of calculation desired (input values to obtain a probability, or enter a probability to obtain a value).
  5. Enter the value to look up in the bottom right section and click “return” to see shading on distribution.

TA5-2

Poisson Distribution

  1. Help ➔ Sample Data ➔ Teaching Scripts (in Teaching Resources) ➔ Interactive Teaching Modules ➔ Distribution Calculator
  2. Select “Poisson” for the distribution.
  3. Enter the mean.
  4. Select the type of calculation desired (input values to obtain a probability or enter a probability to obtain a value).
  5. Enter the value to look up in the bottom right section and click “return” to see shading on distribution.

Note: For JMP 11 and earlier versions, the Distribution Calculator (and many other interactive simulators) can be downloaded for free from jmp.com/tools.

image

Binomial Distribution

  1. Calc ➔ Probability Distributions ➔ Binomial
  2. Choose “Probability” if you wish to find .
  3. Choose “Cumulative probability” if you wish to find .
  4. Input the value of (number of observations) in the “Number of trials” box and (probability of success) in the “Event probability” box.
  5. In most cases, you have a specific value in mind; select “Input constant.” In the box next to this option, enter the specified value of . Click “OK” to find the results reported in the Session window.

Poisson Distribution

  1. Calc ➔ Probability Distributions ➔ Poisson
  2. Choose “Probability” if you wish to find .
  3. Choose “Cumulative probability” if you wish to find .
  4. Input the value of (mean number of successes per unit of measure) in the “Mean” box.
  5. In most cases, you have a specific value in mind; select “Input constant.” In the box next to this option, enter the specified value of . Click “OK” to find the results reported in the Session window.

In either case, to find a value given a cumulative probability (that is, to find given ), select the “Inverse cumulative probability” option.

image

Binomial Distribution

  1. Transform ➔ Compute Variable
  2. In “Target Variable,” enter a name for the new variable, then click in the “Numerical Expression” box.
  3. In “Function Group” at right, select “PDF and Noncentral” for and then PDF.Binom.
  4. In “Function Group” at right, select “CDF and Noncentral” for and then CDF.Binom.
  5. In either case, enter the parameters: , (number of trials), and (success).
  6. A new column will be added to the dataset containing the desired probability.

TA5-3

Poisson Distribution

  1. Transform ➔ Compute Variable
  2. In “Target Variable,” enter a name for the new variable, then click in the “Numerical Expression” box.
  3. In “Function Group” at right, select “PDF and Noncentral” for and then PDF.Poisson.
  4. In “Function Group” at right, select “CDF and Noncentral” for and then “CDF.Poisson.”
  5. In either case, enter the parameters: and
  6. A new column will be added to the dataset containing the desired probability.

SPSS does not have an inverse function for these distributions.

image

Binominal Distribution

  1. Distribution Calculator ➔ Binomial
  2. Enter and .
  3. To look up proportions, use the probability tab, then select the appropriate symbol (=, ≤, and so on).
  4. After entering value, click “Calculate.”

Poisson Distribution

  1. Distribution Calculator ➔ Poisson
  2. Enter lambda ().
  3. To look up proportions, use the probability tab, then select the appropriate symbol (=, ≤, and so on).
  4. After entering value, click “Calculate.”

In either case, to find a value given a cumulative probability (that is, to find given ), select the Quantile tab and enter , then click “Calculate.”

image

Binominal Distribution

  1. For , press (DISTR) then arrow to binompdf( and press .
  2. For , press (DISTR) then arrow to binomcdf( and press .
  3. In both cases, enter , then a comma, then , then a comma, then the value to look up. For example, binomcdf(10,0.3,2) to find when and .
  4. Press .

Poisson Distribution

  1. For , press (DISTR) then arrow to poissonpdf( and press .
  2. For , press (DISTR) then arrow to poissoncdf( and press .
  3. In both cases, enter , . Enter the mean, then a comma, then the value to look up. For example, poissonpdf(3,2) to find the probability of exactly two events when they normally happen at a rate of three per unit.
  4. Press .

TA5-4

image

Binominal Distribution

  1. For , use the command dbinom(,,).
  2. For , use the command pbinom(,,).

For example,

> dbinom(10,30,.5)

[1] 0.0279816

Poisson Distribution

  1. For , use the command dpois(, )
  2. For , use the command ppois(, )

For example, the command below finds the probability of two or fewer events when they normally happen at a rate of three per unit.

> ppois(2,3)

[1] 0.4231901