Question

In: Computer Science

6)True/False with explanations: a.In KNN, the complexity of the model space can be tuned to account...

6)True/False with explanations:
a.In KNN, the complexity of the model space can be tuned to account for more complex decision boundaries by decreasing K.
b.If Margin(Model 1)>Margin(Model 2) on the same data, Model 1 will perform better on unseen data.
c.Perceptron minimizes training error when the data is linearly separable.

Solutions

Expert Solution

6-a) In KNN, the complexity of the model space can be tuned to account for more complex decision boundaries by decreasing K.  

ANS :- TRUE

Explanation = Training a kNN classifier simply consists of determining k and preprocessing documents. If we preselect some value for k and do not preprocess it, then kNN requires no training at all. In practice, we have to perform preprocessing steps like tokenization. It makes more sense to preprocess the training documents once as part of the training phase rather than repeatedly every time we classify a new test document.

Test time is for kNN. It has a linear size of the training set as we need to compute the distance of each training document from the test document. Test time is independent of the number of classes J. kNN, therefore, has a potential advantage for problems with large J.

In short:

large value of K = simple model = underfit = low variance & high bias

Small vlaue of K = complex model =overfit = high variance& low bias

6-b).If Margin(Model 1)>Margin(Model 2) on the same data, Model 1 will perform better on unseen data.

ANS :- FALSE

Explanation : -

Generalisation error in statistics is generally the out-of-sample error which is the measure of how accurately a model can predict values for previously unseen data.

6-c) Perceptron minimizes training error when the data is linearly separable.

ANS:- TRUE

Explanation :-

The open (closed) positive half-space associated with the n dimensional weight vector w is the set of all points x ∈ IRn for which w·x > 0 (w · x ≥ 0). The open (closed) negative half-space associated with w is the set of all points x ∈ IRn for which w · x < 0 (w · x ≤ 0).

We omit the adjectives “closed” or “open” whenever it is clear from the context which kind of linear separation is being used. Let P and N stand for two finite sets of points in IRn which we want to separate linearly. A weight vector is sought so that the points in P belong to its associated positive half-space and the points in N to the negative half-space. The error of a perceptron with weight vector w is the number of incorrectly classified points. The learning algorithm must minimize this error function E(w). One possible strategy is to use a local greedy algorithm which works by computing the error of the perceptron for a given weight vector, looking then for a direction in weight space in which to move, and updating the weight vector by selecting new weights in the selected search direction. We can visualize this strategy by looking at its effect in weight space.


Related Solutions

What statement is true? Only one is false and one is true. a.In the skeletal muscles,...
What statement is true? Only one is false and one is true. a.In the skeletal muscles, when the levels of ADP increase, PFK is stimulated. a.In the skeletal muscles, when the levels of citrate increase, PFK is inhibited.
A1.State whether each of the following is true or false. If false, explain why: a.In C++...
A1.State whether each of the following is true or false. If false, explain why: a.In C++ the operator for raising to a power has lower precedence than the multiplication operator b.In C++ the statement x = y = x = 0; is illegal. c.In C++ the expression x < y < z is illegal. d.In C++ the expression x <= y = z is legal. A2.Consider the following program: void main() { enum direction { EAST, WEST, NORTH, SOUTH };...
Which of the following are true and which are false? Give brief explanations.
Which of the following are true and which are false? Give brief explanations.a) In a fully observable, turn-taking, zero-sum game between two perfectly rational players, it does not help the first player to know what strategy the second player is using—that is, what move the second player will make, given the first player's move.b) In a partially observable, turn-taking, zero-sum game between two perfectly rational players, it does not help the first player to know what move the second player...
Please answer with true and false answers, but use your explanations why it would true or...
Please answer with true and false answers, but use your explanations why it would true or false and use diagrams if necessary. 5. Suppose firms see inventories levels fall below the levels they had planned. This will cause aggregate output to increase. 6. Ceteris paribus, an increase in the domestic price level increases the price of domestic goods increases relative to foreign goods resulting in a downward shift of aggregate expenditures and a leftward shift of the aggregate demand curve....
6. The researcher can choose how wide a bin of a histogram can be-True or false?...
6. The researcher can choose how wide a bin of a histogram can be-True or false? 16. Suppose that three book publishers were interested in the number of fiction paperbacks adult consumers purchase per month. Each publisher conducted a survey. In the survey, adult consumers were asked the number of fiction paperbacks they had purchased the previous month. The results are as follows: # of books Freq. Rel. Freq. 0 10 1 12 2 16 3 12 4 8 5...
TRUE/FALSE. Write 'T' if the statement is true and 'F' if the statement is false. 6)...
TRUE/FALSE. Write 'T' if the statement is true and 'F' if the statement is false. 6) Compounding always requires the use of a financial calculator. 7) In the compound interest formula, i stands for periodic interest rate. 8) Interest calculated on a balance every three months is said to be compounded quarterly. 9) The present value of an annuity looks from the present to the future. 10) Annuities certain have a specific stated number of payments. 11) A bond quote...
These are true or false questions, and please give explanations: 1. If the forward rate between...
These are true or false questions, and please give explanations: 1. If the forward rate between two periods exceeds the expected short rate between them, there is an arbitrage opportunity. 2. Given the liquidity preference hypothesis, investing a longer maturity bond is expected to return more than investing in short maturity bonds and "rolling them over" when they mature.
Determine whether the following statements are true or false. No explanations are needed: The least squares...
Determine whether the following statements are true or false. No explanations are needed: The least squares regression line always passes through the point (x̄, y̅), i.e., y̅ = b0 + b1 * x̅ The p-value is the probability of how true the null hypothesis is, given the data. Thus small p-value tends to reject the null hypothesis Instead of a normal distribution, a family of t-distributions is needed for a small sample size with unknown population standard deviation because so...
True or False. Explain clearly WHY it is true or false 1. In the Neo-Classical model,...
True or False. Explain clearly WHY it is true or false 1. In the Neo-Classical model, when both countries are less willing to trade, this will always lead to the same equilibrium level for the terms of trade. 2. Differences in relative factor endowments among countries cannot explain Intra-Industry Trade. 3. Economic growth always leads to increased trade flows.
True/False. Explain. a. In the aggregate expenditure model, the reason an economic can enter a recession...
True/False. Explain. a. In the aggregate expenditure model, the reason an economic can enter a recession is that spending falls. b. The classical assumption that labor markets clear makes it difficult for that model to explain recessions.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT