DOC PREVIEW
CMU CS 10701 - Recitation

This preview shows page 1-2-3-4-5 out of 15 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 15 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 15 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 15 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 15 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 15 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 15 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

15-781 Machine Learning (Recitation 1)EntropyEntropy H(*)Specific Conditional Entropy H(Y|X=v)Slide 6Conditional Entropy H(Y|X)Conditional EntropyInformation GainDecision TreeSlide 11Tree pruningProbabilityTest your understandingSlide 1515-781 Machine Learning(Recitation 1)By Jimeng Sun9/15/05•Entropy, Information Gain•Decision Tree•ProbabilityEntropySuppose X can have one of m values… V1, V2, … Vm What’s the smallest possible number of bits, on average, per symbol, needed to transmit a stream of symbols drawn from X’s distribution? It’sH(X) = The entropy of X•“High Entropy” means X is from a uniform (boring) distribution•“Low Entropy” means X is from varied (peaks and valleys) distributionEntropymmppppppXH2222121logloglog)(  P(X=V1) = p1P(X=V2) = p2…. P(X=Vm) = pmmjjjpp12logEntropy H(*)H(X) = 1.5H(Y) = 1X = College MajorY = Likes “XBOX”X YMath YesHistory NoCS YesMath NoMath NoCS YesHistory NoMath YesDefinition of Specific Conditional Entropy: H(Y |X=v) = The entropy of Y among only those records in which X has value vX = College MajorY = Likes “XBOX”X YMath YesHistory NoCS YesMath NoMath NoCS YesHistory NoMath YesSpecific Conditional Entropy H(Y|X=v)Definition of Specific Conditional Entropy: H(Y |X=v) = The entropy of Y among only those records in which X has value vExample:• H(Y|X=Math) = 1• H(Y|X=History) = 0• H(Y|X=CS) = 0X = College MajorY = Likes “XBOX”X YMath YesHistory NoCS YesMath NoMath NoCS YesHistory NoMath YesSpecific Conditional Entropy H(Y|X=v)Conditional Entropy H(Y|X)Definition of Conditional Entropy:H(Y |X) = The average specific conditional entropy of Y= if you choose a record at random what will be the conditional entropy of Y, conditioned on that row’s value of X= Expected number of bits to transmit Y if both sides will know the value of X= Σj Prob(X=vj) H(Y | X = vj)X = College MajorY = Likes “XBOX”X YMath YesHistory NoCS YesMath NoMath NoCS YesHistory NoMath YesConditional EntropyDefinition of Conditional Entropy: H(Y|X) = The average conditional entropy of Y= ΣjProb(X=vj) H(Y | X = vj)X = College MajorY = Likes “XBOX”Example:vjProb(X=vj) H(Y | X = vj)Math 0.5 1History 0.25 0CS 0.25 0H(Y|X) = 0.5 * 1 + 0.25 * 0 + 0.25 * 0 = 0.5X YMath YesHistory NoCS YesMath NoMath NoCS YesHistory NoMath YesInformation GainDefinition of Information Gain: IG(Y|X) = I must transmit Y. How many bits on average would it save me if both ends of the line knew X?IG(Y|X) = H(Y) - H(Y | X)X = College MajorY = Likes “XBOX”Example:• H(Y) = 1• H(Y|X) = 0.5• Thus IG(Y|X) = 1 – 0.5 = 0.5X YMath YesHistory NoCS YesMath NoMath NoCS YesHistory NoMath YesDecision TreeTree pruningProbabilityTest your understanding? ][][][ does ever) (if When :Question YVarXVa rYXVar •All the time?•Only when X and Y are independent?•It can fail even if X and Y are


View Full Document

CMU CS 10701 - Recitation

Documents in this Course
lecture

lecture

12 pages

lecture

lecture

17 pages

HMMs

HMMs

40 pages

lecture

lecture

15 pages

lecture

lecture

20 pages

Notes

Notes

10 pages

Notes

Notes

15 pages

Lecture

Lecture

22 pages

Lecture

Lecture

13 pages

Lecture

Lecture

24 pages

Lecture9

Lecture9

38 pages

lecture

lecture

26 pages

lecture

lecture

13 pages

Lecture

Lecture

5 pages

lecture

lecture

18 pages

lecture

lecture

22 pages

Boosting

Boosting

11 pages

lecture

lecture

16 pages

lecture

lecture

20 pages

Lecture

Lecture

20 pages

Lecture

Lecture

39 pages

Lecture

Lecture

14 pages

Lecture

Lecture

18 pages

Lecture

Lecture

13 pages

Exam

Exam

10 pages

Lecture

Lecture

27 pages

Lecture

Lecture

15 pages

Lecture

Lecture

24 pages

Lecture

Lecture

16 pages

Lecture

Lecture

23 pages

Lecture6

Lecture6

28 pages

Notes

Notes

34 pages

lecture

lecture

15 pages

Midterm

Midterm

11 pages

lecture

lecture

11 pages

lecture

lecture

23 pages

Boosting

Boosting

35 pages

Lecture

Lecture

49 pages

Lecture

Lecture

22 pages

Lecture

Lecture

16 pages

Lecture

Lecture

18 pages

Lecture

Lecture

35 pages

lecture

lecture

22 pages

lecture

lecture

24 pages

Midterm

Midterm

17 pages

exam

exam

15 pages

Lecture12

Lecture12

32 pages

lecture

lecture

19 pages

Lecture

Lecture

32 pages

boosting

boosting

11 pages

pca-mdps

pca-mdps

56 pages

bns

bns

45 pages

mdps

mdps

42 pages

svms

svms

10 pages

Notes

Notes

12 pages

lecture

lecture

42 pages

lecture

lecture

29 pages

lecture

lecture

15 pages

Lecture

Lecture

12 pages

Lecture

Lecture

24 pages

Lecture

Lecture

22 pages

Midterm

Midterm

5 pages

mdps-rl

mdps-rl

26 pages

Load more
Download Recitation
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Recitation and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Recitation 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?