SlideShare a Scribd company logo
Statistics For Data Science | Statistics Using R Programming Language | Hypothesis Testing | Edureka
Introduction to Statistics
Terminology
Categories in Statistics
Descriptive & Inferential
Statistics
Statistics in R
Descriptive Statistics in R
Inferential Statistics in R
Agenda
Introduction to Statistics
Terminology
Categories in Statistics
Descriptive & Inferential
Statistics
Statistics in R
Descriptive Statistics in R
Inferential Statistics in R
Agenda
Introduction to Statistics
Terminology
Categories in Statistics
Descriptive & Inferential
Statistics
Statistics in R
Descriptive Statistics in R
Inferential Statistics in R
Agenda
Introduction to Statistics
Terminology
Categories in Statistics
Descriptive & Inferential
Statistics
Statistics in R
Descriptive Statistics in R
Inferential Statistics in R
Agenda
Introduction to Statistics
Terminology
Categories in Statistics
Descriptive & Inferential
Statistics
Statistics in R
Descriptive Statistics in R
Inferential Statistics in R
Agenda
Introduction to Statistics
Terminology
Categories in Statistics
Descriptive & Inferential
Statistics
Statistics in R
Descriptive Statistics in R
Inferential Statistics in R
Agenda
Introduction to Statistics
Terminology
Categories in Statistics
Descriptive & Inferential
Statistics
Statistics in R
Descriptive Statistics in R
Inferential Statistics in R
Agenda
Introduction to Statistics
Terminology
Categories in Statistics
Descriptive & Inferential
Statistics
Statistics in R
Descriptive Statistics in R
Inferential Statistics in R
Agenda
Introduction to Statistics
Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification
Introduction to Statistics
Statistics is a branch of mathematics dealing with data collection and organization, analysis,
interpretation and presentation.
Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification
Introduction to Statistics
Statistics is a branch of mathematics dealing with data collection and organization, analysis,
interpretation and presentation.
Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification
Introduction to Statistics
Statistics is a branch of mathematics dealing with data collection and organization, analysis,
interpretation and presentation.
Analyse Data
Build a Model
Infer Result
Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification
Introduction to Statistics
Statistics is a branch of mathematics dealing with data collection and organization, analysis,
interpretation and presentation.
Statistics
Stock
Market
Life
Sciences
Weather
Retail
Insurance
Education
Terminology
Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification
Basic Terminology
There are a few statistical terms one should be aware of while dealing with statistics.
Population ParameterSample Variable
Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification
Basic Terminology
There are a few statistical terms one should be aware of while dealing with statistics.
Population ParameterSample Variable
Population is the set of sources from which data has to be
collected.
Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification
Basic Terminology
There are a few statistical terms one should be aware of while dealing with statistics.
Population ParameterSample Variable
A Sample is a subset of the Population.
Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification
Basic Terminology
There are a few statistical terms one should be aware of while dealing with statistics.
Population ParameterSample Variable
A variable is any characteristics, number, or quantity that can
be measured or counted.
A variable may also be called a data item.
Gender Age Region
Height
Weight
Income
Blood Group Ethnicity
Degree
Time
Language
Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification
Basic Terminology
There are a few statistical terms one should be aware of while dealing with statistics.
Population ParameterSample Variable
Also known as a statistical model, A statistical
Parameter or population parameter is a quantity that
indexes a family of probability distributions.
µ
∑
х
Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification
Types of Analysis
An analysis can be done in one of two ways.
Analysis
Quantitative Qualitative
Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification
Types of Analysis
An analysis can be done in one of two ways.
Also known as Statistical Analysis,
it is the science of collecting &
interpreting objects with numbers.
Also known as Non-statistical
Analysis, it mostly deals with
generic data using text, media, etc
Analysis
Quantitative Qualitative
Categories in Statistics
Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification
Inferential statistics makes inferences and predictions about a
population based on a sample of data taken from the population in
question.
Descriptive statistics uses the data to provide descriptions of the
population, either through numerical calculations or graphs or
tables.
Categories in Statistics
There are two major categories in Statistics.
Descriptive
InferentialInferential
Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification
Descriptive Statistics
This method, is mainly focused upon the main characteristics of data. It provides graphical
summary of the data.
Characteristics of Data
Descriptive Statistics
Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification
Descriptive Statistics
Maximum
Minimum
Average
This method, is mainly focused upon the main characteristics of data. It provides graphical
summary of the data.
Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification
Inferential Statistics
This method, generalizes a large dataset and applies probability to draw a conclusion. It allows us
to infer data parameters based on a statistical model using a sample data.
Statistical Model
Start
Process Step
Decision
Answer
Choice I
Choice II
Inferential Statistics
Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification
Inferential Statistics
Tall
Short
Average
This method, generalizes a large dataset and applies probability to draw a conclusion. It allows us
to infer data parameters based on a statistical model using a sample data.
Descriptive Statistics – Statistical Measures
Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification
Descriptive Statistics – Use Case
Here is a sample dataset of cars containing
the variables: Cars, Mileage per
Gallon(mpg), Cylinder Type (cyl),
Displacement (disp), Horse Power(hp) &
Real Axle Ratio(drat).
Using descriptive Analysis, you can analyse
each of the variables in the dataset for
mean, standard deviation, minimum and
maximum.
Cars mpg cyl disp hp drat
A 21 6 160 110 3.9
B 21 6 160 110 3.9
C 22.8 4 108 93 3.85
D 21.3 6 108 96 3
E 23 4 150 90 4
F 23 6 108 110 3.9
G 23 4 160 110 3.9
H 23 6 160 110 3.9
Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification
Measures of the Centre
There are a few statistical terms one should be aware of while dealing with statistics.
Mean Median Mode
Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification
Descriptive Statistics – Use Case
If we want to find out the average
horsepower of the cars among the
population of cars, we will check and
calculate the average of all values. In this
case,
Cars mpg cyl disp hp drat
A 21 6 160 110 3.9
B 21 6 160 110 3.9
C 22.8 4 108 93 3.85
D 21.3 6 108 96 3
E 23 4 150 90 4
F 23 6 108 110 3.9
G 23 4 160 110 3.9
H 23 6 160 110 3.9
110 + 110 + 93 + 96 + 90 + 110 + 110 + 110
8
= 103.625
Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification
Measures of the Centre
There are a few statistical terms one should be aware of while dealing with statistics.
Mean Median Mode
Measure of average of all the values in a sample is called Mean.
Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification
Descriptive Statistics – Use Case
If we want to find out the centre value of
mpg among the population of cars, we will
arrange the mpg values in ascending order
to choose the middle value. In this case,
21,21,21.3,22.8,23,23,23,23
But in case of even entries, we take
average of the two middle values. In this
case,
22.8+23
2
= 22.9
Cars mpg cyl disp hp drat
A 21 6 160 110 3.9
B 21 6 160 110 3.9
C 22.8 4 108 93 3.85
D 21.3 6 108 96 3
E 23 4 150 90 4
F 23 6 108 110 3.9
G 23 4 160 110 3.9
H 23 6 160 110 3.9
Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification
Measures of the Centre
There are a few statistical terms one should be aware of while dealing with statistics.
Mean Median Mode
Measure of the central value of the sample set is called Median.
Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification
Descriptive Statistics – Use Case
If we want to find out the most common
type of cylinder among the population of
cars, we will check the value which is
repeated most number of times.
4 6
4 6
Cars mpg cyl disp hp drat
A 21 6 160 110 3.9
B 21 6 160 110 3.9
C 22.8 4 108 93 3.85
D 21.3 6 108 96 3
E 23 4 150 90 4
F 23 6 108 110 3.9
G 23 4 160 110 3.9
H 23 6 160 110 3.9
Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification
Measures of the Centre
There are a few statistical terms one should be aware of while dealing with statistics.
Mean Median Mode
The value most recurrent in the sample set is known as Mode.
Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification
Measures of the Spread
There are a few statistical terms one should be aware of while dealing with statistics.
Range Standard DeviationInter Quartile Range Variance
Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification
Measures of Spread
There are a few statistical terms one should be aware of while dealing with statistics.
Range Standard DeviationInter Quartile Range Variance
Range is the given measure of how spread apart the values in a dataset are.
Range = Max(𝑥𝑖) - Min(𝑥𝑖)
Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification
Measures of Spread
There are a few statistical terms one should be aware of while dealing with statistics.
Range Standard DeviationInter Quartile Range Variance
Inter Quartile Range(IQR) is the measure of variability, based on dividing a dataset into
quartiles.
1 2 3 4 5 6 7 8
Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification
Measures of Spread
There are a few statistical terms one should be aware of while dealing with statistics.
Range Standard DeviationInter Quartile Range Variance
Quartile
1 2 3 4 5 6 7 8
Q1 Q2 Q3
Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification
Measures of Spread
There are a few statistical terms one should be aware of while dealing with statistics.
Range Standard DeviationInter Quartile Range Variance
Quartile
1 2 3 4 5 6 7 8
Q1 Q2 Q3
Q1=
2+3
2
=2.5
Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification
Measures of Spread
There are a few statistical terms one should be aware of while dealing with statistics.
Range Standard DeviationInter Quartile Range Variance
Quartile
1 2 3 4 5 6 7 8
Q1 Q2 Q3
Q2=
4+5
2
=4.5
Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification
Measures of Spread
There are a few statistical terms one should be aware of while dealing with statistics.
Range Standard DeviationInter Quartile Range Variance
Quartile
1 2 3 4 5 6 7 8
Q1 Q2 Q3
Q3=
6+7
2
=6.5
Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification
Measures of Spread
There are a few statistical terms one should be aware of while dealing with statistics.
Range Standard DeviationInter Quartile Range Variance
Inter Quartile Range
1 2 3 4 5 6 7 8
Q1 Q3
Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification
Measures of Spread
There are a few statistical terms one should be aware of while dealing with statistics.
Range Standard DeviationInter Quartile Range Variance
Variance describes how much a random variable differs from its expected value.
It entails computing squares of deviations.
Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification
Measures of Spread
There are a few statistical terms one should be aware of while dealing with statistics.
Range Standard DeviationInter Quartile Range Variance
❖ Deviation is the difference between each element from the mean.
Deviation = (𝑥𝑖-µ)
Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification
Measures of Spread
There are a few statistical terms one should be aware of while dealing with statistics.
Range Standard DeviationInter Quartile Range Variance
❖ Population Variance is the average of squared deviations.
σ² = ෍
𝑖=1
𝑁
= (𝑥𝑖−𝜇)²
1
𝑁
Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification
Measures of Spread
There are a few statistical terms one should be aware of while dealing with statistics.
Range Standard DeviationInter Quartile Range Variance
❖ Sample Variance is the average of squared differences from the mean.
s² = ෍
𝑖=1
𝑁
= (𝑥𝑖− ҧ𝑥)²
1
(𝑛 − 1)
Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification
Measures of Spread
There are a few statistical terms one should be aware of while dealing with statistics.
Range Standard DeviationInter Quartile Range Variance
Standard Deviation is the measure of the dispersion of a set of data from its mean.
σ = ෍
𝑖=1
𝑁
= (𝑥𝑖−𝜇)²
1
𝑁
Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification
Standard Deviation– Use Case
Ross has 20 Dinosaur figures. They have the numbers 9, 2, 5, 4, 12, 7, 8, 11, 9, 3, 7, 4, 12, 5, 4,
10, 9, 6, 9, 4. Work out the Standard Deviation.
Find out the
mean for your
sample set.
STEP 1 The Mean is:
9+2+5+4+12+7+8+11+9+3+7+4+12+5+4+10+9+6+9+4
20
⸫µ=7
Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification
Standard Deviation– Use Case
Ross has 20 Dinosaur figures. They have the numbers 9, 2, 5, 4, 12, 7, 8, 11, 9, 3, 7, 4, 12, 5, 4,
10, 9, 6, 9, 4. Work out the Standard Deviation.
Then for each
number, subtract
the Mean and
square the result.
STEP 2
(𝑥𝑖−𝜇)²
(9-7)²= 2²=4
(2-7)²= (-5)²=25
(5-7)²= (-2)²=4
And so on…
⸫ We get the following results:
4, 25, 4, 9, 25, 0, 1, 16, 4, 16, 0, 9, 25, 4, 9, 9, 4, 1, 4, 9
Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification
Standard Deviation– Use Case
Ross has 20 Dinosaur figures. They have the numbers 9, 2, 5, 4, 12, 7, 8, 11, 9, 3, 7, 4, 12, 5, 4,
10, 9, 6, 9, 4. Work out the Standard Deviation.
Then work out the
mean of those
squared
differences.
STEP 3 ෍
𝑖=1
𝑁
= (𝑥𝑖−𝜇)²
1
𝑁
4+25+4+9+25+0+1+16+4+16+0+9+25+4+9+9+4+1+4+9
20
⸫ σ² = 8.9
Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification
Standard Deviation– Use Case
Ross has 20 Dinosaur figures. They have the numbers 9, 2, 5, 4, 12, 7, 8, 11, 9, 3, 7, 4, 12, 5, 4,
10, 9, 6, 9, 4. Work out the Standard Deviation.
Take square root
of σ².
STEP 4
⸫ σ = 2.983
෍
𝑖=1
𝑁
= (𝑥𝑖−𝜇)²
1
𝑁
σ =
Statistics in R
Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification
Statistics in R
❖ R is open-source and freely available.
❖ R is cross-platform compatible.
❖ R is a powerful scripting language.
❖ R is highly flexible and evolved.
Reasons for moving to R
Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification
Statistics in R
❖ R is open-source and freely available.
❖ R is cross-platform compatible.
❖ R is a powerful scripting language.
❖ R is highly flexible and evolved.
Reasons for moving to R
Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification
Statistics in R
❖ R is open-source and freely available.
❖ R is cross-platform compatible.
❖ R is a powerful scripting language.
❖ R is highly flexible and evolved.
Reasons for moving to R
Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification
Statistics in R
❖ R is open-source and freely available.
❖ R is cross-platform compatible.
❖ R is a powerful scripting language.
❖ R is highly flexible and evolved.
Reasons for moving to R
Descriptive statistics in R
Inferential Statistics – Hypothesis Testing
Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification
Hypothesis Testing
Statisticians use hypothesis testing to formally check whether the hypothesis is accepted or
rejected.
Hypothesis testing is conducted in the following manner:
❖ State the Hypotheses – This stage involves stating the null and alternative hypotheses.
❖ Formulate an Analysis Plan – This stage involves the construction of an analysis plan.
❖ Analyse Sample Data – This stage involves the calculation and interpretation of the test
statistic as described in the analysis plan.
❖ Interpret Results – This stage involves the application of the decision rule described in the
analysis plan.
Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification
Hypothesis Testing
Nick John Bob Harry
Assume the event is free of bias.
So, what is the probability of John not cheating?
Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification
Hypothesis Testing
Nick John Bob Harry
P(John not picked for a day) =
3
4
P(John not picked for 3 days) =
3
4
×
3
4
×
3
4
= 0.42 (approx)
P(John not picked for 12 days) = (
3
4
) 12
= 0.032 < 𝟎. 𝟎𝟓
Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification
Hypothesis Testing
Nick John Bob Harry
Null Hypothesis (𝑯 𝟎) : Result is no different from assumption.
Alternate Hypothesis (𝑯 𝒂) : Result disproves the assumption.
Probability of Event < 𝟎. 𝟎𝟓 (5%)
Inferential Statistics in R
www.edureka.co/masters-program/business-intelligence-certification

