# The addition rule in probability states that, for two events E1 and E2, the probability that one or the other

This problem has been solved!

Do you need an answer to a question different from the above? Ask your question!

## Question:

The addition rule in probability states that, for two events E1 and E2, the probability that one or the other of the events (possibly both) occurs is given by:

P(E1 or E2) = P(E1) + P(E2) - P(E1 and E2)

Program a calculator function that accepts the probabilities of E1, E2, and (E1 and E2) and then calculates the probability (E1 or E2) according to this formula.

However, there are a couple of things you should check:

All probabilities should be between 0 and 1

• The probability that events E1 and E2 both occur should not be greater than the probability of either of the individual events.

**Related Book For**

## Introduction to Operations Research

ISBN: 978-1259162985

10th edition

Authors: Frederick S. Hillier, Gerald J. Lieberman

**View Solution**

Create a free account to access the answer

**Cannot find your solution?**

Post a FREE question now and get an answer within minutes.
* Average response time.