Understanding Concepts
Data Science with R
Overview
Data Science with R
Introduction to Data Science
R programming
Why R is used as a tool?
Quick revision to R
Various modules of data science with R
Exercises
What is Data Science?
Data Science with R
Mathematics Expertise
Technology
Business Knowledge
Venn diagram
Why R is used as a tool?
Data Science with R
Best Tool
Beneficial for research
Community Support
Data Visualization
Case Study: Representing Vectors
Activity A: Creating an Object Literal for a Hotel Management Application
Scenario: According to the recent survey, the count of polluted cities is
observed in North India. We need to calculate and display top 4 polluted cities.
Aim: To show the information gathered in pie chart
Expected Output:
Polluted cities are displayed in pie chart along with their distinct legends
Advanced Data Visualization
Data Science with R
ggplot2
qplot
Facet_grid
ggplot
Data Science with R
These ideas and the syntax of ggplot2 help to think of graphs in a new and
more general way.
Produces pleasing plots, taking care of many of the fiddly details (legends,
axes, colors, …).
It is built upon the “grid” graphics system.
It is open software, with a large number of gg_ extensions.
Case Study: Seasonal Plot
Activity A: Creating an Object Literal Sea
Scenario: Create a chart with time series object where seasonal fluctuations are
visible
Aim: To display the values of survey in expected manner
Expected Output:
You can see the traffic increase in air passengers over the years along with the
repetitive seasonal patterns in traffic. Whereas Nottingham does not show an
increase in overall temperatures over the years, but they definitely follow a
seasonal pattern.
Statistics
Statistics
Data Science with R
Statistics describes a numeric set of data
It includes centre, variability and shape
It describes a categorical set of data
Mean
Data Science with R
Also called as a average
Step 1: Adds all numbers
Step 2: Dividing with total number set
Median
Data Science with R
It is dependent on whether the number of
elements
Reorder all the elements
If there are two elements divide it by 2
Mode
Data Science with R
It is element which occurs most often
It is not uncommon to have more than
one mode
Same frequency on the given data set