More Related Content

What's hot (20)

PPTX
Exploratory data analysis
Gramener
 
PPTX
Exploratory data analysis with Python
Davis David
 
PDF
Exploratory data analysis data visualization
Dr. Hamdan Al-Sabri
 
PDF
Linear Regression vs Logistic Regression | Edureka
Edureka!
 
PDF
Introduction to Data Science
Edureka!
 
PPTX
Introduction to Data Analytics
Dr. C.V. Suresh Babu
 
PPTX
Logistic regression
saba khan
 
PDF
Logistic regression
VARUN KUMAR
 
PPTX
Logistic regression
YashwantGahlot1
 
PPTX
3.5 Exploratory Data Analysis
mlong24
 
PPTX
Introduction to data science
Sampath Kumar
 
PDF
Data Visualization in Exploratory Data Analysis
Eva Durall
 
PPT
Linear regression
Karishma Chaudhary
 
PPTX
Data science life cycle
Manoj Mishra
 
PPTX
Linear Regression Algorithm | Linear Regression in R | Data Science Training ...
Edureka!
 
PPTX
What Is Data Science? | Introduction to Data Science | Data Science For Begin...
Simplilearn
 
PPT
Logistic Regression.ppt
habtamu biazin
 
PPTX
Exploratory Data Analysis
Umair Shafique
 
