# Materials Science and Engineering/List of Topics/Statistical Mechanics/Probability/General Definitions

## Mathematical treatment

editIn mathematics a probability of an event, *A* is represented by a real number in the range from 0 to 1 and written as P(*A*), p(*A*) or Pr(*A*). An impossible event has a probability of 0, and a certain event has a probability of 1. However, the converses are not always true: probability 0 events are not always impossible, nor probability 1 events certain. The rather subtle distinction between "certain" and "probability 1" is treated at greater length in the article on "almost surely".

The chance of the opposite of an event P(not *A*) = 1-P(*A*), for example the chance of not rolling a six on a six-sided die is 1 - chance of rolling a six = .
If two events, *A* and *B* are independent then the joint probability is

for example if two coins are flipped the chance of both being heads is .

If two events are mutually exclusive then the probability of either occurring is

For example, the chance of rolling a 1 or 2 on a six-sided die is .

If the events are not mutually exclusive then

- .

*Conditional probability* is the probability of some event *A*, given the occurrence of some other event *B*.
Conditional probability is written *P*(*A*|*B*), and is read "the probability of *A*, given *B*". It is defined by

If then is undefined.

Event | Probability |
---|---|

A | |

not A | |

A or B | |

A and B | |

A given B |