welcome to cs109a - web.stanford.edu€¦ · = (0, 0) yields etx = 2, which gives us the prediction...

23
Welcome to CS109A Gili Rusak

Upload: others

Post on 26-Feb-2021

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Welcome to CS109A - web.stanford.edu€¦ · = (0, 0) yields eTx = 2, which gives us the prediction = 1. See the graph above, to the right of the original. The two parts of this problem

Welcome to CS109AGili Rusak

Page 2: Welcome to CS109A - web.stanford.edu€¦ · = (0, 0) yields eTx = 2, which gives us the prediction = 1. See the graph above, to the right of the original. The two parts of this problem

Agenda● Logistic Regression*● Bootstrapping Example*● Naive Bayes*● Bivariate Normal distribution*

* Review for Quiz 3

Page 3: Welcome to CS109A - web.stanford.edu€¦ · = (0, 0) yields eTx = 2, which gives us the prediction = 1. See the graph above, to the right of the original. The two parts of this problem

Logistic Regression Prediction

Page 4: Welcome to CS109A - web.stanford.edu€¦ · = (0, 0) yields eTx = 2, which gives us the prediction = 1. See the graph above, to the right of the original. The two parts of this problem

Logistic Regression Prediction

Page 5: Welcome to CS109A - web.stanford.edu€¦ · = (0, 0) yields eTx = 2, which gives us the prediction = 1. See the graph above, to the right of the original. The two parts of this problem

Logistic Regression Prediction

Page 6: Welcome to CS109A - web.stanford.edu€¦ · = (0, 0) yields eTx = 2, which gives us the prediction = 1. See the graph above, to the right of the original. The two parts of this problem

Logistic Regression Prediction

Page 7: Welcome to CS109A - web.stanford.edu€¦ · = (0, 0) yields eTx = 2, which gives us the prediction = 1. See the graph above, to the right of the original. The two parts of this problem

Logistic Regression Training

Page 8: Welcome to CS109A - web.stanford.edu€¦ · = (0, 0) yields eTx = 2, which gives us the prediction = 1. See the graph above, to the right of the original. The two parts of this problem

Logistic Regression Training

Page 9: Welcome to CS109A - web.stanford.edu€¦ · = (0, 0) yields eTx = 2, which gives us the prediction = 1. See the graph above, to the right of the original. The two parts of this problem

Logistic Regression Training

Page 10: Welcome to CS109A - web.stanford.edu€¦ · = (0, 0) yields eTx = 2, which gives us the prediction = 1. See the graph above, to the right of the original. The two parts of this problem

Logistic Regression Training Solution

Page 11: Welcome to CS109A - web.stanford.edu€¦ · = (0, 0) yields eTx = 2, which gives us the prediction = 1. See the graph above, to the right of the original. The two parts of this problem

Naive Bayes Example

Page 12: Welcome to CS109A - web.stanford.edu€¦ · = (0, 0) yields eTx = 2, which gives us the prediction = 1. See the graph above, to the right of the original. The two parts of this problem

Naive Bayes Example

Page 13: Welcome to CS109A - web.stanford.edu€¦ · = (0, 0) yields eTx = 2, which gives us the prediction = 1. See the graph above, to the right of the original. The two parts of this problem

Naive Bayes Example

Page 14: Welcome to CS109A - web.stanford.edu€¦ · = (0, 0) yields eTx = 2, which gives us the prediction = 1. See the graph above, to the right of the original. The two parts of this problem

Naive Bayes Example

P(Y = 1) = 5/9

Page 15: Welcome to CS109A - web.stanford.edu€¦ · = (0, 0) yields eTx = 2, which gives us the prediction = 1. See the graph above, to the right of the original. The two parts of this problem

Naive Bayes Example

Page 16: Welcome to CS109A - web.stanford.edu€¦ · = (0, 0) yields eTx = 2, which gives us the prediction = 1. See the graph above, to the right of the original. The two parts of this problem

Naive Bayes Example

Page 17: Welcome to CS109A - web.stanford.edu€¦ · = (0, 0) yields eTx = 2, which gives us the prediction = 1. See the graph above, to the right of the original. The two parts of this problem

Bootstrapping Example

Page 18: Welcome to CS109A - web.stanford.edu€¦ · = (0, 0) yields eTx = 2, which gives us the prediction = 1. See the graph above, to the right of the original. The two parts of this problem

Bootstrapping Example Solution

Page 19: Welcome to CS109A - web.stanford.edu€¦ · = (0, 0) yields eTx = 2, which gives us the prediction = 1. See the graph above, to the right of the original. The two parts of this problem

Bootstrapping Example

Page 20: Welcome to CS109A - web.stanford.edu€¦ · = (0, 0) yields eTx = 2, which gives us the prediction = 1. See the graph above, to the right of the original. The two parts of this problem

Bootstrapping Example

Page 21: Welcome to CS109A - web.stanford.edu€¦ · = (0, 0) yields eTx = 2, which gives us the prediction = 1. See the graph above, to the right of the original. The two parts of this problem

Bivariate Normal Distribution

Page 22: Welcome to CS109A - web.stanford.edu€¦ · = (0, 0) yields eTx = 2, which gives us the prediction = 1. See the graph above, to the right of the original. The two parts of this problem

Bivariate Normal Distribution

Page 23: Welcome to CS109A - web.stanford.edu€¦ · = (0, 0) yields eTx = 2, which gives us the prediction = 1. See the graph above, to the right of the original. The two parts of this problem

Thanks for a great quarter!