PDF
Logistic regression
Venkata Reddy Konasani
 
PDF
Data Visualization With R
Rsquared Academy
 
Exploratory data analysis
Gramener
 
Exploratory data analysis with Python
Davis David
 
Exploratory data analysis data visualization
Dr. Hamdan Al-Sabri
 
Linear Regression vs Logistic Regression | Edureka
Edureka!
 
Introduction to Data Science
Edureka!
 
Introduction to Data Analytics
Dr. C.V. Suresh Babu
 
Logistic regression
saba khan
 
Logistic regression
VARUN KUMAR
 
Logistic regression
YashwantGahlot1
 
3.5 Exploratory Data Analysis
mlong24
 
Introduction to data science
Sampath Kumar
 
Data Visualization in Exploratory Data Analysis
Eva Durall
 
Linear regression
Karishma Chaudhary
 
Data science life cycle
Manoj Mishra
 
Linear Regression Algorithm | Linear Regression in R | Data Science Training ...
Edureka!
 
What Is Data Science? | Introduction to Data Science | Data Science For Begin...
Simplilearn
 
Logistic Regression.ppt
habtamu biazin
 
Exploratory Data Analysis
Umair Shafique
 
Logistic regression
Venkata Reddy Konasani
 
Data Visualization With R
Rsquared Academy
 

