SlideShare a Scribd company logo
Lecture 7 : Intro to Machine Learning Rachel Greenstadt & Mike Brennan November 10, 2008
Reminders Machine Learning exercise out today We’ll go over it Due before class 11/24
Machine Learning Definition: the study of computer algorithms that improve automatically through experience Formally: Improve at task T with respect to performance measure P based on experience E Example: Learning to play Backgammon T:  play backgammon P:  number of games won E:  data about previously played games
Where is ML useful? Self-customizing software spam filters, learning user preferences Data mining medical records, credit fraud Software that can’t be written by hand speech recognition, autonomous driving Other examples?
Learning agents
Learning element Design of a learning element is affected by Which components of the performance element are to be learned What feedback is available to learn these components What representation is used for the components Type of feedback: Supervised learning : correct answers for each example Unsupervised learning : correct answers not given Reinforcement learning : occasional rewards
Inductive Learning Supervised “ Teacher” provides labeled examples Opposite of unsupervised, e.g. clustering Inductive Inference Given: samples of an unknown function f (x, f(x)) pairs Goal: find a function h that approximates f
Machine Learning terms Supervised examples Training set  :  set of examples used to improve the algorithm Test set : set of examples set aside to evaluate the algorithm based on performance measure
Inductive Learning Construct/adjust h to agree with f on training set (the supervised examples) (h is consistent if it agrees with f on all examples) E.g. curve-fitting
Inductive Learning Construct/adjust h to agree with f on training set (the supervised examples) (h is consistent if it agrees with f on all examples) E.g. curve-fitting
Inductive Learning Construct/adjust h to agree with f on training set (the supervised examples) (h is consistent if it agrees with f on all examples) E.g. curve-fitting
Inductive Learning Construct/adjust h to agree with f on training set (the supervised examples) (h is consistent if it agrees with f on all examples) E.g. curve-fitting
Inductive Learning Construct/adjust h to agree with f on training set (the supervised examples) (h is consistent if it agrees with f on all examples) E.g. curve-fitting Occam’s razor:  prefer the simplest hypothesis  consistent with the data
Induction Task Example Given: 9714 patient records, each describing a pregnancy and a birth Each record contains 215 features Learn to predict which future patients are at high risk of C-section
Induction Task Example
Decision Trees : PlayTennis
Decision Trees Representation: Each internal node tests an attribute Each branch is an attribute value Each leaf assigns a classification
Expressiveness Decision trees can express any function of the input attributes. E.g., for Boolean functions, truth table row -> path to leaf: Trivially, there is a consistent decision tree for any training set with one path to leaf for each example (unless  f  nondeterministic in  x ) but it probably won't generalize to new examples Prefer to find more  compact  decision trees
Hypothesis spaces How many distinct decision trees with  n  Boolean attributes? = number of Boolean functions = number of distinct truth tables with 2 n  rows = 2 2 n E.g., with 6 Boolean attributes, there are 18,446,744,073,709,551,616 trees How many purely conjunctive hypotheses (e.g.,  Hungry  ∧    Rain )? Each attribute can be in (positive), in (negative), or out ⇒   3 n  distinct conjunctive hypotheses More expressive hypothesis space increases chance that target function can be expressed increases number of hypotheses consistent with training set ⇒   may get worse predictions
Decision tree learning Aim: find a small tree consistent with the training examples Idea: (recursively) choose "most significant" attribute as root of (sub)tree
Choosing an attribute Idea: a good attribute splits the examples into subsets that are (ideally) "all positive" or "all negative" Patrons?  is a better choice
Learning decision trees Problem: decide whether to wait for a table at a restaurant, based on the following attributes: Alternate: is there an alternative restaurant nearby? Bar: is there a comfortable bar area to wait in? Fri/Sat: is today Friday or Saturday? Hungry: are we hungry? Patrons: number of people in the restaurant (None, Some, Full) Price: price range ($, $$, $$$) Raining: is it raining outside? Reservation: have we made a reservation? Type: kind of restaurant (French, Italian, Thai, Burger) WaitEstimate: estimated waiting time (0-10, 10-30, 30-60, >60)
Attribute-based representations Examples described by  attribute values  (Boolean, discrete, continuous) E.g., situations where I will/won't wait for a table: Classification  of examples is  positive  (T) or  negative  (F) Exercise : Build a consistent decision tree from the examples
Decision trees One possible representation for hypotheses E.g., here is the “true” tree for deciding whether to wait:
Entropy I(P(v 1 ),...,P(v n )) = Sum i=1..n  (-P(v i )log 2 P(v i )) Tossing a fair coin I(1/2,1/2) - 1/2 log 2 1/2 - 1/2log 2 1/2 = 1 bit If we weight the coin, information gain by tossing is reduced
Information gain A chosen attribute  A  divides the training set  E  into subsets  E 1 , … ,  E v  according to their values for  A , where  A  has  v  distinct values.  Information Gain (IG) or reduction in entropy from the attribute test: remainder(A)  is the remaining uncertainty after splitting on the attribute Choose the attribute with the largest IG
Information gain For the training set,  p  =  n  = 6, I(6/12, 6/12) = 1  bit Consider the attributes  Patrons  and  Type  (and others too): Patrons  has the highest IG of all attributes and so is chosen by the DTL algorithm as the root
Example contd. Decision tree learned from the 12 examples: Substantially simpler than “true” tree---a more complex hypothesis isn’t justified by small amount of data
Build a decision tree Whether or not to move forward at an intersection, given the light has just turned green.
Solution tree
Performance measurement How do we know that  h ≈ f  ? Use theorems of computational/statistical learning theory Try  h  on a new  test set  of examples (use  same  distribution over example space as training set) Learning curve  = % correct on test set as a function of training set size
Question Suppose we generate a training set from a decision tree and then apply decision tree learning to that training set.  Is it the case that the learning algorithm will eventually return the correct tree as the training set goes to infinity?  Why or why not?
Summary Learning needed for unknown environments, lazy designers Learning agent = performance element + learning element For supervised learning, the aim is to find a simple hypothesis approximately consistent with training examples Decision tree learning using information gain  Learning performance = prediction accuracy measured on test set
Bayesian Learning Conditional probability Bayesian classifiers Assignment Information Retrieval performance measures
Bayes’ Theorem If P(h) > 0, then P(h|d) = [P(d|h)P(h)]/P(d) Can be derived from conditional probability P(A|B) = P(A ^ B)/P(B) P(d|h) is  likelihood , P(h|d) is  posterior ,  P(h) is  prior , P(d) is  α
Bayesian Exercises Bayes: P(h|d) = [P(d|h)P(h)]/P(d) Conditional: P(A|B) = P(A ^ B)/P(B) A patient takes a lab test and the result comes back positive. The test has a false negative rate of 2% and false positive rate of 2%. Furthermore, 0.5% of the entire population have this cancer.  What is the probability of cancer if we know the test result is positive? A math teacher gave her class two tests.  25% of the class passed both tests and 42% of the class passed the first test.  What is the probability that a student who passed the first test also passed the second test?
Bayesian Learning Example
Bayesian Learning Curve for Example
Bayesian Learning Example
Naive Bayesian classifier Why naive?  Makes independence assumptions which may not hold... Goal : given a  target , determine which  class  it belongs to, based on the prior probabilities of  features  in the target In our case we’re looking to classify movie reviews as positive, negative, or neutral Shouldn’t be too hard <200 lines of code
Classifying reviews: Changeling Eastwood is a brilliant filmmaker who leaves nothing to chance. The details of the era are sensational. Though gripping at times, the pace of the movie plods along with all deliberate speed that might prompt occasional glances at the wristwatch.
How to Classify? Need to pick a set of features to use to distinguish positive and negative reviews Starting feature : words, consider the frequency of words in positive and negative reviews You will use this feature, and come up with one of your own
How to classify Compute product of all  conditional probabilities  of each of the features of the document, multiplied by the  prior probability  of any document being a member of the class Consider  f  a set of  n  features of document  d
Evaluating Your Classifier Precision  - fraction of documents properly classified or  positive predictive value  True positives/(true positives + false positives) Recall  - the percentage of true positives ( sensitivity ) correctly identified (True positives ^ Identified Positives) / True positives f-measure  - the weighted harmonic mean of precision and recall F 1 = (2 * precision * recall) / (precision + recall) More generally F β  = [(1 + β 2 ) (precision * recall)]/(β 2  * precision + recall) Other things to think about: Proper sampling, cross validating.
Readings Nilesh Dalvi, Pedro Domingos, Mausam Sumit, Sanghai Deepak Verma.  Adversarial Classification . in Proceedings of the Tenth International Conference on Knowledge Discovery and Data Mining (KDD), 2004.

