Book Image

Statistical Application Development with R and Python - Second Edition

Book Image

Statistical Application Development with R and Python - Second Edition

Overview of this book

Statistical Analysis involves collecting and examining data to describe the nature of data that needs to be analyzed. It helps you explore the relation of data and build models to make better decisions. This book explores statistical concepts along with R and Python, which are well integrated from the word go. Almost every concept has an R code going with it which exemplifies the strength of R and applications. The R code and programs have been further strengthened with equivalent Python programs. Thus, you will first understand the data characteristics, descriptive statistics and the exploratory attitude, which will give you firm footing of data analysis. Statistical inference will complete the technical footing of statistical methods. Regression, linear, logistic modeling, and CART, builds the essential toolkit. This will help you complete complex problems in the real world. You will begin with a brief understanding of the nature of data and end with modern and advanced statistical models like CART. Every step is taken with DATA and R code, and further enhanced by Python. The data analysis journey begins with exploratory analysis, which is more than simple, descriptive, data summaries. You will then apply linear regression modeling, and end with logistic regression, CART, and spatial statistics. By the end of this book you will be able to apply your statistical learning in major domains at work or in your projects.
Table of Contents (19 chapters)
Statistical Application Development with R and Python - Second Edition
Credits
About the Author
Acknowledgment
About the Reviewers
www.PacktPub.com
Customer Feedback
Preface
Index

Chapter 6. Linear Regression Analysis

In the Visualization techniques for continuous variable data section of Chapter 3, Data Visualization, we saw different data visualization techniques that help in understanding data variables (boxplot and histograms) and their interrelationships (matrix of scatter plots).

We saw in Example 4.6.1. Resistant line for the IO-CPU time, an illustration of the resistant line, where CPU_Time depends linearly on the No_of_IO variable. The pair function's output in Example 3.2.9. Octane rating of gasoline blends indicated that the mileage of a car has strong correlations with the engine-related characteristics, such as displacement, horsepower, torque, the number of transmission speeds, and the type of transmission being manual or automatic. Further, the mileage of a car also strongly depends on the vehicle dimensions, such as its length, width, and weight.

The question addressed in this chapter is meant to further these initial findings through a more appropriate...