Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Data Science Algorithms in a Week

You're reading from   Data Science Algorithms in a Week Top 7 algorithms for scientific computing, data analysis, and machine learning

Arrow left icon
Product type Paperback
Published in Oct 2018
Publisher Packt
ISBN-13 9781789806076
Length 214 pages
Edition 2nd Edition
Languages
Tools
Arrow right icon
Authors (2):
Arrow left icon
David Toth David Toth
Author Profile Icon David Toth
David Toth
David Natingga David Natingga
Author Profile Icon David Natingga
David Natingga
Arrow right icon
View More author details
Toc

Table of Contents (12) Chapters Close

Preface 1. Classification Using K-Nearest Neighbors 2. Naive Bayes FREE CHAPTER 3. Decision Trees 4. Random Forests 5. Clustering into K Clusters 6. Regression 7. Time Series Analysis 8. Python Reference 9. Statistics 10. Glossary of Algorithms and Methods in Data Science
11. Other Books You May Enjoy

Flight time duration prediction based on distance


Given a table of flights with their origin, destination, and flight time, we would like to estimate the length of a proposed flight from Bratislava, Slovakia, to Amsterdam, the Netherlands:

Origin

Destination

Distance in km

Flight duration

Flight duration in hours

London

Amsterdam

365

1 hr 10 m

1.167

London

Budapest

1462

2 hr 20 m

2.333

London

Bratislava

1285

2 hr 15 m

2.250

Bratislava

Paris

1096

2 hr 5 m

2.083

Bratislava

Berlin

517

1 hr 15 m

2.250

Vienna

Dublin

1686

2 hr 50 m

2.833

Vienna

Amsterdam

932

1 hr 55 m

1.917

Amsterdam

Budapest

1160

2 hr 10 m

2.167

Bratislava

Amsterdam

978

?

?

Analysis

We can reason that the flight duration time consists of two times—the first is the time to take off and the landing time; the second is the time that the airplane moves at a certain speed in the air. The first time is a constant. The second time depends linearly on the speed of the plane, which we assume is similar for all of the flights in the table. Therefore, the flight time can be expressed by...

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 £16.99/month. Cancel anytime