### The Binompdf Function

The **binompdf function** on the TI-84 calculator can be used to solve problems involving the probability of a precise number of successes out of a certain number of trials. For example, if you wanted to know the probability of 45 successes out of 100 trials, you could use the binompdf function. Just like when computing the probability manually with paper and pencil, you also have to know the probability of success for any particular trial in order to find the answer. The syntax for the binompdf function is binompdf\begin{align*}(n, p, a)\end{align*}

#### Real-World Application: Rewards Cards

A local food chain has determined that 40% of the people who shop in the store use an incentive card, such as air miles. If 10 people walk into the store, what is the probability that half of them will be using an incentive card?

There are 10 trials, so \begin{align*}n = 10\end{align*}

A success is a person using a card. You are interested in 5 successes. Therefore, \begin{align*}a = 5\end{align*}

The probability of a success is 40%, or 0.40, and, thus, \begin{align*}p = 0.40\end{align*}

Therefore, the probability of a failure is \begin{align*}1 - 0.40\end{align*}

\begin{align*}P(X = a) & = {_n}C_a \times p^a \times q^{(n - a)}\\
P(5 \ \text{people using a card}) & = {_{10}}C_5 \times p^5 \times q^5\\
P(5 \ \text{people using a card}) & = {_{10}}C_5 \times (0.40)^5 \times (0.60)^5\\
P(5 \ \text{people using a card}) & = 252 \times 0.01024 \times 0.07776\\
P(5 \ \text{people using a card}) & = 0.201\end{align*}

Therefore, the probability of seeing 5 people using a card in a random set of 10 people is 20.1%.

You could have also used technology to solve this problem, rather than pencil and paper calculations. However, with technology, it is often very helpful to check our answers using pencil and paper as well. With Example A, you could have used the binompdf function on the TI-84 calculator. Binompdf simply stands for binomial probability.

The key sequence for using the binompdf function is as follows:

If you used the data from Example A, you would find the following:

Notice that you typed in binompdf\begin{align*}(n, p, a)\end{align*}

#### Calculating Probability

1. Karen and Danny want to have 5 children after they get married. What is the probability that they will have exactly 3 girls?

There are 5 trials, so \begin{align*}n = 5\end{align*}

A success is when a girl is born, and we are interested in 3 girls. Therefore, \begin{align*}a = 3\end{align*}

The probability of a success is 50%, or 0.50, and thus, \begin{align*}p = 0.50\end{align*}

Therefore, the probability of a failure is \begin{align*}1 - 0.50\end{align*}

\begin{align*}P(X = a) & = {_n}C_a \times p^a \times q^{(n - a)}\\
P(3 \ \text{girls}) & = {_5}C_3 \times p^3 \times q^2\\
P(3 \ \text{girls}) & = {_5}C_3 \times (0.50)^3 \times (0.50)^2\\
P(3 \ \text{girls}) & = 10 \times 0.125 \times 0.25\\
P(3 \ \text{girls}) & = 0.3125\end{align*}

Therefore, the probability of having *exactly* 3 girls from the 5 children is 31.25%.

When using technology, you will select the binompdf function, because you are looking for the probability of *exactly* 3 girls from the 5 children.

Using the TI-84 calculator gave us the same result as our calculation (and was a great deal quicker).

2. A fair coin is tossed 50 times. What is the probability that you will get heads in 30 of these tosses?

There are 50 trials, so \begin{align*}n = 50\end{align*}

A success is getting a head, and we are interested in *exactly* 30 heads. Therefore, \begin{align*}a = 30\end{align*}

The probability of a success is 50%, or 0.50, and, thus, \begin{align*}p = 0.50\end{align*}

Therefore, the probability of a failure is \begin{align*}1 - 0.50\end{align*}

\begin{align*}P(X = a) & = {_n}C_a \times p^a \times q^{(n - a)}\\
P(30 \ \text{heads}) & = {_{50}}C_{30} \times p^{30} \times q^{20}\\
P(30 \ \text{heads}) & = {_{50}}C_{30} \times (0.50)^{30} \times (0.50)^{20}\\
P(30 \ \text{heads}) & = (4.713 \times 10^{13}) \times (9.313 \times 10^{-10}) \times (9.537 \times 10^{-7})\\
P(30 \ \text{heads}) & = 0.0419\end{align*}

Therefore, the probability of getting *exactly* 30 heads from 50 tosses of a fair coin is 4.2%.

Using technology to check, you get the following:

### Example

#### Example 1

You have a summer job at a jelly bean factory as a quality control clerk. Your job is to ensure that the jelly beans coming through the line are the right size and shape. The probability that any particular shipment of jelly beans passes inspection is 90%. A normal day at the jelly bean factory means 15 shipments are produced. What is the probability that exactly 10 will pass inspection?

There are 15 shipments, so \begin{align*}n = 15\end{align*}

A success is a shipment passing inspection, and we are interested in *exactly* 10 passing inspection.

Therefore, \begin{align*}a = 10\end{align*}

The probability of a success is 90%, or 0.90, and, thus, \begin{align*}p = 0.90\end{align*}

Therefore, the probability of a failure is \begin{align*}1 - 0.90\end{align*}

\begin{align*}P(X = a) & = {_n}C_a \times p^a \times q^{(n - a)}\\
P(10 \ \text{shipments passing}) & = {_{15}}C_{10} \times p^{10} \times q^5\\
P(10 \ \text{shipments passing}) & = {_{15}}C_{10} \times (0.90)^{10} \times (0.10)^5\\
P(10 \ \text{shipments passing}) & = 3003 \times 0.3487 \times (1.00 \times 10^{-5})\\
P(10 \ \text{shipments passing}) & = 0.0105\end{align*}

Therefore, the probability that *exactly* 10 of the 15 shipments will pass inspection is 1.05%.

Using technology to check, you get the following:

### Review

- It is determined that because of a particular genetic trend in a family, the probability of having a boy is 60%. Janet and David decide to have 4 children. What is the probability that they will have
*exactly*2 boys? - What is the probability that out of 11 coin flips, 4 will come up tails?
- The probability of a spinner landing on the color yellow is 65%. What is the probability that when a spinner is spun 75 times, it lands on yellow 45 times?
- The probability of getting a 4 or greater on one roll of a fair die is 50%. If a fair die is rolled 25 times, what is the probability of getting a 4 or greater 14 times?
- The probability of Amy's alarm clock going off when it supposed to in the morning is 95%. If Amy sets her alarm all 7 days next week, what is the probability that it goes off when it is supposed to on 6 of those days?
- The probability of randomly guessing the correct answer to a question on a multiple-choice test is 20%. If the test consists of 20 multiple-choice questions, what is the probability of randomly guessing the correct answer to 8 of the questions?
- Bob is randomly choosing a card from a deck of cards and then replacing it. If he does this 15 times, what is the probability that he chooses a diamond 5 times?
- The probability that a game card given out to customers at a fast food restaurant is a winner is 10%. If the restaurant gives out 100 games cards in a day, what is the probability that 10 are winners?
- 10 people each randomly chose a digit from 0 to 9. What is the probability that none of the people chose a 6?
- Suppose that each year, the probability of getting your tax return audited is 18%. What is the probability of getting your tax return audited exactly once in the next 5 years?

### Review (Answers)

To view the Review answers, open this PDF file and look for section 4.3.