Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Hands-On Data Science with Anaconda

You're reading from   Hands-On Data Science with Anaconda Utilize the right mix of tools to create high-performance data science applications

Arrow left icon
Product type Paperback
Published in May 2018
Publisher Packt
ISBN-13 9781788831192
Length 364 pages
Edition 1st Edition
Languages
Arrow right icon
Authors (2):
Arrow left icon
James Yan James Yan
Author Profile Icon James Yan
James Yan
Yuxing Yan Yuxing Yan
Author Profile Icon Yuxing Yan
Yuxing Yan
Arrow right icon
View More author details
Toc

Table of Contents (15) Chapters Close

Preface 1. Ecosystem of Anaconda FREE CHAPTER 2. Anaconda Installation 3. Data Basics 4. Data Visualization 5. Statistical Modeling in Anaconda 6. Managing Packages 7. Optimization in Anaconda 8. Unsupervised Learning in Anaconda 9. Supervised Learning in Anaconda 10. Predictive Data Analytics – Modeling and Validation 11. Anaconda Cloud 12. Distributed Computing, Parallel Computing, and HPCC 13. References 14. Other Books You May Enjoy

F-test, critical value, and the decision rule

In the previous examples, we saw the F-value for the performance of the whole model. Now, let's look at the F-distribution. Assume that x1 and x2 are two independent random variables with the Chi-Square distribution with df1 and df2 degrees of freedom, respectively. The ratio of x1/df1 divided by x2/df2 would follow an F-distribution:

An R program to draw a graph for the F distribution with (10, 2) degrees of freedom is shown here:

> d1<-4 
> d2<-2 
> n<-100 
> x = seq(0, 5, length = n) 
> plot(x, df(x = x, df1 = d1, df2 = d2),type='l') 

The related plot is shown here:

The following R program shows the critical value for a given α of 0.1 and (1, 2) degrees of freedom:

> alpha<-0.1
> d1<-1
> d2<-1
> qf(1-alpha,df1=d1,df2=d2)
[1] 39.86346

The following Python program...

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 $19.99/month. Cancel anytime
Banner background image