Preview

Problem Set 1

Satisfactory Essays
Open Document
Open Document
232 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Problem Set 1
CS578/STAT590: Introduction to Machine Learning

Fall 2014

Problem Set 1
Joon Hee Choi

Handed In: 09/14/2014

Review Questions
1.
2.

3.



∂f
∂x

= 6x − y − 11,

∂f
∂y



∂f
∂x

= 6x − y − 11 = 0,

= 2y − x
∂f
∂y

= 2y − x = 0 ⇒ x = 2, y = 1 ⇒ (x, y) = (2, 1)

• (a) n = 2 w1 x1 and x =
. Then, w2 x2 wT x + b = w1 x1 + w2 x2 + b = 0 ⇒ −x1b +

Let w =

w1

x2
− wb

=1

2

(b) n = 3




 w1 x1
Let w =  w2  and x =  x2  . Then, w3 x3
T
w x + b = w1 x1 + w2 x2 + w3 x3 + b = 0 ⇒ −x1b + −x2b + −x3b = 1 w1 w2 w3 



x1 w1  x2 
 w2 




• Let w =  ..  and x =  .. . The distance between two hyperplanes is
 . 
 .  xn wn the same as the distance between a point (− wb11 , 0, ..., 0) on wT x + b1 = 0 and a hyperplane wT x + b2 = 0. Therefore,
D=

| − b1 + b 2 | w12 +

w22

Basic Concepts
1.
2.
3.
4.

1

|b1 − b2 |
= √
+ ... + wn2 wT w

Joon Hee Choi

2

Decision Trees
1.

7
7
• Entropy(S) = − 11 log2 ( 11
)−

4
4
log2 ( 11
)
11

= 0.946

2.
3.



Pages: 45 50 72 100 120 142 150
Class: N Y Y N
Y
Y
Y
Thresholds : 47.5, 86, 110, 175, 250, 675

200
N

300
Y

350
Y

(a) Threshold(T h) = 47.5
Entropy(ST h<47.5 ) = 0
7
3
3
7 log2 ( 10
) − 10 log2 ( 10
) = 0.881
Entropy(ST h≥47.5 ) = − 10
1
10
Gain(S, Pages) = 0.946 − 11 · 0 − 11 · 0.881 = 0.145
(b) Threshold(T h) = 86
Entropy(ST h<86 ) = − 32 log2 ( 32 ) − 13 log2 ( 31 ) = 0.918
Entropy(ST h≥86 ) = − 58 log2 ( 85 ) − 38 log2 ( 83 ) = 0.954
3
8
Gain(S, Pages) = 0.946 − 11
· 0.918 − 11
· 0.954 = 0.002
(c) Threshold(T h) = 110
Entropy(ST h<110 ) = 1
Entropy(ST h≥110 ) = − 75 log2 ( 57 ) − 27 log2 ( 72 ) = 0.863
7
4
· 1 − 11
· 0.863 = 0.033
Gain(S, Pages) = 0.946 − 11
(d) Threshold(T h) = 175
7
4
Gain(S, Pages) = 0.946 − 11
· 0.863 − 11
· 1 = 0.033
(e) Threshold(T h) = 250
8
3
Gain(S, Pages) = 0.946 − 11
· 0.954 − 11
· 0.918 = 0.002
(f) Threshold(T h) = 675
1
10
· 0.881 − 11
· 0 = 0.145
Gain(S, Pages) = 0.946 − 11

1000
N

