CSE 630 Homework 6 Jason Kim 1. 12 sided die, and 4 sided die -1. What is the probability of rolling a 3 on the 12-sided die? 1/12 -2. What is the probability of rolling a 3 or greater on the 4-sided die? 1/2 -3. Rolling the two dice together, what is the probability of rolling a 5 (the total of the two dice)? P(4,1) + P(1,4) + P(2,3) + P(3,2) = 4 * 1/48 = 1/12 -1. What is the probability of scoring an 8? P(R1,R2), P(7,1) + P(1,7) + P(2,6) + P(6,2) + P(5,3) + P(3,5) + P(4,4) = 1/48 + 1/144 + 1/144 + 1/48 + 1/48 + 1/144 + 1/48 = 5/48 -2.. What is the probability of scoring a 6? P(R1,R2), P(1,5) + P(5,1) + P(2,4) + P(4,2) + P(3,3) = 1/144 + 1/48 + 1/144 + 1/48 + 1/144 = 1/16 2. -1. What is the probability of a team having good pitching, bad batting, and loosing a game? P(GoodPitching,BadBatting,Losing) = 1/8 -2. What is the probability of a team loosing a game given that they have good pitching and bad batting? P(Losing with GoodPitching and BadBatting) = 0.118 -3. No, if you have BadPitching and BadBatting your chances of losing are much higher. 3. The Process of creating a Spam Filter using Bayersian Reasoning basically uses a list of Words that are generally seen in Spam Emails, and compares them to how often they are seen in regular emails. You would first give a training program a set of words commonly seen in spam, and then have it go through some rough psuedo code: Training: input file read file, given file is spam file, build a list of words that are spam words. Classification: input email file read email, match words to list of spam words if certain amount of spam words are matched within the total words in the email by the percent chance that the email is spam then classify the email as spam or not spam. 4. Here's how my descicion tree spam filter program works. First the program displays the subject to a human person, the human person gives input of 1 or 2. based upon the input of 1 or 2 the decision tree travels down the left or right path of the tree respectively. If it travels down 1, then its spam. if it travels down 2 then its not spam. Full proof Method that will only fail if the human person thinks its not spam!