HW3
HW3
University of Delaware
FSAN/ELEG815 Analytics I: Statistical Learning
Homework #3, Fall 2021
Name:
1
2. Given a data set with 4 samples (N = 4) in a one-dimensional input space.
Determine the maximum number of dichotomies for this data set, i.e.
mH (4) and sketch all the possible dichotomies for the following hypothesis
sets:
(a) Negative ray: H contains the functions which are −1 on [a, ∞) (for
some a) i.e. h(x) = −sign(x − a).
Negative Ray
h(x) = bsign(x − a)
Positive Ray
• For b = −1, thus h(x) = −sign(x − a):
Negative Ray
(c) Negative interval: This is a hypothesis set H that contains the
functions which are −1 on an interval [a, b] and +1 elsewhere.
2
(d) Both Positive or negative interval: This is a hypothesis set H
that contains the functions which are +1 on an interval [a, b] and −1
elsewhere together with functions which are −1 on an interval [a, b]
and +1 elsewhere. H contains functions of the form:
c
if x < a
h(x) = −c if a ≤ x ≤ b
c if x > b
Negative Interval
• For c = −1:
Positive Interval
(e) One Positive and one negative interval: This is a hypothesis
set H that contains the functions which are +1 on (−∞, a), −1 on
an interval [a, b], +1 on an interval (b, c], and −1 on (c, ∞).
1 if x<a
−1 if a≤x≤b
h(x) =
1 if b<x≤c
−1 if x>c
where a, b, c ∈ R, and a ≤ b ≤ c.