More Related Content

PDF
Causal Inference in Data Science and Machine Learning
PPTX
Dowhy: An end-to-end library for causal inference
PPTX
Alleviating Privacy Attacks Using Causal Models
PPTX
DoWhy Python library for causal inference: An End-to-End tool
PPTX
Machine Learning and Causal Inference
PPTX
Hypothesis Testing: Proportions (Compare 2+ Factors)
PPTX
Machine learning session6(decision trees random forrest)
PDF
Module 4: Model Selection and Evaluation
Causal Inference in Data Science and Machine Learning
Dowhy: An end-to-end library for causal inference
Alleviating Privacy Attacks Using Causal Models
DoWhy Python library for causal inference: An End-to-End tool
Machine Learning and Causal Inference
Hypothesis Testing: Proportions (Compare 2+ Factors)
Machine learning session6(decision trees random forrest)
Module 4: Model Selection and Evaluation

What's hot (19)

PPTX
Introduction to simulating data to improve your research
PPTX
Hypothesis Testing: Relationships (Compare 1:1)
PPTX
Hypothesis Testing: Central Tendency – Non-Normal (Compare 1:Standard)
PDF
Module 6: Ensemble Algorithms
PPTX
Hypothesis Testing: Spread (Compare 1:Standard)
PPTX
Hypothesis Testing: Central Tendency – Normal (Compare 1:1)
PDF
Module 5: Decision Trees
PPTX
To explain or to predict
PDF
Module 3: Linear Regression
PDF
Nbe rtopicsandrecomvlecture1
PDF
Module 2: Machine Learning Deep Dive
PPTX
To Explain, To Predict, or To Describe?
PPTX
Repurposing predictive tools for causal research
PPTX
Hypothesis Testing: Proportions (Compare 1:Standard)
PPTX
Missing Data and data imputation techniques
PPTX
Predictive Model Selection in PLS-PM (SCECR 2015)
PPTX
Hypothesis Testing: Central Tendency – Non-Normal (Nonparametric Overview)
PPTX
Repurposing Classification & Regression Trees for Causal Research with High-D...
PPTX
Machine Learning Algorithms | Machine Learning Tutorial | Data Science Algori...
Introduction to simulating data to improve your research
Hypothesis Testing: Relationships (Compare 1:1)
Hypothesis Testing: Central Tendency – Non-Normal (Compare 1:Standard)
Module 6: Ensemble Algorithms
Hypothesis Testing: Spread (Compare 1:Standard)
Hypothesis Testing: Central Tendency – Normal (Compare 1:1)
Module 5: Decision Trees
To explain or to predict
Module 3: Linear Regression
Nbe rtopicsandrecomvlecture1
Module 2: Machine Learning Deep Dive
To Explain, To Predict, or To Describe?
Repurposing predictive tools for causal research
Hypothesis Testing: Proportions (Compare 1:Standard)
Missing Data and data imputation techniques
Predictive Model Selection in PLS-PM (SCECR 2015)
Hypothesis Testing: Central Tendency – Non-Normal (Nonparametric Overview)
Repurposing Classification & Regression Trees for Causal Research with High-D...
Machine Learning Algorithms | Machine Learning Tutorial | Data Science Algori...
Ad