Similar to Statistics For Data Science | Statistics Using R Programming Language | Hypothesis Testing | Edureka (20)

PPTX
Business Statistics unit 1.pptx
shivank49
 
PPTX
INTRODUCTION TO STATISTICS.pptx
AvilosErgelaKram
 
PPTX
Stats LECTURE 1.pptx
KEHKASHANNIZAM
 
PPTX
Statistics online lecture 01.pptx
IkramUlhaq93
 
PPTX
Chapter 1 of the book Basic Statistics as described by teacher
karamjit18
 
PDF
Statistics
Learnbay Datascience
 
PPTX
Introduction to Statistics
Jahanzaib Shah
 
PPTX
Statistical techniques for interpreting and reporting quantitative data i
Vijayalakshmi Murugesan
 
PPTX
Introduction to statistics
Santosh Bhandari
 
PDF
statistical analysis, analysis of statistical mechanism
Sanjay100591
 
PPTX
Business statistics
Homework Guru
 
PPT
Lecture 1.ppt
Vinayak Vishwakarma
 
PPT
statistics.ppt
AthenaYshelleYsit
 
PPT
Lecture-1.ppt
AthenaYshelleYsit
 
PPT
Lecture 1.ppt
HafizAbdulMannanUnkn
 
PPTX
050325Online SPSS.pptx spss social science
NurFatin805963
 
DOCX
BUS308 – Week 1 Lecture 2 Describing Data Expected Out.docx
curwenmichaela
 
PDF
CHAPTER 1.pdf Probability and Statistics for Engineers
braveset14
 
PDF
CHAPTER 1.pdfProbability and Statistics for Engineers
braveset14
 
PPTX
Introduction to statistics
babyboomer13
 
Business Statistics unit 1.pptx
shivank49
 
INTRODUCTION TO STATISTICS.pptx
AvilosErgelaKram
 
Stats LECTURE 1.pptx
KEHKASHANNIZAM
 
Statistics online lecture 01.pptx
IkramUlhaq93
 
Chapter 1 of the book Basic Statistics as described by teacher
karamjit18
 
Introduction to Statistics
Jahanzaib Shah
 
Statistical techniques for interpreting and reporting quantitative data i
Vijayalakshmi Murugesan
 
Introduction to statistics
Santosh Bhandari
 
statistical analysis, analysis of statistical mechanism
Sanjay100591
 
Business statistics
Homework Guru
 
Lecture 1.ppt
Vinayak Vishwakarma
 
statistics.ppt
AthenaYshelleYsit
 
Lecture-1.ppt
AthenaYshelleYsit
 
Lecture 1.ppt
HafizAbdulMannanUnkn
 
050325Online SPSS.pptx spss social science
NurFatin805963
 
BUS308 – Week 1 Lecture 2 Describing Data Expected Out.docx
curwenmichaela
 
CHAPTER 1.pdf Probability and Statistics for Engineers
braveset14
 
CHAPTER 1.pdfProbability and Statistics for Engineers
braveset14
 
Introduction to statistics
babyboomer13
 
Ad

More from Edureka! (20)

PDF
What to learn during the 21 days Lockdown | Edureka
Edureka!
 
PDF
Top 10 Dying Programming Languages in 2020 | Edureka
Edureka!
 
PDF
Top 5 Trending Business Intelligence Tools | Edureka
Edureka!
 
PDF
Tableau Tutorial for Data Science | Edureka
Edureka!
 
