Book Image

The Data Analysis Workshop

By : Gururajan Govindan, Shubhangi Hora, Konstantin Palagachev
Book Image

The Data Analysis Workshop

By: Gururajan Govindan, Shubhangi Hora, Konstantin Palagachev

Overview of this book

Businesses today operate online and generate data almost continuously. While not all data in its raw form may seem useful, if processed and analyzed correctly, it can provide you with valuable hidden insights. The Data Analysis Workshop will help you learn how to discover these hidden patterns in your data, to analyze them, and leverage the results to help transform your business. The book begins by taking you through the use case of a bike rental shop. You'll be shown how to correlate data, plot histograms, and analyze temporal features. As you progress, you’ll learn how to plot data for a hydraulic system using the Seaborn and Matplotlib libraries, and explore a variety of use cases that show you how to join and merge databases, prepare data for analysis, and handle imbalanced data. By the end of the book, you'll have learned different data analysis techniques, including hypothesis testing, correlation, and null-value imputation, and will have become a confident data analyst.
Table of Contents (12 chapters)
Preface
7
7. Analyzing the Heart Disease Dataset
9
9. Analysis of the Energy Consumed by Appliances

Linear Regression

In linear regression, the target variable, Y, is a continuous variable, meaning that it assumes all possible values in a bounded or unbounded interval, (a,b) formula R, where R is the set of real numbers. In this way, the preceding equation assumes the following concrete form:

Figure 3.17: Linear regression equation

Figure 3.17: Linear regression equation

Let's denote the right-hand side of the preceding equation with Ŷ, as follows:

Figure 3.18: Linear regression equation

Then, if we have n samples in our data (where for each i ϵ {1,..., n}, we denote the entries for the m features with xi,1,....xi,m and the target variable with y_i), we can rewrite the previous equation in a more specific form, as follows:

Figure 3.19: Linear regression equation in a specific form

Figure 3.19: Linear regression equation in a specific form

Note that in Figure 3.17 and Figure 3.19, we assume that the dependency of Y from the feature vectors X1,...,Xm is either linear or can be approximated...