Viewers also liked (8)

DOC
Web Design
DOC
Curriculum Vitae
DOC
Technical Paper.doc.doc
DOC
MS word document.doc
DOC
Intermediate Web Design.doc
DOCX
Old Dominion University
DOCX
Old Dominion University
DOCX
Angel and Bridge
Web Design
Curriculum Vitae
Technical Paper.doc.doc
MS word document.doc
Intermediate Web Design.doc
Old Dominion University
Old Dominion University
Angel and Bridge
Ad

Similar to Lecture 7 (20)

PPT
Machine Learning
PPT
Machine Learning: Decision Trees Chapter 18.1-18.3
PPT
S10
PPT
S10
PPT
ppt
PPT
3_learning.ppt
PPT
M18 learning
PPT
Machine Learning and Inductive Inference
PPT
ML_Lecture_2 well posed algorithm find s.ppt
PPT
Machine Learning
PPT
belajar untuk pandai lagui lah Your score increases as yo .ppt
PPT
m18-learning Learning from Observations
PPTX
Lecture04_Concept Learning_ FindS Algorithm.pptx
PPT
Download presentation source
PPT
Machine learning by Dr. Vivek Vijay and Dr. Sandeep Yadav
PPT
Introduction to machine learning
PPT
lecture_mooney.ppt
PDF
Decision tree learning
PPT
chap4_Parametric_Methods.ppt
PPTX
Probabilistic Reasoning
Machine Learning
Machine Learning: Decision Trees Chapter 18.1-18.3
S10
S10
ppt
3_learning.ppt
M18 learning
Machine Learning and Inductive Inference
ML_Lecture_2 well posed algorithm find s.ppt
Machine Learning
belajar untuk pandai lagui lah Your score increases as yo .ppt
m18-learning Learning from Observations
Lecture04_Concept Learning_ FindS Algorithm.pptx
Download presentation source
Machine learning by Dr. Vivek Vijay and Dr. Sandeep Yadav
Introduction to machine learning
lecture_mooney.ppt
Decision tree learning
chap4_Parametric_Methods.ppt
Probabilistic Reasoning

