Coursera machine learning week 9 Quiz answers Anomaly Detection | Andrew NG

In this article, you will find Coursera machine learning week 9 Quiz answers Anomaly Detection. Use “Ctrl+F” To Find Any Questions or Answers. For Mobile Users, You Just Need To Click On Three dots In Your Browser & You Will Get A “Find” Option There. Use These Options to Get Any Random Questions Answer.

Try to solve all the assignments by yourself first, but if you get stuck somewhere then feel free to browse the code. Don’t just copy-paste the code for the sake of completion.  Even if you copy the code, make sure you understand the code first.

Coursera machine learning week 9 Quiz answers Anomaly Detection
Coursera machine learning week 9 Quiz answers Anomaly Detection

Coursera machine learning week 9 Quiz answers Anomaly Detection | Andrew NG

1. For which of the following problems would anomaly detection be a suitable algorithm?

    •  From a large set of primary care patient records, identify individuals who might have unusual health conditions.

      Since you are just looking for unusual conditions instead of a particular disease, this is a good application of anomaly detection.

    •  Given data from credit card transactions, classify each transaction according to type of purchase (for example: food, transportation, clothing).
    •  Given an image of a face, determine whether or not it is the face of a particular famous individual.
    •  Given a dataset of credit card transactions, identify unusual transactions to flag them as possibly fraudulent.

      By modeling “normal” credit card transactions, you can then use anomaly detection to flag the unusuals ones which might be fraudulent.

    •  In a computer chip fabrication plant, identify microchips that might be defective.

      The defective chips are the anomalies you are looking for by modeling the properties of non-defective chips.

        •  From a large set of hospital patient records, predict which patients have a particular disease (say, the flu).

2. Suppose you have trained an anomaly detection system for fraud detection, and your system that flags anomalies when p(x) is less than ε, and you find on the cross-validation set that it is missing many fradulent transactions (i.e., failing to flag them as anomalies). What should you do?

    •  Increase ε

      By increasing ε, you will flag more anomalies, as desired.

        •  Decrease ε

    1. Suppose you have trained an anomaly detection system for fraud detection, and your system that flags anomalies when p(x) is less than ε, and you find on the cross-validation set that it is mis-flagging far too many good transactions as fradulent. What should you do?
        •  Increase ε
        •  Decrease ε

          By decreasing ε, you will flag fewer anamolies, as desired.


3. Suppose you are developing an anomaly detection system to catch manufacturing defects in airplane engines. You model uses

You have two features  = vibration intensity, and  = heat generated. Both  and  take on values between 0 and 1 (and are strictly greater than 0), and for most “normal” engines you expect that . One of the suspected anomalies is that a flawed engine may vibrate very intensely even without generating much heat (large , small ), even though the particular values of  and  may not fall outside their typical ranges of values. What additional feature  should you create to capture these types of anomalies:

    •  
    •  
    •  

      This is correct, as it will take on large values for anomalous examples and smaller values for normal examples.

        •  

4.  Which of the following are true? Check all that apply.

    •  If you do not have any labeled data (or if all your data has label y = 0), then is is still possible to learn p(x), but it may be harder to evaluate the system or choose a good value of ϵ.

      Only negative examples are used in training, but it is good to have some labeled data of both types for cross-validation.

    •  If you are developing an anomaly detection system, there is no way to make use of labeled data to improve your system.
    •  When choosing features for an anomaly detection system, it is a good idea to look for features that take on unusually large or small values for (mainly the) anomalous examples.

      These are good features, as they will lie outside the learned model, so you will have small values for p(x) with these examples.

    •  If you have a large labeled training set with many positive examples and many negative examples, the anomaly detection algorithm will likely perform just as well as a supervised learning algorithm such as an SVM.
    •  In a typical anomaly detection setting, we have a large number of anomalous examples, and a relatively small number of normal/non-anomalous examples.
    •  When developing an anomaly detection system, it is often useful to select an appropriate numerical performance metric to evaluate the effectiveness of the learning algorithm.

      You should have a good evaluation metric, so you can evaluate changes to the model such as new features.

    •  In anomaly detection, we fit a model p(x) to a set of negative ( y=0) examples, without using any positive examples we may have collected of previously observed anomalies.

      We want to model “normal” examples, so we only use negative examples in training.

    •  When evaluating an anomaly detection algorithm on the cross validation set (containing some positive and some negative examples), classification accuracy is usually a good evaluation metric to use.

5. You have a 1-D dataset  and you want to detect outliers in the dataset. You first plot the dataset and it looks like this:
enter image description here
Suppose you fit the gaussian distribution parameters  and  to this dataset.
Which of the following values for  and  might you get?

    •   -3,  4

      This is correct, as the data are centered around -3 and tail most of the points lie in [-5, -1].

    •   -6,  4
    •   -3,  2
  •   -6,  2

Disclaimer:  Hopefully, this article will be useful for you to find all the Coursera machine learning week 9 Quiz answers Anomaly Detection and grab some premium knowledge with less effort.

Finally, we are now, in the end, I just want to conclude some important message for you, Feel free to ask doubts in the comment section. I will try my best to answer it. If you find this helpful by any means like, comment, and share the post. Please share our posts on social media platforms and also suggest to your friends to Join Our Groups. Don’t forget to subscribe. This is the simplest way to encourage me to keep doing such work.

FAQs

Is Andrew Ng’s Machine Learning course good?
It is the Best Course for Supervised Machine Learning! Andrew Ng Sir has been like always has such important & difficult concepts of Supervised ML with such ease and great examples, Just amazing!

How do I get answers to coursera assignment?
Use “Ctrl+F” To Find Any Questions Answered. & For Mobile Users, You Just Need To Click On Three dots In Your Browser & You Will Get A “Find” Option There. Use These Options to Get Any Random Questions Answer.

How long does it take to finish coursera Machine Learning?
this specialization requires approximately 3 months with 75 hours of materials to complete, and I finished it in 3 weeks and spent an additional 1 week reviewing the whole course.

How do you submit assignments on Coursera Machine Learning?
Submit a programming assignment Open the assignment page for the assignment you want to submit. Read the assignment instructions and download any starter files. Finish the coding tasks in your local coding environment. Check the starter files and instructions when you need to. Reference

Sharing Is Caring

Leave a Comment