This website uses cookies to ensure you have the best experience.

# Exam Paper Ml

2270 words - 10 pages

MIDTERM: CS 6375
INSTRUCTOR: VIBHAV GOGATE
October, 23 2013

The exam is closed book. You are allowed a one-page cheat sheet. Answer the
questions in the spaces provided on the question sheets. If you run out of room for
an answer, use an additional sheet (available from the instructor) and staple it to

• NAME

• UTD-ID if known

• SECTION 1:
• SECTION 2:
• SECTION 3:
• SECTION 4:
• SECTION 5:

• Out of 90:

1

CS 6375 FALL 2013

Midterm, Page 2 of 13

October 23, 2013

CS 6375 FALL 2013

Midterm, Page 3 of 13

October 23, 2013

SECTION 1: SHORT QUESTIONS (15 points)
1. (3 points) The Naive Bayes classiﬁer uses the maximum a posteriori or the ...view middle of the document...

The derivative of LL(θ) is:
−3

1
1
+6
1−θ

Setting it to zero and solving for θ, we get: θ = 1/2.

CS 6375 FALL 2013

Midterm, Page 4 of 13

October 23, 2013

3. (2 points) If the data is not linearly separable, then the gradient descent algorithm for training
a logistic regression classiﬁer will never converge. True or False. Explain your answer.
Solution: False. Our objective function is always concave. The algorithm will always converge
under mild assumptions.
4. (2 points) If the data is linearly separable, then the 3-nearest neighbors algorithm will always
have 100% accuracy on the training set. True or False. Explain your answer.
Solution: False. Here is the counter example.
X
Class

0.1
+

0.2
+

1
+

7

Here the data is linearly separable. However, the point (7, −) will be misclassiﬁed as + by the
3-nearest neighbors algorithm.
5. (2 points) The decision tree classiﬁer has 100% accuracy on the training set (namely, the data
is noise-free). Will logistic regression have the same accuracy (100%) on the training set?
Solution: False. Decision tree can learn complex surfaces or Boolean functions (e.g., XOR).
However, logistic regression can only learn linear classiﬁcation boundaries (e.g., it cannot represent XOR).

CS 6375 FALL 2013

Midterm, Page 5 of 13

October 23, 2013

SECTION 2: Decision Trees (20 points)
1. (4 points) Let x be a vector of n Boolean variables and let k be an integer less than n. Let fk
be a target concept which is a disjunction consisting of k literals.
(Let the n variables be denoted by the set {X1 , . . . , Xn }. Examples of f2 : X1 ∨ X2 , X1 ∨ ¬X4 ,
etc. Examples of f3 : X1 ∨ X2 ∨ X10 , X1 ∨ ¬X4 ∨ X7 , etc.)
State the size of the smallest possible consistent decision tree (namely a decision tree that
correctly classiﬁes all possible examples) for fk in terms of n and k and describe its shape.
Solution: The smallest possible decision tree consistent withfk contains 2k + 1 nodes with k
internal nodes corresponding to the attributes and k + 1 leaf nodes. Each internal node (except
the node at depth k − 1 which has two leaf nodes) has one leaf node corresponding to an
assignment of true to the literal and has one child node corresponding to the false assignment
to the particular literal.
We wish to learn a decision tree to help students pick restaurants using three aspects – the
price, the location of the restaurant and the speed of service. The data for training the tree is
given below, where the target concept is the column labeled ”Like?”

2. (4 points) What is the entropy of the collection of examples with respect to the target label
(Like?) ?
Solution: We have 4 +ve and 4 −ve examples. Thus the entropy is 1.

CS 6375 FALL 2013

Midterm, Page 6 of 13

October 23, 2013

SECTION 2: Decision Trees (20 points) — Continued
I have copied the dataset from the previous page to this page for convenience.

3. (4 points) Compute the...

## Other assignments on Exam Paper Ml

### Course Syllabus Essay

