Exploratory Data Analysis: A First Look at The Data

Download as pdf or txt
Download as pdf or txt
You are on page 1of 9

Exploratory Data Analysis

A first look at the data


Here are the main reasons we use EDA
- detection of mistakes
- checking of assumptions
- preliminary selection of appropriate models
- determining relationships among the explanatory variables, and
- assessing the direction and rough size of relationships between explanatory
and outcome variables
Typical data format and the types of EDA
- The data from an experiment are generally collected into a rectangular array
(e.g., spreadsheet or database)
- one row per experimental subject
- one column for each subject identifier, outcome variable, and explanatory variable
- Each column contains the numeric values for a particular quantitative variable or the levels for
a categorical variable.
- looking at numbers to be tedious, boring, and/or overwhelming
- Exploratory data analysis techniques have been devised as an aid in this
situation.
- techniques work in part by hiding certain aspects of the data while making
other aspects more clear.
Types of EDA
- Exploratory data analysis is generally cross-classified in two ways
- First, each method is either non-graphical or graphical.
- And second, each method is either univariate or multivariate (usually just bivariate)
- Non-graphical methods generally involve calculation of summary statistics
- while graphical methods obviously summarize the data in a diagrammatic or
pictorial way
-
Types of EDA
- Univariate methods look at one variable (data column) at a time
- multivariate methods look at two or more variables at a time to explore
relationship
- Usually our multivariate EDA will be bivariate
Types of EDA
- The four types of EDA are
- univariate non graphical,
- multivariate non graphical,
- univariate graphical, and
- multivariate graphical
First you must import your data into R.

Tidying your data means storing it in a consistent form that matches the
semantics of the dataset with the way it is stored.

Data is tidy, each column is a variable, and each row is an


observation.
Tidy data is important because the consistent structure lets you focus your
struggle on questions about the data, not fighting to get the data into the
right form for different functions.
Once you have tidy data, a common first step is to transform it.

Transformation includes narrowing in on observations of interest (like all


people in one city, or all data from the last year), creating new variables that
are functions of existing variables (like computing speed from distance
and time), and calculating a set of summary statistics (like counts or
means).

Together, tidying and transforming are called wrangling, because getting


your data in a form that’s natural to work with often feels like a fight!
Assignment
Assignment Link:
https://drive.google.com/file/d/1iKCCXqQ10mnuKuBqEk1kd4vt8Q0ZlaFd/view

You might also like