PDF
Python Programming Tutorial | Edureka
Edureka!
 
PDF
Top 5 PMP Certifications | Edureka
Edureka!
 
PDF
Top Maven Interview Questions in 2020 | Edureka
Edureka!
 
PDF
Linux Mint Tutorial | Edureka
Edureka!
 
PDF
How to Deploy Java Web App in AWS| Edureka
Edureka!
 
PDF
Importance of Digital Marketing | Edureka
Edureka!
 
PDF
RPA in 2020 | Edureka
Edureka!
 
PDF
Email Notifications in Jenkins | Edureka
Edureka!
 
PDF
EA Algorithm in Machine Learning | Edureka
Edureka!
 
PDF
Cognitive AI Tutorial | Edureka
Edureka!
 
PDF
AWS Cloud Practitioner Tutorial | Edureka
Edureka!
 
PDF
Blue Prism Top Interview Questions | Edureka
Edureka!
 
PDF
Big Data on AWS Tutorial | Edureka
Edureka!
 
PDF
A star algorithm | A* Algorithm in Artificial Intelligence | Edureka
Edureka!
 
PDF
Kubernetes Installation on Ubuntu | Edureka
Edureka!
 
PDF
Introduction to DevOps | Edureka
Edureka!
 
What to learn during the 21 days Lockdown | Edureka
Edureka!
 
Top 10 Dying Programming Languages in 2020 | Edureka
Edureka!
 
Top 5 Trending Business Intelligence Tools | Edureka
Edureka!
 
Tableau Tutorial for Data Science | Edureka
Edureka!
 
Python Programming Tutorial | Edureka
Edureka!
 
Top 5 PMP Certifications | Edureka
Edureka!
 
Top Maven Interview Questions in 2020 | Edureka
Edureka!
 
Linux Mint Tutorial | Edureka
Edureka!
 
How to Deploy Java Web App in AWS| Edureka
Edureka!
 
Importance of Digital Marketing | Edureka
Edureka!
 
RPA in 2020 | Edureka
Edureka!
 
Email Notifications in Jenkins | Edureka
Edureka!
 
EA Algorithm in Machine Learning | Edureka
Edureka!
 
Cognitive AI Tutorial | Edureka
Edureka!
 
AWS Cloud Practitioner Tutorial | Edureka
Edureka!
 
Blue Prism Top Interview Questions | Edureka
Edureka!
 
Big Data on AWS Tutorial | Edureka
Edureka!
 
A star algorithm | A* Algorithm in Artificial Intelligence | Edureka
Edureka!
 
Kubernetes Installation on Ubuntu | Edureka
Edureka!
 
Introduction to DevOps | Edureka
Edureka!
 
Ad

Recently uploaded (20)

PDF
Blockchain Transactions Explained For Everyone
CIFDAQ
 
PDF
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 
PDF
Ampere Offers Energy-Efficient Future For AI And Cloud
ShapeBlue
 
PDF
Wojciech Ciemski for Top Cyber News MAGAZINE. June 2025
Dr. Ludmila Morozova-Buss
 
PPTX
Building and Operating a Private Cloud with CloudStack and LINBIT CloudStack ...
ShapeBlue
 
PDF
UiPath vs Other Automation Tools Meeting Presentation.pdf
Tracy Dixon
 
PPTX
Top iOS App Development Company in the USA for Innovative Apps
SynapseIndia
 
PDF
Are there government-backed agri-software initiatives in Limerick.pdf
giselawagner2
 
PDF
Upgrading to z_OS V2R4 Part 01 of 02.pdf
Flavio787771
 
PDF
Shuen Mei Parth Sharma Boost Productivity, Innovation and Efficiency wit...
AWS Chicago
 
PPTX
The Yotta x CloudStack Advantage: Scalable, India-First Cloud
ShapeBlue
 
PDF
Arcee AI - building and working with small language models (06/25)
Julien SIMON
 
PDF
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
PDF
HR agent at Mediq: Lessons learned on Agent Builder & Maestro by Tacstone Tec...
UiPathCommunity
 
PDF
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
PDF
Bitcoin+ Escalando sin concesiones - Parte 1
Fernando Paredes García
 
PDF
Windsurf Meetup Ottawa 2025-07-12 - Planning Mode at Reliza.pdf
Pavel Shukhman
 
PDF
NewMind AI Journal - Weekly Chronicles - July'25 Week II
NewMind AI
 
PPTX
Extensions Framework (XaaS) - Enabling Orchestrate Anything
ShapeBlue
 
PPTX
Top Managed Service Providers in Los Angeles
Captain IT
 
Blockchain Transactions Explained For Everyone
CIFDAQ
 
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 
Ampere Offers Energy-Efficient Future For AI And Cloud
ShapeBlue
 
Wojciech Ciemski for Top Cyber News MAGAZINE. June 2025
Dr. Ludmila Morozova-Buss
 
Building and Operating a Private Cloud with CloudStack and LINBIT CloudStack ...
ShapeBlue
 
UiPath vs Other Automation Tools Meeting Presentation.pdf
Tracy Dixon
 
Top iOS App Development Company in the USA for Innovative Apps
SynapseIndia
 
Are there government-backed agri-software initiatives in Limerick.pdf
giselawagner2
 
Upgrading to z_OS V2R4 Part 01 of 02.pdf
Flavio787771
 
Shuen Mei Parth Sharma Boost Productivity, Innovation and Efficiency wit...
AWS Chicago
 