2610 words - 11 pages . | |Methods of Evaluation |The final grade will be determined by your scores on the Class as: | | |CASH To ROI Mandatory Tutoring (15%), Participation/Activities (10%), Homework (20%),Quizzes/Tests (15%),Midterm Exam | | |(20%),&Final Exam (20

### Management Essay

1477 words - 6 pages customers’ needs can be met, what is expected out of the company, and the environment. The structure of management helps accommodate the need for experience and expertise on important factors. Some of these factors are legal issues, ethics, and corporate social responsibility instead of just focusing on the profits. This paper covers the planning function of management, the influences of legal issues, ethics, and corporate social responsibility on

### Assisted Suicide

1015 words - 5 pages Should physician-assisted suicide be legal? While I believe if one chooses to end his or own life through physician assistance for reasons that they chose, the choice should be up to the individual. Physician-assisted suicide should be at one's discretion. “Assisted Suicide, also called Voluntary Euthanasia, is currently a contentious issue in many countries. Because Euthanasia is legal in a few modern democracies: the Netherlands, Belgium

### Tanglewood Case 1

797 words - 4 pages Tanglewood’s staffing strategy requires the organization to make key decisions about the acquisition, deployment, and retention of the organization’s workforce. In order to accomplish this, Tanglewood’s must make thirteen decisions regarding its staffing levels and its staffing quality. One of the first decisions that Tanglewood needs to choose is to acquire or develop talent. Tanglewood should try to develop their current talent because one

### Nnnnn

1391 words - 6 pages Есе по въпроса: Кои от всички „действащи” лица могат да се разглеждат като морално отговорни и в какво именно? по казуса Форд „Пинто” Корпоративните злодеяния са нанесли повече вреди на обществото от всички улични престъпления взети заедно. Според данни на ФБР сумата от уличните престъпления възлиза на \$3.8 млрд. годишно, а загубите от корпоративните измами между \$100 млрд. и \$400 млрд. годишно

### The Penis

1052 words - 5 pages The short story ”The Penis” is written by Hanif Kureishi. The short story is about a penis, which has been separated from its owner Doug, who we hear from later on. At first though we hear about a guy called Alfie who was “a cutter – a hairdresser – and had to get to work”. He is having breakfast with his wife, when she asks him what he did last night, and if he had a good time last night? Alfie can not remember what he did last night, he then

### Managed Care Paper

543 words - 3 pages Managed Care and Case Management Care Marvin Lloyd BSHS/402-Case Management 27 August 2012 Virgil Miller Managed Care are techniques employed to help reduce the cost for providing health benefits and a system for improving organizations quality of care

### Media

439 words - 2 pages The life expectancy is lower; so people are not kept alive with drugs for decades in a virtual sleep state. There is less state education; so kids don't have it drilled into them that their only goal in life is to make money, at the cost of 'everything' else. The health care is less; so diseases, usually brought by Westerners, kill many more than they do in countries where drug companies can make a fortune from selling medicines that aren't

### Chapter 6 International Business

7113 words - 29 pages CGGGG The Political Economy of International Trade Chapter Outline OPENING CASE: Why Are Global Food Prices Soaring? INTRODUCTION INSTRUMENTS OF TRADE POLICY Tariffs Subsides Country Focus: Subsidized Wheat Production in Japan Import Quotas and Voluntary Export Restraints Local Content Requirements Administrative Polices Antidumping Policies Management Focus: U.S. Magnesium

### Scope And Goals

279 words - 2 pages Introduction: Kudler Fine Foods is a specialty food store based in San Diego, California with its three locations in La Jolla, Del Mar, and Encinitas. Kudler Fine food prides itself on offering fresh and organic products that are carefully selected from local farmers and around the world. The organization has recently taken the initiative to start a Frequent Shopper Program to market and increase sales. This program will offer the customers a

### Meerkat

251 words - 2 pages Meerkat The meerkat or suricate, Suricata suricatta, is a small mammal belonging to the mongoose family. Meerkats live in all parts of theKalahari Desert in Botswana, in much of the Namib Desert in Namibia and southwestern Angola, and in South Africa. A group of meerkats is called a "mob", "gang" or "clan". A meerkat clan often contains about 20 meerkats, but some super-families have 50 or more members. In captivity, meerkats have an average

## Similar Documents

### Mgt216 Essay

714 words - 3 pages The first ethical issue presented in the ethics game simulation was whether to warn consumers about the contaminated product and what information to provide consumers about the contaminant. The second ethical issue was whether to sell a product that does not meet U.S. safety requirements in a foreign market that has lower safety restrictions. G-BioSport was not required to meet prior approval from the Federal Drug Administration before they

### Economy Effect Of Marijuana Essay

277 words - 2 pages Modern American History by Alan Renga 2nd Mid Term! You will be given 3 Short Essay questions and 20 Multiple Choice questions deriving from this list! 80 points total! The 1920s Warren Harding then Calvin Coolidge Tea Pot Dome 1st Red Scare Immigration Restriction, Sacco and Vanzetti Langston Hughes, Marcus Garvey, KKK Prosperity, advertising Prohibition, Al Capone Flappers, Clara Bow, Rudolph Valentino Babe Ruth, Jack Dempsey

### The Vc Shakeout Essay

2033 words - 9 pages ECONOMY 26 Luring a big ﬁrm to town is not the secret to job growth DEFEND YOUR RESEARCH 30 Are morning people wired for success? VISION STATEMENT 32 The social web’s east-west divide COLUMN 38 Warren Bennis looks back on his surprising path to fame New Thinking, Research in Progress hbr.org New Thinking, Research in Progress hbr.org FIRST The VC Shakeout Venture capital hasn’t worked for a decade and must be radically

### Hospitals Paper

6014 words - 25 pages I hope to provide in this paper a comprehensive understanding for what the term “hospital” has become. Hospitals are an extremely complex system that man has created and shaped and reshaped throughout history. My goal in writing and researching this paper will be to provide those who read it a clear understanding on how the hospital system got to where it is today, and to shed some light on the many organizations that affiliate with and