You May Also Find These Documents Helpful

  • Good Essays

    Nt1310 Unit 4 Lab Report

    • 2595 Words
    • 11 Pages

    Thus, the probability that the engineer incorrectly passes a day’s production as acceptable if only 85%…

    • 2595 Words
    • 11 Pages
    Good Essays
  • Satisfactory Essays

    ECT122 Wk5 ILab 3

    • 372 Words
    • 2 Pages

    Does the value match the calculated and simulated values (YES/NO)? If no, determine why and correct it.…

    • 372 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    The proportions of nitrogen and hydrogen in a 1/3 ratio is a correct stoichimoetric ratio for the reaction because most reactions use excess reactants to increase the yield, according to Le Chatelier 's principle. The temperature is 400-500 degrees celsius. The reaction is 15% efficient at this temperature, but has potential to occur at a rate that makes it viable. Pressure plays an important role in the equilibrium position of the reaction because there are 4 molecules on the left of the equation, but only 2 on the right.…

    • 379 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    Environmental Science 1401

    • 1146 Words
    • 5 Pages

    87.045 = [d] x 101 + [e] x 100 + [f] x 10-1 + [g] x 10[h] + 5 x 10[i]…

    • 1146 Words
    • 5 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Practice Quiz

    • 5122 Words
    • 42 Pages

    vC = 17 gR 4 1. Twice as far 6. vC = 8 gR 3 2. Half as far 7. vC = 23 gR 4 8. vC =…

    • 5122 Words
    • 42 Pages
    Satisfactory Essays
  • Good Essays

    Statistics Project

    • 599 Words
    • 3 Pages

    Sample Variance: 86.49866667 (Calculation shown on the next page: used a spreadsheet and pasted into the document)…

    • 599 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    The accepted molar enthalpy of neutralization of sodium hydroxide is - 57 kJ/mol. Calculate the % difference of the value you obtained from your experiment with this accepted value.…

    • 700 Words
    • 6 Pages
    Satisfactory Essays
  • Good Essays

    Problems1

    • 605 Words
    • 2 Pages

    guess, use MATLAB/Octave to make a plot of log(cond(Vn )) against n. You will need to…

    • 605 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    abortion

    • 278 Words
    • 2 Pages

    After the 8 reactions the highest temperature recorded was 41° C. The potential reaction temperature in the dumpster was calculated to be…

    • 278 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Charismatic Condition

    • 659 Words
    • 3 Pages

    In both the Charismatic and the punitive condition data sets there were 49 people surveyed. We know this because we were able to use descriptive statistics to show the count and that shows the number of people surveyed. The average or the mean of the charismatic condition is 4.20. The standard error is saying that 0.0975 % is the error that will normally occur if two different people are comparing results. The middle value or the median of the data…

    • 659 Words
    • 3 Pages
    Satisfactory Essays
  • Better Essays

    entropy book

    • 1581 Words
    • 7 Pages

    Entropy values (S) are always positive and usually quite small so we measure them in J not kJ.…

    • 1581 Words
    • 7 Pages
    Better Essays
  • Powerful Essays

    Atpl Summary

    • 11638 Words
    • 47 Pages

    LSS = 661 kt (at sea level at ISA temp.= 288 k) LSS = 573 kt (ISA tropopause temp.= 216,5 k)…

    • 11638 Words
    • 47 Pages
    Powerful Essays
  • Powerful Essays

    Where h is a constant known as Planck’s constant after Max Planck, the German scientist…

    • 1793 Words
    • 8 Pages
    Powerful Essays
  • Satisfactory Essays

    Spss Formula Sheet

    • 891 Words
    • 4 Pages

    d 6000 → Ha: p > 0,5 of Ha≠0,5 indien dubbelzijdig wilt testen.notice: one-sided testing!!…

    • 891 Words
    • 4 Pages
    Satisfactory Essays
  • Good Essays

    Water and Kg 0c

    • 1949 Words
    • 8 Pages

    Molecular weight of hydrogen = 2 kg/kmol. Therefore, amount of acetaldehyde to be produced = 142.04 kmol/hr. Let conversion be 94%. Taking into account the losses let, the acetaldehyde produced to be some extra. Let acetaldehyde to be produced = 6500 kg/hr. Amount of ethanol required for 100% conversion = 6795.45 kg/hr. Therefore, ethanol required for 94% conversion = 7229.2 kg/hr.…

    • 1949 Words
    • 8 Pages
    Good Essays

Related Topics