More from butest (20)

PDF
EL MODELO DE NEGOCIO DE YOUTUBE
DOC
1. MPEG I.B.P frame之不同
PDF
LESSONS FROM THE MICHAEL JACKSON TRIAL
PPT
Timeline: The Life of Michael Jackson
DOCX
Popular Reading Last Updated April 1, 2010 Adams, Lorraine The ...
PDF
LESSONS FROM THE MICHAEL JACKSON TRIAL
PPTX
Com 380, Summer II
PPT
PPT
DOCX
The MYnstrel Free Press Volume 2: Economic Struggles, Meet Jazz
DOC
MICHAEL JACKSON.doc
PPTX
Social Networks: Twitter Facebook SL - Slide 1
PPT
Facebook
DOCX
Executive Summary Hare Chevrolet is a General Motors dealership ...
DOC
Welcome to the Dougherty County Public Library's Facebook and ...
DOC
NEWS ANNOUNCEMENT
DOC
C-2100 Ultra Zoom.doc
DOC
MAC Printing on ITS Printers.doc.doc
DOC
Mac OS X Guide.doc
DOC
hier
DOC
WEB DESIGN!
EL MODELO DE NEGOCIO DE YOUTUBE
1. MPEG I.B.P frame之不同
LESSONS FROM THE MICHAEL JACKSON TRIAL
Timeline: The Life of Michael Jackson
Popular Reading Last Updated April 1, 2010 Adams, Lorraine The ...
LESSONS FROM THE MICHAEL JACKSON TRIAL
Com 380, Summer II
PPT
The MYnstrel Free Press Volume 2: Economic Struggles, Meet Jazz
MICHAEL JACKSON.doc
Social Networks: Twitter Facebook SL - Slide 1
Facebook
Executive Summary Hare Chevrolet is a General Motors dealership ...
Welcome to the Dougherty County Public Library's Facebook and ...
NEWS ANNOUNCEMENT
C-2100 Ultra Zoom.doc
MAC Printing on ITS Printers.doc.doc
Mac OS X Guide.doc
hier
WEB DESIGN!

