zoukankan      html  css  js  c++  java
  • 斯坦福公开课:Statistical Learning中做错的选择题

    4.4 R1 In which of the following problems is Case/Control Sampling LEAST likely to make a positive impact?

    A. Predicting a shopper's gender based on the products they buy

    B. Finding predictors for a certain type of cancer

    C. Predicting if an email is Spam or Not Spam

    Correct answer: A

    Explanation: Case/Control sampling is most effective when the prior probabilities of the classes are very unequal. We expect this to be the case for the cancer and spam problems, but not the gender problem.

    4.5 R1 Suppose that in Ad Clicks (a problem where you try to model if a user will click on a particular ad) it is well known that the majority of the time an ad is shown it will not be clicked. What is another way of saying that?

    A. Ad Clicks have a low Prior Probability.

    B. Ad Clicks have a high Prior Probability.

    C. Ad Clicks have a low Density.

    D. Ad Clicks have a high Density.

    Correct answer: A

    Explanation: Whether or not an ad gets clicked is a Qualitative Variable. Thus, it does not have a density. The Prior Probability of Ad Clicks is low because most ads are not clicked.

    4.6 R1 Which of the following is NOT a linear function in x:

    A. f(x) = a + b^2x

    B. The discriminant function from LDA.

    C. delta_k(x) = xfrac{mu_k}{sigma^2} - frac{mu_k^2}{2sigma^2} +log(pi_k)

    D. ext{logit}(P(y = 1 | x)) where P(y = 1 | x) is as in logistic regression

    E. P(y = 1 | x) from logistic regression

    Correct answer: E Explanation: P(y = 1 | x) from logistic regression is not linear because it involves both an exponential function of x and a ratio.

    5.1 R2 What are reasons why test error could be LESS than training error?

    A. By chance, the test set has easier cases than the training set.

    B. The model is highly complex, so training error systematically overestimates test error.

    C. The model is not very complex, so training error systematically overestimates test error.

    Correct answer: A

    Explanation: Training error usually UNDERestimates test error when the model is very complex (compared to the training set size), and is a pretty good estimate when the model is not very complex. However, it's always possible we just get too few hard-to-predict points in the test set, or too many in the training set.

    ---恢复内容结束---

  • 相关阅读:
    Android大牛
    在学习oauth时学到的
    using-jade-and-grunt-to-speed-up-html-production
    build-your-microservices-api-with-swagger
    json-web-token-apache-shiro
    WebSocket对象特性和方法
    芝麻教程
    how to export multiple SVG graphics in illustrator
    直播后台
    关于在chrome中响应不出现在XHR里的远影
  • 原文地址:https://www.cnblogs.com/postmodernist/p/5370531.html
Copyright © 2011-2022 走看看