The Yotta x CloudStack Advantage: Scalable, India-First Cloud
ShapeBlue
 
Arcee AI - building and working with small language models (06/25)
Julien SIMON
 
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
HR agent at Mediq: Lessons learned on Agent Builder & Maestro by Tacstone Tec...
UiPathCommunity
 
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
Bitcoin+ Escalando sin concesiones - Parte 1
Fernando Paredes García
 
Windsurf Meetup Ottawa 2025-07-12 - Planning Mode at Reliza.pdf
Pavel Shukhman
 
NewMind AI Journal - Weekly Chronicles - July'25 Week II
NewMind AI
 
Extensions Framework (XaaS) - Enabling Orchestrate Anything
ShapeBlue
 
Top Managed Service Providers in Los Angeles
Captain IT
 

Statistics For Data Science | Statistics Using R Programming Language | Hypothesis Testing | Edureka

  • 2. Introduction to Statistics Terminology Categories in Statistics Descriptive & Inferential Statistics Statistics in R Descriptive Statistics in R Inferential Statistics in R Agenda
  • 3. Introduction to Statistics Terminology Categories in Statistics Descriptive & Inferential Statistics Statistics in R Descriptive Statistics in R Inferential Statistics in R Agenda
  • 4. Introduction to Statistics Terminology Categories in Statistics Descriptive & Inferential Statistics Statistics in R Descriptive Statistics in R Inferential Statistics in R Agenda
  • 5. Introduction to Statistics Terminology Categories in Statistics Descriptive & Inferential Statistics Statistics in R Descriptive Statistics in R Inferential Statistics in R Agenda
  • 6. Introduction to Statistics Terminology Categories in Statistics Descriptive & Inferential Statistics Statistics in R Descriptive Statistics in R Inferential Statistics in R Agenda
  • 7. Introduction to Statistics Terminology Categories in Statistics Descriptive & Inferential Statistics Statistics in R Descriptive Statistics in R Inferential Statistics in R Agenda
  • 8. Introduction to Statistics Terminology Categories in Statistics Descriptive & Inferential Statistics Statistics in R Descriptive Statistics in R Inferential Statistics in R Agenda
  • 9. Introduction to Statistics Terminology Categories in Statistics Descriptive & Inferential Statistics Statistics in R Descriptive Statistics in R Inferential Statistics in R Agenda
  • 11. Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification Introduction to Statistics Statistics is a branch of mathematics dealing with data collection and organization, analysis, interpretation and presentation.
  • 12. Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification Introduction to Statistics Statistics is a branch of mathematics dealing with data collection and organization, analysis, interpretation and presentation.
  • 13. Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification Introduction to Statistics Statistics is a branch of mathematics dealing with data collection and organization, analysis, interpretation and presentation. Analyse Data Build a Model Infer Result
  • 14. Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification Introduction to Statistics Statistics is a branch of mathematics dealing with data collection and organization, analysis, interpretation and presentation. Statistics Stock Market Life Sciences Weather Retail Insurance Education
  • 16. Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification Basic Terminology There are a few statistical terms one should be aware of while dealing with statistics. Population ParameterSample Variable
  • 17. Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification Basic Terminology There are a few statistical terms one should be aware of while dealing with statistics. Population ParameterSample Variable Population is the set of sources from which data has to be collected.
  • 18. Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification Basic Terminology There are a few statistical terms one should be aware of while dealing with statistics. Population ParameterSample Variable A Sample is a subset of the Population.
  • 19. Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification Basic Terminology There are a few statistical terms one should be aware of while dealing with statistics. Population ParameterSample Variable A variable is any characteristics, number, or quantity that can be measured or counted. A variable may also be called a data item. Gender Age Region Height Weight Income Blood Group Ethnicity Degree Time Language
  • 20. Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification Basic Terminology There are a few statistical terms one should be aware of while dealing with statistics. Population ParameterSample Variable Also known as a statistical model, A statistical Parameter or population parameter is a quantity that indexes a family of probability distributions. µ ∑ х
  • 21. Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification Types of Analysis An analysis can be done in one of two ways. Analysis Quantitative Qualitative
  • 22. Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification Types of Analysis An analysis can be done in one of two ways. Also known as Statistical Analysis, it is the science of collecting & interpreting objects with numbers. Also known as Non-statistical Analysis, it mostly deals with generic data using text, media, etc Analysis Quantitative Qualitative
  • 24. Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification Inferential statistics makes inferences and predictions about a population based on a sample of data taken from the population in question. Descriptive statistics uses the data to provide descriptions of the population, either through numerical calculations or graphs or tables. Categories in Statistics There are two major categories in Statistics. Descriptive InferentialInferential
  • 25. Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification Descriptive Statistics This method, is mainly focused upon the main characteristics of data. It provides graphical summary of the data. Characteristics of Data Descriptive Statistics
  • 26. Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification Descriptive Statistics Maximum Minimum Average This method, is mainly focused upon the main characteristics of data. It provides graphical summary of the data.
  • 27. Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification Inferential Statistics This method, generalizes a large dataset and applies probability to draw a conclusion. It allows us to infer data parameters based on a statistical model using a sample data. Statistical Model Start Process Step Decision Answer Choice I Choice II Inferential Statistics
  • 28. Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification Inferential Statistics Tall Short Average This method, generalizes a large dataset and applies probability to draw a conclusion. It allows us to infer data parameters based on a statistical model using a sample data.
  • 29. Descriptive Statistics – Statistical Measures
  • 30. Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification Descriptive Statistics – Use Case Here is a sample dataset of cars containing the variables: Cars, Mileage per Gallon(mpg), Cylinder Type (cyl), Displacement (disp), Horse Power(hp) & Real Axle Ratio(drat). Using descriptive Analysis, you can analyse each of the variables in the dataset for mean, standard deviation, minimum and maximum. Cars mpg cyl disp hp drat A 21 6 160 110 3.9 B 21 6 160 110 3.9 C 22.8 4 108 93 3.85 D 21.3 6 108 96 3 E 23 4 150 90 4 F 23 6 108 110 3.9 G 23 4 160 110 3.9 H 23 6 160 110 3.9
  • 31. Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification Measures of the Centre There are a few statistical terms one should be aware of while dealing with statistics. Mean Median Mode
  • 32. Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification Descriptive Statistics – Use Case If we want to find out the average horsepower of the cars among the population of cars, we will check and calculate the average of all values. In this case, Cars mpg cyl disp hp drat A 21 6 160 110 3.9 B 21 6 160 110 3.9 C 22.8 4 108 93 3.85 D 21.3 6 108 96 3 E 23 4 150 90 4 F 23 6 108 110 3.9 G 23 4 160 110 3.9 H 23 6 160 110 3.9 110 + 110 + 93 + 96 + 90 + 110 + 110 + 110 8 = 103.625
  • 33. Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification Measures of the Centre There are a few statistical terms one should be aware of while dealing with statistics. Mean Median Mode Measure of average of all the values in a sample is called Mean.
  • 34. Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification Descriptive Statistics – Use Case If we want to find out the centre value of mpg among the population of cars, we will arrange the mpg values in ascending order to choose the middle value. In this case, 21,21,21.3,22.8,23,23,23,23 But in case of even entries, we take average of the two middle values. In this case, 22.8+23 2 = 22.9 Cars mpg cyl disp hp drat A 21 6 160 110 3.9 B 21 6 160 110 3.9 C 22.8 4 108 93 3.85 D 21.3 6 108 96 3 E 23 4 150 90 4 F 23 6 108 110 3.9 G 23 4 160 110 3.9 H 23 6 160 110 3.9
  • 35. Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification Measures of the Centre There are a few statistical terms one should be aware of while dealing with statistics. Mean Median Mode Measure of the central value of the sample set is called Median.
  • 36. Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification Descriptive Statistics – Use Case If we want to find out the most common type of cylinder among the population of cars, we will check the value which is repeated most number of times. 4 6 4 6 Cars mpg cyl disp hp drat A 21 6 160 110 3.9 B 21 6 160 110 3.9 C 22.8 4 108 93 3.85 D 21.3 6 108 96 3 E 23 4 150 90 4 F 23 6 108 110 3.9 G 23 4 160 110 3.9 H 23 6 160 110 3.9
  • 37. Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification Measures of the Centre There are a few statistical terms one should be aware of while dealing with statistics. Mean Median Mode The value most recurrent in the sample set is known as Mode.
  • 38. Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification Measures of the Spread There are a few statistical terms one should be aware of while dealing with statistics. Range Standard DeviationInter Quartile Range Variance
  • 39. Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification Measures of Spread There are a few statistical terms one should be aware of while dealing with statistics. Range Standard DeviationInter Quartile Range Variance Range is the given measure of how spread apart the values in a dataset are. Range = Max(𝑥𝑖) - Min(𝑥𝑖)
  • 40. Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification Measures of Spread There are a few statistical terms one should be aware of while dealing with statistics. Range Standard DeviationInter Quartile Range Variance Inter Quartile Range(IQR) is the measure of variability, based on dividing a dataset into quartiles. 1 2 3 4 5 6 7 8
  • 41. Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification Measures of Spread There are a few statistical terms one should be aware of while dealing with statistics. Range Standard DeviationInter Quartile Range Variance Quartile 1 2 3 4 5 6 7 8 Q1 Q2 Q3
  • 42. Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification Measures of Spread There are a few statistical terms one should be aware of while dealing with statistics. Range Standard DeviationInter Quartile Range Variance Quartile 1 2 3 4 5 6 7 8 Q1 Q2 Q3 Q1= 2+3 2 =2.5
  • 43. Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification Measures of Spread There are a few statistical terms one should be aware of while dealing with statistics. Range Standard DeviationInter Quartile Range Variance Quartile 1 2 3 4 5 6 7 8 Q1 Q2 Q3 Q2= 4+5 2 =4.5
  • 44. Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification Measures of Spread There are a few statistical terms one should be aware of while dealing with statistics. Range Standard DeviationInter Quartile Range Variance Quartile 1 2 3 4 5 6 7 8 Q1 Q2 Q3 Q3= 6+7 2 =6.5
  • 45. Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification Measures of Spread There are a few statistical terms one should be aware of while dealing with statistics. Range Standard DeviationInter Quartile Range Variance Inter Quartile Range 1 2 3 4 5 6 7 8 Q1 Q3
  • 46. Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification Measures of Spread There are a few statistical terms one should be aware of while dealing with statistics. Range Standard DeviationInter Quartile Range Variance Variance describes how much a random variable differs from its expected value. It entails computing squares of deviations.
  • 47. Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification Measures of Spread There are a few statistical terms one should be aware of while dealing with statistics. Range Standard DeviationInter Quartile Range Variance ❖ Deviation is the difference between each element from the mean. Deviation = (𝑥𝑖-µ)
  • 48. Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification Measures of Spread There are a few statistical terms one should be aware of while dealing with statistics. Range Standard DeviationInter Quartile Range Variance ❖ Population Variance is the average of squared deviations. σ² = ෍ 𝑖=1 𝑁 = (𝑥𝑖−𝜇)² 1 𝑁
  • 49. Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification Measures of Spread There are a few statistical terms one should be aware of while dealing with statistics. Range Standard DeviationInter Quartile Range Variance ❖ Sample Variance is the average of squared differences from the mean. s² = ෍ 𝑖=1 𝑁 = (𝑥𝑖− ҧ𝑥)² 1 (𝑛 − 1)
  • 50. Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification Measures of Spread There are a few statistical terms one should be aware of while dealing with statistics. Range Standard DeviationInter Quartile Range Variance Standard Deviation is the measure of the dispersion of a set of data from its mean. σ = ෍ 𝑖=1 𝑁 = (𝑥𝑖−𝜇)² 1 𝑁
  • 51. Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification Standard Deviation– Use Case Ross has 20 Dinosaur figures. They have the numbers 9, 2, 5, 4, 12, 7, 8, 11, 9, 3, 7, 4, 12, 5, 4, 10, 9, 6, 9, 4. Work out the Standard Deviation. Find out the mean for your sample set. STEP 1 The Mean is: 9+2+5+4+12+7+8+11+9+3+7+4+12+5+4+10+9+6+9+4 20 ⸫µ=7
  • 52. Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification Standard Deviation– Use Case Ross has 20 Dinosaur figures. They have the numbers 9, 2, 5, 4, 12, 7, 8, 11, 9, 3, 7, 4, 12, 5, 4, 10, 9, 6, 9, 4. Work out the Standard Deviation. Then for each number, subtract the Mean and square the result. STEP 2 (𝑥𝑖−𝜇)² (9-7)²= 2²=4 (2-7)²= (-5)²=25 (5-7)²= (-2)²=4 And so on… ⸫ We get the following results: 4, 25, 4, 9, 25, 0, 1, 16, 4, 16, 0, 9, 25, 4, 9, 9, 4, 1, 4, 9
  • 53. Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification Standard Deviation– Use Case Ross has 20 Dinosaur figures. They have the numbers 9, 2, 5, 4, 12, 7, 8, 11, 9, 3, 7, 4, 12, 5, 4, 10, 9, 6, 9, 4. Work out the Standard Deviation. Then work out the mean of those squared differences. STEP 3 ෍ 𝑖=1 𝑁 = (𝑥𝑖−𝜇)² 1 𝑁 4+25+4+9+25+0+1+16+4+16+0+9+25+4+9+9+4+1+4+9 20 ⸫ σ² = 8.9
  • 54. Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification Standard Deviation– Use Case Ross has 20 Dinosaur figures. They have the numbers 9, 2, 5, 4, 12, 7, 8, 11, 9, 3, 7, 4, 12, 5, 4, 10, 9, 6, 9, 4. Work out the Standard Deviation. Take square root of σ². STEP 4 ⸫ σ = 2.983 ෍ 𝑖=1 𝑁 = (𝑥𝑖−𝜇)² 1 𝑁 σ =
  • 56. Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification Statistics in R ❖ R is open-source and freely available. ❖ R is cross-platform compatible. ❖ R is a powerful scripting language. ❖ R is highly flexible and evolved. Reasons for moving to R
  • 57. Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification Statistics in R ❖ R is open-source and freely available. ❖ R is cross-platform compatible. ❖ R is a powerful scripting language. ❖ R is highly flexible and evolved. Reasons for moving to R
  • 58. Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification Statistics in R ❖ R is open-source and freely available. ❖ R is cross-platform compatible. ❖ R is a powerful scripting language. ❖ R is highly flexible and evolved. Reasons for moving to R
  • 59. Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification Statistics in R ❖ R is open-source and freely available. ❖ R is cross-platform compatible. ❖ R is a powerful scripting language. ❖ R is highly flexible and evolved. Reasons for moving to R
  • 61. Inferential Statistics – Hypothesis Testing
  • 62. Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification Hypothesis Testing Statisticians use hypothesis testing to formally check whether the hypothesis is accepted or rejected. Hypothesis testing is conducted in the following manner: ❖ State the Hypotheses – This stage involves stating the null and alternative hypotheses. ❖ Formulate an Analysis Plan – This stage involves the construction of an analysis plan. ❖ Analyse Sample Data – This stage involves the calculation and interpretation of the test statistic as described in the analysis plan. ❖ Interpret Results – This stage involves the application of the decision rule described in the analysis plan.
  • 63. Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification Hypothesis Testing Nick John Bob Harry Assume the event is free of bias. So, what is the probability of John not cheating?
  • 64. Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification Hypothesis Testing Nick John Bob Harry P(John not picked for a day) = 3 4 P(John not picked for 3 days) = 3 4 × 3 4 × 3 4 = 0.42 (approx) P(John not picked for 12 days) = ( 3 4 ) 12 = 0.032 < 𝟎. 𝟎𝟓
  • 65. Copyright © 2018, edureka and/or its affiliates. All rights reserved.www.edureka.co/masters-program/business-intelligence-certification Hypothesis Testing Nick John Bob Harry Null Hypothesis (𝑯 𝟎) : Result is no different from assumption. Alternate Hypothesis (𝑯 𝒂) : Result disproves the assumption. Probability of Event < 𝟎. 𝟎𝟓 (5%)