Lecture 7

  • 1. Lecture 7 : Intro to Machine Learning Rachel Greenstadt & Mike Brennan November 10, 2008
  • 2. Reminders Machine Learning exercise out today We’ll go over it Due before class 11/24
  • 3. Machine Learning Definition: the study of computer algorithms that improve automatically through experience Formally: Improve at task T with respect to performance measure P based on experience E Example: Learning to play Backgammon T: play backgammon P: number of games won E: data about previously played games
  • 4. Where is ML useful? Self-customizing software spam filters, learning user preferences Data mining medical records, credit fraud Software that can’t be written by hand speech recognition, autonomous driving Other examples?
  • 6. Learning element Design of a learning element is affected by Which components of the performance element are to be learned What feedback is available to learn these components What representation is used for the components Type of feedback: Supervised learning : correct answers for each example Unsupervised learning : correct answers not given Reinforcement learning : occasional rewards
  • 7. Inductive Learning Supervised “ Teacher” provides labeled examples Opposite of unsupervised, e.g. clustering Inductive Inference Given: samples of an unknown function f (x, f(x)) pairs Goal: find a function h that approximates f
  • 8. Machine Learning terms Supervised examples Training set : set of examples used to improve the algorithm Test set : set of examples set aside to evaluate the algorithm based on performance measure
  • 9. Inductive Learning Construct/adjust h to agree with f on training set (the supervised examples) (h is consistent if it agrees with f on all examples) E.g. curve-fitting
  • 10. Inductive Learning Construct/adjust h to agree with f on training set (the supervised examples) (h is consistent if it agrees with f on all examples) E.g. curve-fitting
  • 11. Inductive Learning Construct/adjust h to agree with f on training set (the supervised examples) (h is consistent if it agrees with f on all examples) E.g. curve-fitting
  • 12. Inductive Learning Construct/adjust h to agree with f on training set (the supervised examples) (h is consistent if it agrees with f on all examples) E.g. curve-fitting
  • 13. Inductive Learning Construct/adjust h to agree with f on training set (the supervised examples) (h is consistent if it agrees with f on all examples) E.g. curve-fitting Occam’s razor: prefer the simplest hypothesis consistent with the data
  • 14. Induction Task Example Given: 9714 patient records, each describing a pregnancy and a birth Each record contains 215 features Learn to predict which future patients are at high risk of C-section
  • 16. Decision Trees : PlayTennis
  • 17. Decision Trees Representation: Each internal node tests an attribute Each branch is an attribute value Each leaf assigns a classification
  • 18. Expressiveness Decision trees can express any function of the input attributes. E.g., for Boolean functions, truth table row -> path to leaf: Trivially, there is a consistent decision tree for any training set with one path to leaf for each example (unless f nondeterministic in x ) but it probably won't generalize to new examples Prefer to find more compact decision trees
  • 19. Hypothesis spaces How many distinct decision trees with n Boolean attributes? = number of Boolean functions = number of distinct truth tables with 2 n rows = 2 2 n E.g., with 6 Boolean attributes, there are 18,446,744,073,709,551,616 trees How many purely conjunctive hypotheses (e.g., Hungry ∧  Rain )? Each attribute can be in (positive), in (negative), or out ⇒ 3 n distinct conjunctive hypotheses More expressive hypothesis space increases chance that target function can be expressed increases number of hypotheses consistent with training set ⇒ may get worse predictions
  • 20. Decision tree learning Aim: find a small tree consistent with the training examples Idea: (recursively) choose &quot;most significant&quot; attribute as root of (sub)tree
  • 21. Choosing an attribute Idea: a good attribute splits the examples into subsets that are (ideally) &quot;all positive&quot; or &quot;all negative&quot; Patrons? is a better choice
  • 22. Learning decision trees Problem: decide whether to wait for a table at a restaurant, based on the following attributes: Alternate: is there an alternative restaurant nearby? Bar: is there a comfortable bar area to wait in? Fri/Sat: is today Friday or Saturday? Hungry: are we hungry? Patrons: number of people in the restaurant (None, Some, Full) Price: price range ($, $$, $$$) Raining: is it raining outside? Reservation: have we made a reservation? Type: kind of restaurant (French, Italian, Thai, Burger) WaitEstimate: estimated waiting time (0-10, 10-30, 30-60, >60)
  • 23. Attribute-based representations Examples described by attribute values (Boolean, discrete, continuous) E.g., situations where I will/won't wait for a table: Classification of examples is positive (T) or negative (F) Exercise : Build a consistent decision tree from the examples
  • 24. Decision trees One possible representation for hypotheses E.g., here is the “true” tree for deciding whether to wait:
  • 25. Entropy I(P(v 1 ),...,P(v n )) = Sum i=1..n (-P(v i )log 2 P(v i )) Tossing a fair coin I(1/2,1/2) - 1/2 log 2 1/2 - 1/2log 2 1/2 = 1 bit If we weight the coin, information gain by tossing is reduced
  • 26. Information gain A chosen attribute A divides the training set E into subsets E 1 , … , E v according to their values for A , where A has v distinct values. Information Gain (IG) or reduction in entropy from the attribute test: remainder(A) is the remaining uncertainty after splitting on the attribute Choose the attribute with the largest IG
  • 27. Information gain For the training set, p = n = 6, I(6/12, 6/12) = 1 bit Consider the attributes Patrons and Type (and others too): Patrons has the highest IG of all attributes and so is chosen by the DTL algorithm as the root
  • 28. Example contd. Decision tree learned from the 12 examples: Substantially simpler than “true” tree---a more complex hypothesis isn’t justified by small amount of data
  • 29. Build a decision tree Whether or not to move forward at an intersection, given the light has just turned green.
  • 31. Performance measurement How do we know that h ≈ f ? Use theorems of computational/statistical learning theory Try h on a new test set of examples (use same distribution over example space as training set) Learning curve = % correct on test set as a function of training set size
  • 32. Question Suppose we generate a training set from a decision tree and then apply decision tree learning to that training set. Is it the case that the learning algorithm will eventually return the correct tree as the training set goes to infinity? Why or why not?
  • 33. Summary Learning needed for unknown environments, lazy designers Learning agent = performance element + learning element For supervised learning, the aim is to find a simple hypothesis approximately consistent with training examples Decision tree learning using information gain Learning performance = prediction accuracy measured on test set
  • 34. Bayesian Learning Conditional probability Bayesian classifiers Assignment Information Retrieval performance measures
  • 35. Bayes’ Theorem If P(h) > 0, then P(h|d) = [P(d|h)P(h)]/P(d) Can be derived from conditional probability P(A|B) = P(A ^ B)/P(B) P(d|h) is likelihood , P(h|d) is posterior , P(h) is prior , P(d) is α
  • 36. Bayesian Exercises Bayes: P(h|d) = [P(d|h)P(h)]/P(d) Conditional: P(A|B) = P(A ^ B)/P(B) A patient takes a lab test and the result comes back positive. The test has a false negative rate of 2% and false positive rate of 2%. Furthermore, 0.5% of the entire population have this cancer. What is the probability of cancer if we know the test result is positive? A math teacher gave her class two tests. 25% of the class passed both tests and 42% of the class passed the first test. What is the probability that a student who passed the first test also passed the second test?
  • 38. Bayesian Learning Curve for Example
  • 40. Naive Bayesian classifier Why naive? Makes independence assumptions which may not hold... Goal : given a target , determine which class it belongs to, based on the prior probabilities of features in the target In our case we’re looking to classify movie reviews as positive, negative, or neutral Shouldn’t be too hard <200 lines of code
  • 41. Classifying reviews: Changeling Eastwood is a brilliant filmmaker who leaves nothing to chance. The details of the era are sensational. Though gripping at times, the pace of the movie plods along with all deliberate speed that might prompt occasional glances at the wristwatch.
  • 42. How to Classify? Need to pick a set of features to use to distinguish positive and negative reviews Starting feature : words, consider the frequency of words in positive and negative reviews You will use this feature, and come up with one of your own
  • 43. How to classify Compute product of all conditional probabilities of each of the features of the document, multiplied by the prior probability of any document being a member of the class Consider f a set of n features of document d
  • 44. Evaluating Your Classifier Precision - fraction of documents properly classified or positive predictive value True positives/(true positives + false positives) Recall - the percentage of true positives ( sensitivity ) correctly identified (True positives ^ Identified Positives) / True positives f-measure - the weighted harmonic mean of precision and recall F 1 = (2 * precision * recall) / (precision + recall) More generally F β = [(1 + β 2 ) (precision * recall)]/(β 2 * precision + recall) Other things to think about: Proper sampling, cross validating.
  • 45. Readings Nilesh Dalvi, Pedro Domingos, Mausam Sumit, Sanghai Deepak Verma. Adversarial Classification . in Proceedings of the Tenth International Conference on Knowledge Discovery and Data Mining (KDD), 2004.

Editor's Notes

  • #7: Most important part of a ML system is the learning element. Spam filter: learning element has figured out which words indicate something is spam. Usually starts from some training set, adjusted by “report spam” button.
  • #8: Explain basic example of training and testing sets Explain basic idea of a classifier
  • #33: The algorithm may not return the same tree, but it will return a tree that is logically equivalent, assuming that the method for generating the training set eventually generates all possible combinations of attributes. For example, if the method picks the value of each attribute uniformly at random, the probability that it generates all possible combinations goes to one when the training set goes to infinity. The form of the tree may not be the same, because there are multiple ways of representing the same logical function.
  • #36: Go over terminology on the board
  • #37: 1)P(C | +) = P(+|C)*P(C) / P(+) = P(+|C)*P(C) / [P(+|C)*P(C) + P(+|~C)*P(~C)] (.98*.005)/(.98*.005+.02*.995) = 0.1976 2) P(Second|First) = P(First and Second) / P(First) = 0.25/0.42 = 0.60 = 60%
  • #41: Go over: -pickling -dictionaries