O'Reilly logo

Unity 4.x Game AI Programming by Thet Naing Swe, Aung Sithu Kyaw, Clifford Peters

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Definition of probability

There are many ways to define probability based on the situations and the domain context. The most commonly used notion of probability is to refer the possibility of an event to successfully occur. The probability of an event A to occur is usually written as P(A). To calculate P(A) we need to know the number of ways or times it can occur (n), and the total number of times all the other possible events can occur (N).

So the probability of an event A can be calculated as

P(A) = n / N

P(A) is the probability of the event A to occur, and it's equal to the number of ways that A can occur (n) out of the number of all outcomes (N). If P(A) is the probability of the event A to successfully occur, then the probability of the event ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required