When you are faced with constructing a joint probability table from a large set of data, Excel in my opinion is an ideal choice for helping with the task. The joint probability table supplies the probability of the observation which is sharing two characteristics. See here for more details:

www.cob.sjsu.edu

www.cob.sjsu.edu