# 2. Basic Principles of Counting

## Counting

An efficient way of **counting** is necessary to handle large masses of statistical data (e.g. the level of inventory at the end of a given month, or the number of production runs on a given machine in a 24 hour period, etc.), and for an understanding of **probability**.

In this section, we shall develop a few counting techniques. Such techniques will enable us to count the following, without having to list all of the items:

### On this page...

- the number of ways,
- the number of samples, or
- the number of outcomes.

Before we learn some of the basic principles of counting, let's see some of the notation we'll need.

## Number of Outcomes of an Event

As an example, we may have an event *E *defined as

E= "day of the week"

We write the "number of outcomes of event *E*" as *n*(*E*).

So in the example,

`n(E) = 7`,

since there are `7` days in the week.

## Addition Rule

Let *E*_{1} and *E*_{2} be **mutually exclusive** events (i.e. there are no common outcomes).

Let event *E* describe the situation where either event *E*_{1} **or** event *E*_{2} will occur.

The number of times event *E* will occur can be given by the expression:

n(E) =n(E_{1}) +n(E_{2})

### Tip

In counting and probability, **"OR**" usually requires us to **ADD**.

where

n(E) = Number of outcomes of eventE

n(E_{1}) = Number of outcomes of eventE_{1}

n(E_{2}) = Number of outcomes of eventE_{2}

[We see more on mutually exclusive events later in this chapter.]

### Example 1

Consider a set of numbers `S = {-4, -2, 1, 3, 5, 6, 7, 8, 9, 10}`

Let the events *E*_{1}, *E*_{2} and *E*_{3} be defined as:

*E *= choosing a negative or an odd number from *S*;

*E*_{1}= choosing a negative number from S;

*E*_{2} = choosing an odd number from S.

Find *n*(*E*).

### Example 2

In how many ways can a number be chosen from `1` to `22` such that

(a) it is a multiple of `3` or `8`? (b) it is a multiple of `2` or `3`?

## Multiplication Rule

Now consider the case when two events *E*_{1} and *E*_{2} are to be performed and the events *E*_{1} and *E*_{2} are **independent** events i.e. one does not affect the other's outcome.

[We see more on independent events later in this chapter.]

### Example 3

Say the only clean clothes you've got are `2` t-shirts and `4` pairs of jeans. How many different combinations can you choose?

#### Answer

We can think of it as follows:

We have `2` t-shirts and with each t-shirt we could pick `4` pairs of jeans. Altogether there are

`2 × 4 = 8` possible combinations.

We could write

E_{1}= "choose t-shirt" and

E_{2}= "choose jeans"

## Multiplication Rule in General

Suppose that event *E*_{1} can result in any one of *n*(*E*_{1}) possible outcomes; and for each outcome of the event *E*_{1}, there are *n*(*E*_{2}) possible outcomes of event *E*_{2}.

Together there will be *n*(*E*_{1}) × *n*(*E*_{2}) possible outcomes of the two events.

### Tip

In counting and probability, **"AND"** usually requires us to **MULTIPLY**.

That is, if event *E* is the event that both *E*_{1} and *E*_{2} **must** occur, then

n(E) =n(E_{1}) ×n(E_{2})

In our example above,

n(E_{1}) = 2 (since we had 2 t-shirts)

n(E_{2}) = 4 (since there were 4 pairs of jeans)

So total number of possible outcomes is given by:

n(E) =n(E_{1}) ×n(E_{2}) = 2 × 4 = 8

### Example 4

What is the total number of possible outcomes when a pair of coins is tossed?

### Example 5

The life insurance policies of an insurance company are classified by:

- age of the insured:
- under 25 years,
- between 25 years and 50 years,
- over 50 years old;

- sex;
- marital status:
- single or
- married.

What is the total number of classifications?

### Example 6

For our clothes problem above, say we found `3` caps that we could wear with our `2` t-shirts and `4` pairs of jeans. How many different combinations could we choose from now?

### Example 7

Image source

In the excellent Monoface (external site), we can change the head, left and right eyes, nose and mouth of some zany guys who work at momo-1.com.

We are told that there are 759,375 possible faces. Where does this number come from?

If they were to let us change **the chin** as well, how many possible combinations would there be?

Didn't find what you are looking for on this page? Try **search**:

### Online Algebra Solver

This algebra solver can solve a wide range of math problems. (Please be patient while it loads.)

Go to: Online algebra solver

### Ready for a break?

Play a math game.

(Well, not really a math game, but each game was made using math...)

### The IntMath Newsletter

Sign up for the free **IntMath Newsletter**. Get math study tips, information, news and updates each fortnight. Join thousands of satisfied students, teachers and parents!

### Share IntMath!

### Short URL for this Page

Save typing! You can use this URL to reach this page:

intmath.com/counting

### Math Lessons on DVD

Easy to understand math lessons on DVD. See samples before you commit.

More info: Math videos