Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Applied Unsupervised Learning with R

You're reading from  Applied Unsupervised Learning with R

Product type Book
Published in Mar 2019
Publisher
ISBN-13 9781789956399
Pages 320 pages
Edition 1st Edition
Languages
Authors (2):
Alok Malik Alok Malik
Profile icon Alok Malik
Bradford Tuckfield Bradford Tuckfield
Profile icon Bradford Tuckfield
View More author details
Toc

Kernel Density


To conclude the chapter, we will discuss using kernel density estimates to perform outlier detection on a set of blood samples. Kernel density estimation provides a natural way to test whether a particular set of blood results are anomalous, even without having specialized knowledge of the particular blood test being used or even of medicine in general.

Suppose that you are working at a doctor's office and your boss asks you to do a new type of blood test on patients. Your boss wants to know if any of the patients have anomalous test results. However, you are not familiar with this new blood test and you do not know what normal and anomalous results are supposed to look like. All you have is a record of previous blood tests that your boss assures you are from normal patients. Suppose that these tests had the following results:

normal_results<-c(100,95,106,92,109,190,210,201,198)

Now suppose that your boss wants you to find anomalies (if any) in the following new blood test...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime