Skip to content
Property Value
Hex Value $BB19
Categories
Localizations
  • FR: géomtFdp(

geometpdf(

Overview

Computes a probability at x, the number of the trial on which the first success occurs, for the discrete geometric distribution with the specified probability of success p.

Availability: Token available everywhere.

Syntax

geometpdf(p,x)

Arguments

NameTypeOptional
p
x

Location

2nd, distr, DISTR, E:geometpdf(


Description

This command is used to calculate geometric probability. In plainer language, it solves a specific type of often-encountered probability problem, that occurs under the following conditions:

  1. A specific event has only two outcomes, which we will call "success" and "failure"
  2. The event is going to keep happening until a success occurs
  3. Success or failure is determined randomly with the same probability of success each time the event occurs
  4. We're interested in the probability that it takes a specific amount of trials to get a success.

For example, consider a basketball player that always makes a shot with 1/3 probability. He will keep throwing the ball until he makes a shot. What is the probability that it takes him 3 shots?

  1. The event here is throwing the ball. A "success", obviously, is making the shot, and a "failure" is missing.
  2. The event is going to happen until he makes the shot: a success.
  3. The probability of a success - making a shot - is 1/3
  4. We're interested in the probability that it takes 3 trials to get a success

The syntax here is geometpdf(probability, trials). In this case:

:geometpdf(1/3,3

This will give about .148 when you run it, so there's a .148 probability that it will take him 3 shots until he makes one (he'll make it on the 3rd try).

Formulas

The value of geometpdf( is given by the formula

(1) \(\begin{align} \texttt{geometpdf}(p,n) = p(1-p)^{n-1} \end{align}\)

This formula can be intuitively understood: the probability that the first success is the nth trial is the probability of getting a success - \(p\) - times the probability of missing it the first n-1 times - \((1-p)^{n-1}\).

For the trivial value of n=0, however, the above formula gives the incorrect value of 1. It should actually be 0, since the first success can never be the 0th trial. However, since you're not likely to ever be interested in this probability, this drawback doesn't really matter.


Source: parts of this page were written by the following TI|BD contributors: burr, CloudVariable, DarkerLine, GoVegan, kg583, Timothy Foster, Trenly.

History

Calculator OS Version Description
TI-83 0.01013 Added

Last update: September 30, 2023 15:38:51
Created: February 23, 2023 23:15:01
Authors: Adrien Bertrand