In this lab, we will be taking a text file, ‘shakespeare.txt’ containing the collection of writings from William Shakespeare. We will be tokenizing the text file and calculate probability of occurrence of terms, conditional probabilities, probabilities of dependent or independent occurrences and to make some predictions.