You are on page 1of 1

http://www1.gantep.edu.tr/~andrew/eee283/topics.php 18.01.

2014

EEE283 Exercises for Topic 2: Probability and set theory. Joint and conditional probability.

The exercises below are theoretically very basic. The aim is to provide computational tasks to familiarise the student
with the experimental approach to calculating probabilities.

I suggest you first solve the questions theoretically, then write computer programs to obtain the result
experimentally.

Remember that the probability of event A, in terms of frequency, is given by

Note: In C++ the statement:


1 + rand() % k
provides pseudo-random integer numbers in the range 1 to k, inclusive.
In MATLAB the statement is:
randi(k).

Exercises

1. All possible outcomes of a random process are given in the universal set S = {1, 2, 3, 4, 5, 6, 7, 8, 9}.
Let set A = {2, 4, 6, 7, 8} and set B = {1, 2, 3, 4}. Give that each outcome is equally likely, calculate the following
probabilities: P(A), P(B), P(A B), P(A B), P(A|B)
A: 5/9, 4/9, 2/9, 7/9, 1/2.

You might also like