SlideShare a Scribd company logo
1 of 31
Basics
of
HYPOTHESIS TESTING
for
PHARMACY
Dr Parag Shah | M.Sc., M.Phil., Ph.D. ( Statistics)
pbshah@hlcollege.edu
www.paragstatistics.wordpress.com
Basic Concept
of
HYPOTHESIS
TESTING
Types
of
Analysis
Descriptive
&
Inferential
Statistics
Descriptive Statistics uses the data to provide
descriptions of the population / sample, either
through numerical calculations or graphs or tables.
Inferential Statistics makes inferences and
predictions about a population based on a sample
of data taken from the population.
Inferential
Statistics
The methods of inferential statistics are
• the estimation of parameter(s)
• testing of Statistical hypothesis
Parameter
and
Statistics
A measure calculated from population data is
called Parameter.
A measure calculated from sample data is called
Statistic.
Parameter Statistic
Mean μ x̄
Standard deviation σ s
Proportion P p
Correlation coefficient ρ r
Estimation
Estimation is a process whereby we select a random sample from a
population and use a sample statistic to estimate a population
parameter.
There are two ways for estimation:
• Point Estimation
• Interval Estimation
Point Estimate
Point Estimate – A sample statistic used to estimate
the exact value of a population parameter.
• A point estimate is a single value and has the
advantage of being very precise but there is no
information about its reliability.
• The probability that a single sample statistic actually
equal to the parameter value is extremely small. For
this reason point estimation is rarely used.
Interval
Estimate
Confidence interval (Interval Estimate)
A range of values defined by the confidence level
within which the population parameter is
estimated to fall.
• The interval estimate is less precise, but gives
more confidence.
TESTING OF
HYPOTHESIS
Statistical Hypothesis
A Statistical hypothesis is an assumption or any logical statement about the
parameter of the population.
E.g.
• Patients suffering from Chikungunya takes on an average more time to fully
recover than patients suffering from Dengue
• The average annual income of Indian farmer in 2018 is 78000 Rs.
• Proportion of diabetic patients in Gujarat is not more than 15 %
Null
hypothesis
A Null hypothesis is a general statement about population
parameter or about relation between two population
parameters.
It is denoted by H0.
• In Null hypothesis if the parameter assumes specific
value then it is called Simple hypothesis.
E.g. 𝜇 = 280, P=0.10
• In Null hypothesis if the parameter assumes set of
values then it is called Composite hypothesis.
E.g. 𝜇 ≥ 280, P ≤ 0.10
Alternative
Hypothesis
A statistical hypothesis which is complementary to the
Null hypothesis is called Alternative hypothesis. It is
denoted by H1.
Testing of
Hypothesis
The procedure to decide whether to accept or
reject the null hypothesis is called Testing of
hypothesis.
Type I
and
Type II Error
The error of rejecting the true null hypothesis is called
Type I error. Similar to False Positive.
The probability of type I error is denoted by 𝛼.
𝛼 = Prob [ Reject H0 / H0 is true]
The error of accepting the false null hypothesis is
called Type II error. Similar to False Negative.
The probability of type II error is denoted by 𝛽.
𝛽 = Prob [ Accept H0 / H0 is false]
Type I
and
Type II Error
DECISION
Null Hypothesis
TRUE FALSE
REJECT
Type I Error
False Positive
Probability = α
No Error
True Positive
Probability =1- β
NOT
REJECTED
No Error
True Negative
Probability = 1- α
Type II Error
False negative
Probability = β
Level of
Significance
The predetermined value of probability of type I
error is called level of significance.
It is denoted by 𝛼.
The most commonly used level of significance are
1% or 5%.
Interpretation: 5% level of significance means in 5
out of 100 cases, it is likely to reject a true null
hypothesis.
Critical Region
The area of the probability curve corresponding to 𝛼 is
called critical region. i.e. the area under normal curve
at which a true null hypothesis is rejected is called
area of rejection or critical region.
Power of Test
The probability of rejecting the false null
hypothesis is called the Power of the test.
It is denoted by 1- 𝛽.
i.e. 1- 𝛽 = Prob [ Reject H0 / H0 is false]
P value
• P-value ≡ the probability the test statistic would take a
value as extreme or more extreme than observed test
statistic, when H0 is true.
• Smaller-and-smaller P-values → stronger-and-stronger
evidence against H0
• For typical analysis, using the standard α = 0.05 cutoff,
the null hypothesis is
- rejected when p < = .05 and
- not rejected when p > .05.
Steps of
Testing of
Hypothesis
Step 1: Setting up Null hypothesis
Step 2: Setting up Alternative hypothesis
Step3: Check assumptions of the test
Step 4: Determining the p value
Step 5: Conclusion
• If p ≤ Level of significance (∝), We Reject Null
hypothesis
• If p > Level of significance (∝), We fail to Reject Null
hypothesis
Some of the
tests
• Testing single mean
• Testing significant difference between two means
• Testing single proportion
• Testing significant difference between two proportions
• Testing single standard deviation
• Testing two standard deviations
• Testing means for more than two samples
• Testing standard deviations for more than two samples
• Testing proportion for more than two samples
• Testing for non-normal populations
• Testing correlation and regression coefficients
Deciding Test
Parameter
Categorical
(Binary)
t test
for
single mean
Step 1: Null hypothesis H0: 𝜇 = 𝜇0
Step 2: Alternative hypothesis H1: 𝜇 ≠ 𝜇0 or 𝜇 > 𝜇0 or 𝜇 < 𝜇0
Step 3: Check Assumptions
Step 4: Test statistic – t and p value
Step 5: Conclusion
• If p ≤ Level of significance (∝), We Reject Null hypothesis
• If p > Level of significance (∝), We fail to Reject Null hypothesis
Assumptions Tests
The population from which the sample
drawn is assumed as Normal distribution
Shapiro-Wilks
/ qq plot
The population variance 𝜎2 is unknown ____
t test
for
means of two
independent
samples
Step 1: Null hypothesis H0: 𝜇1= 𝜇2
Step 2: Alternative hypothesis H1: 𝜇1 ≠ 𝜇2 or 𝜇1 > 𝜇2 or 𝜇1 < 𝜇2
Step 3: Check Assumptions
Step 4: Test statistic – t and p value
Step 5: Conclusion
• If p ≤ Level of significance (∝), We Reject Null hypothesis
• If p > Level of significance (∝), We fail to Reject Null hypothesis
Assumptions Tests
The population from which two samples drawn are
assumed as Normal distribution
Shapiro-Wilks
/ qq plot
Two population variance are unknown
(Equal / Unequal)
F test
The two samples are independently distributed ____
t test for Equal Variances t test for Unequal Variances
(Welch t test)
d.f. =
where
t test
for
means of two
dependent
samples
(Paired t test)
Step 1: Null hypothesis H0: 𝑑 = 0
Step 2: Alternative hypothesis H1: 𝑑 ≠ 0
Step 3: Check Assumptions
Step 4: Test statistic – t and p value
Step 5: Conclusion
• If p ≤ Level of significance (∝), We Reject Null hypothesis
• If p > Level of significance (∝), We fail to Reject Null hypothesis
Assumptions Tests
The difference between the two samples
are normally distributed.
Two-sample Kolmogorov-
Smirnov test / qq plot
The difference between the two samples
are independently distributed
____
The two samples are independently
distributed
____
Effect Size
Effect size is a statistical concept that measures the
strength of the relationship between two variables on
a numeric scale.
Statistic effect size helps us in determining if the
difference is real or if it is due to a change of factors.
Effect Size
In Meta-analysis, effect size is concerned with
different studies and then combines all the studies
into single analysis.
In statistics analysis, the effect size is usually
measured in three ways:
• standardized mean difference
• odd ratio
• correlation coefficient.
Effect Size
Cohen’s 𝑑 is the measure of the difference between two means
divided by the pooled standard deviation.
𝑑 =
𝑥1−𝑥2
𝑆𝑝
where
𝑛1−1 𝑆1
2
+ 𝑛2−1 𝑆2
2
𝑛1+𝑛2−2
It is important to note that Cohen’s 𝑑 does not provide a level of
confidence as to the magnitude of the size of the effect comparable
to the other tests of hypothesis. The sizes of the effects are simply
indicative.
Size of effect 𝒅
Small 0.2
Medium 0.5
Large 0.8
Example
𝑑 =
𝑥1 − 𝑥2
𝑆𝑝
where
𝑛1−1 𝑆1
2
+ 𝑛2−1 𝑆2
2
𝑛1+𝑛2−2
If 𝑥1 = 4, 𝑥2 = 3.5, 𝑆1 = 1.5, 𝑆2 = 1, 𝑛1=11, 𝑛2 = 9
Calculate Cohen’s 𝑑 and interpret the difference.
Solution:
Cohen’s 𝑑 = 0.384
The effect is small because 0.384 is between Cohen’s
value of 0.2 for small effect size and 0.5 for medium effect
size. The size of the differences of the means for the two
samples is small indicating that there is not a significant
difference between them.
Size of effect 𝒅
Small 0.2
Medium 0.5
Large 0.8

More Related Content

What's hot

Statistics Introduction In Pharmacy
Statistics Introduction In PharmacyStatistics Introduction In Pharmacy
Statistics Introduction In PharmacyPharmacy Universe
 
PPT on Sample Size, Importance of Sample Size,
PPT on Sample Size, Importance of Sample Size,PPT on Sample Size, Importance of Sample Size,
PPT on Sample Size, Importance of Sample Size,Naveen K L
 
Application of excel and spss programme in statistical
Application of excel and spss programme in statisticalApplication of excel and spss programme in statistical
Application of excel and spss programme in statisticalVeenaV29
 
Wilcoxon Rank-Sum Test
Wilcoxon Rank-Sum TestWilcoxon Rank-Sum Test
Wilcoxon Rank-Sum TestSahil Jain
 
General research methodology mpharm
General research methodology  mpharmGeneral research methodology  mpharm
General research methodology mpharmAlkaDiwakar
 
Biostatistics and research methodology
Biostatistics and research methodologyBiostatistics and research methodology
Biostatistics and research methodologysahini kondaviti
 
M. Pharm: Research Methodology and biostatics
M. Pharm: Research Methodology and biostatics M. Pharm: Research Methodology and biostatics
M. Pharm: Research Methodology and biostatics SONALI PAWAR
 
Anova and T-Test
Anova and T-TestAnova and T-Test
Anova and T-TestAD Sarwar
 
Introduction to Research - Biostatistics and Research methodology 8th Sem Uni...
Introduction to Research - Biostatistics and Research methodology 8th Sem Uni...Introduction to Research - Biostatistics and Research methodology 8th Sem Uni...
Introduction to Research - Biostatistics and Research methodology 8th Sem Uni...Himanshu Sharma
 
Mathematical model
Mathematical modelMathematical model
Mathematical modelpriya1215
 
Graphs in pharmaceutical biostatistics
Graphs in pharmaceutical biostatisticsGraphs in pharmaceutical biostatistics
Graphs in pharmaceutical biostatisticsVandanaGupta127
 
3.1 non parametric test
3.1 non parametric test3.1 non parametric test
3.1 non parametric testShital Patil
 

What's hot (20)

Non-Parametric Tests
Non-Parametric TestsNon-Parametric Tests
Non-Parametric Tests
 
Statistics Introduction In Pharmacy
Statistics Introduction In PharmacyStatistics Introduction In Pharmacy
Statistics Introduction In Pharmacy
 
PPT on Sample Size, Importance of Sample Size,
PPT on Sample Size, Importance of Sample Size,PPT on Sample Size, Importance of Sample Size,
PPT on Sample Size, Importance of Sample Size,
 
Application of excel and spss programme in statistical
Application of excel and spss programme in statisticalApplication of excel and spss programme in statistical
Application of excel and spss programme in statistical
 
Medical research
Medical researchMedical research
Medical research
 
Wilcoxon Rank-Sum Test
Wilcoxon Rank-Sum TestWilcoxon Rank-Sum Test
Wilcoxon Rank-Sum Test
 
Research methodoloy
Research methodoloyResearch methodoloy
Research methodoloy
 
All non parametric test
All non parametric testAll non parametric test
All non parametric test
 
Crossover study design
Crossover study designCrossover study design
Crossover study design
 
General research methodology mpharm
General research methodology  mpharmGeneral research methodology  mpharm
General research methodology mpharm
 
Biostatistics and research methodology
Biostatistics and research methodologyBiostatistics and research methodology
Biostatistics and research methodology
 
M. Pharm: Research Methodology and biostatics
M. Pharm: Research Methodology and biostatics M. Pharm: Research Methodology and biostatics
M. Pharm: Research Methodology and biostatics
 
Parametric tests
Parametric testsParametric tests
Parametric tests
 
Anova and T-Test
Anova and T-TestAnova and T-Test
Anova and T-Test
 
Introduction to Research - Biostatistics and Research methodology 8th Sem Uni...
Introduction to Research - Biostatistics and Research methodology 8th Sem Uni...Introduction to Research - Biostatistics and Research methodology 8th Sem Uni...
Introduction to Research - Biostatistics and Research methodology 8th Sem Uni...
 
Mathematical model
Mathematical modelMathematical model
Mathematical model
 
Testing of hypothesis
Testing of hypothesisTesting of hypothesis
Testing of hypothesis
 
factorial design
factorial designfactorial design
factorial design
 
Graphs in pharmaceutical biostatistics
Graphs in pharmaceutical biostatisticsGraphs in pharmaceutical biostatistics
Graphs in pharmaceutical biostatistics
 
3.1 non parametric test
3.1 non parametric test3.1 non parametric test
3.1 non parametric test
 

Similar to Basics of Hypothesis testing for Pharmacy

20200519073328de6dca404c.pdfkshhjejhehdhd
20200519073328de6dca404c.pdfkshhjejhehdhd20200519073328de6dca404c.pdfkshhjejhehdhd
20200519073328de6dca404c.pdfkshhjejhehdhdHimanshuSharma723273
 
Unit 4 Tests of Significance
Unit 4 Tests of SignificanceUnit 4 Tests of Significance
Unit 4 Tests of SignificanceRai University
 
Hypothesis testing1
Hypothesis testing1Hypothesis testing1
Hypothesis testing1HanaaBayomy
 
Testing of Hypothesis, p-value, Gaussian distribution, null hypothesis
Testing of Hypothesis, p-value, Gaussian distribution, null hypothesisTesting of Hypothesis, p-value, Gaussian distribution, null hypothesis
Testing of Hypothesis, p-value, Gaussian distribution, null hypothesissvmmcradonco1
 
Application of statistical tests in Biomedical Research .pptx
Application of statistical tests in Biomedical Research .pptxApplication of statistical tests in Biomedical Research .pptx
Application of statistical tests in Biomedical Research .pptxHalim AS
 
3. Concepts Relating to Testing of Hypothesis.pptx
3. Concepts Relating to Testing of Hypothesis.pptx3. Concepts Relating to Testing of Hypothesis.pptx
3. Concepts Relating to Testing of Hypothesis.pptxShriramKargaonkar
 
PPT Concepts Relating to Testing of Hypothesis.pptx
PPT Concepts Relating to Testing of Hypothesis.pptxPPT Concepts Relating to Testing of Hypothesis.pptx
PPT Concepts Relating to Testing of Hypothesis.pptxShriramKargaonkar
 
Testing of hypothesis - large sample test
Testing of hypothesis - large sample testTesting of hypothesis - large sample test
Testing of hypothesis - large sample testParag Shah
 
Day-2_Presentation for SPSS parametric workshop.pptx
Day-2_Presentation for SPSS parametric workshop.pptxDay-2_Presentation for SPSS parametric workshop.pptx
Day-2_Presentation for SPSS parametric workshop.pptxrjaisankar
 
Testing of Hypothesis combined with tests.pdf
Testing of Hypothesis combined with tests.pdfTesting of Hypothesis combined with tests.pdf
Testing of Hypothesis combined with tests.pdfRamBk5
 
hypothesis teesting
 hypothesis teesting hypothesis teesting
hypothesis teestingkpgandhi
 
Small sample test
Small sample testSmall sample test
Small sample testParag Shah
 
Test hypothesis & p-value
Test hypothesis & p-valueTest hypothesis & p-value
Test hypothesis & p-valueRaeesa Mukhtar
 
Data Science : Unit-I -Hypothesis and Inferences.pptx
Data Science : Unit-I -Hypothesis and Inferences.pptxData Science : Unit-I -Hypothesis and Inferences.pptx
Data Science : Unit-I -Hypothesis and Inferences.pptxsubhashchandra197
 
Stat 1163 -statistics in environmental science
Stat 1163 -statistics in environmental scienceStat 1163 -statistics in environmental science
Stat 1163 -statistics in environmental scienceKhulna University
 
hypothesis testing
hypothesis testinghypothesis testing
hypothesis testingilona50
 

Similar to Basics of Hypothesis testing for Pharmacy (20)

20200519073328de6dca404c.pdfkshhjejhehdhd
20200519073328de6dca404c.pdfkshhjejhehdhd20200519073328de6dca404c.pdfkshhjejhehdhd
20200519073328de6dca404c.pdfkshhjejhehdhd
 
Unit 4 Tests of Significance
Unit 4 Tests of SignificanceUnit 4 Tests of Significance
Unit 4 Tests of Significance
 
Hypothesis testing1
Hypothesis testing1Hypothesis testing1
Hypothesis testing1
 
Testing of Hypothesis, p-value, Gaussian distribution, null hypothesis
Testing of Hypothesis, p-value, Gaussian distribution, null hypothesisTesting of Hypothesis, p-value, Gaussian distribution, null hypothesis
Testing of Hypothesis, p-value, Gaussian distribution, null hypothesis
 
Tests of significance
Tests of significanceTests of significance
Tests of significance
 
Application of statistical tests in Biomedical Research .pptx
Application of statistical tests in Biomedical Research .pptxApplication of statistical tests in Biomedical Research .pptx
Application of statistical tests in Biomedical Research .pptx
 
3. Concepts Relating to Testing of Hypothesis.pptx
3. Concepts Relating to Testing of Hypothesis.pptx3. Concepts Relating to Testing of Hypothesis.pptx
3. Concepts Relating to Testing of Hypothesis.pptx
 
PPT Concepts Relating to Testing of Hypothesis.pptx
PPT Concepts Relating to Testing of Hypothesis.pptxPPT Concepts Relating to Testing of Hypothesis.pptx
PPT Concepts Relating to Testing of Hypothesis.pptx
 
Testing of hypothesis - large sample test
Testing of hypothesis - large sample testTesting of hypothesis - large sample test
Testing of hypothesis - large sample test
 
Day-2_Presentation for SPSS parametric workshop.pptx
Day-2_Presentation for SPSS parametric workshop.pptxDay-2_Presentation for SPSS parametric workshop.pptx
Day-2_Presentation for SPSS parametric workshop.pptx
 
Testing of Hypothesis combined with tests.pdf
Testing of Hypothesis combined with tests.pdfTesting of Hypothesis combined with tests.pdf
Testing of Hypothesis combined with tests.pdf
 
Ds 2251 -_hypothesis test
Ds 2251 -_hypothesis testDs 2251 -_hypothesis test
Ds 2251 -_hypothesis test
 
hypothesis teesting
 hypothesis teesting hypothesis teesting
hypothesis teesting
 
7 hypothesis testing
7 hypothesis testing7 hypothesis testing
7 hypothesis testing
 
Small sample test
Small sample testSmall sample test
Small sample test
 
Test hypothesis & p-value
Test hypothesis & p-valueTest hypothesis & p-value
Test hypothesis & p-value
 
Data Science : Unit-I -Hypothesis and Inferences.pptx
Data Science : Unit-I -Hypothesis and Inferences.pptxData Science : Unit-I -Hypothesis and Inferences.pptx
Data Science : Unit-I -Hypothesis and Inferences.pptx
 
Stat 1163 -statistics in environmental science
Stat 1163 -statistics in environmental scienceStat 1163 -statistics in environmental science
Stat 1163 -statistics in environmental science
 
Testing of hypothesis
Testing of hypothesisTesting of hypothesis
Testing of hypothesis
 
hypothesis testing
hypothesis testinghypothesis testing
hypothesis testing
 

More from Parag Shah

Basic Statistics in 1 hour.pptx
Basic Statistics in 1 hour.pptxBasic Statistics in 1 hour.pptx
Basic Statistics in 1 hour.pptxParag Shah
 
Non- Parametric Tests
Non- Parametric TestsNon- Parametric Tests
Non- Parametric TestsParag Shah
 
Correlation & Regression Analysis using SPSS
Correlation & Regression Analysis  using SPSSCorrelation & Regression Analysis  using SPSS
Correlation & Regression Analysis using SPSSParag Shah
 
Proportion test using Chi square
Proportion test using Chi squareProportion test using Chi square
Proportion test using Chi squareParag Shah
 
Chi square tests using spss
Chi square tests using spssChi square tests using spss
Chi square tests using spssParag Shah
 
Chi square tests using SPSS
Chi square tests using SPSSChi square tests using SPSS
Chi square tests using SPSSParag Shah
 
t test using spss
t test using spsst test using spss
t test using spssParag Shah
 
Exploratory Data Analysis for Biotechnology and Pharmaceutical Sciences
Exploratory Data Analysis for Biotechnology and Pharmaceutical SciencesExploratory Data Analysis for Biotechnology and Pharmaceutical Sciences
Exploratory Data Analysis for Biotechnology and Pharmaceutical SciencesParag Shah
 
Basic stat analysis using excel
Basic stat analysis using excelBasic stat analysis using excel
Basic stat analysis using excelParag Shah
 
Statistical inference: Estimation
Statistical inference: EstimationStatistical inference: Estimation
Statistical inference: EstimationParag Shah
 
F test and ANOVA
F test and ANOVAF test and ANOVA
F test and ANOVAParag Shah
 
Testing of hypothesis - Chi-Square test
Testing of hypothesis - Chi-Square testTesting of hypothesis - Chi-Square test
Testing of hypothesis - Chi-Square testParag Shah
 
Statistics for Physical Education
Statistics for Physical EducationStatistics for Physical Education
Statistics for Physical EducationParag Shah
 
Career option for stats
Career option for statsCareer option for stats
Career option for statsParag Shah
 

More from Parag Shah (15)

Basic Statistics in 1 hour.pptx
Basic Statistics in 1 hour.pptxBasic Statistics in 1 hour.pptx
Basic Statistics in 1 hour.pptx
 
Non- Parametric Tests
Non- Parametric TestsNon- Parametric Tests
Non- Parametric Tests
 
Correlation & Regression Analysis using SPSS
Correlation & Regression Analysis  using SPSSCorrelation & Regression Analysis  using SPSS
Correlation & Regression Analysis using SPSS
 
Proportion test using Chi square
Proportion test using Chi squareProportion test using Chi square
Proportion test using Chi square
 
Chi square tests using spss
Chi square tests using spssChi square tests using spss
Chi square tests using spss
 
Chi square tests using SPSS
Chi square tests using SPSSChi square tests using SPSS
Chi square tests using SPSS
 
t test using spss
t test using spsst test using spss
t test using spss
 
Exploratory Data Analysis for Biotechnology and Pharmaceutical Sciences
Exploratory Data Analysis for Biotechnology and Pharmaceutical SciencesExploratory Data Analysis for Biotechnology and Pharmaceutical Sciences
Exploratory Data Analysis for Biotechnology and Pharmaceutical Sciences
 
Probability
Probability    Probability
Probability
 
Basic stat analysis using excel
Basic stat analysis using excelBasic stat analysis using excel
Basic stat analysis using excel
 
Statistical inference: Estimation
Statistical inference: EstimationStatistical inference: Estimation
Statistical inference: Estimation
 
F test and ANOVA
F test and ANOVAF test and ANOVA
F test and ANOVA
 
Testing of hypothesis - Chi-Square test
Testing of hypothesis - Chi-Square testTesting of hypothesis - Chi-Square test
Testing of hypothesis - Chi-Square test
 
Statistics for Physical Education
Statistics for Physical EducationStatistics for Physical Education
Statistics for Physical Education
 
Career option for stats
Career option for statsCareer option for stats
Career option for stats
 

Recently uploaded

RESEARCH-FINAL-DEFENSE-PPT-TEMPLATE.pptx
RESEARCH-FINAL-DEFENSE-PPT-TEMPLATE.pptxRESEARCH-FINAL-DEFENSE-PPT-TEMPLATE.pptx
RESEARCH-FINAL-DEFENSE-PPT-TEMPLATE.pptxronsairoathenadugay
 
SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...
SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...
SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...Elaine Werffeli
 
DATA SUMMIT 24 Building Real-Time Pipelines With FLaNK
DATA SUMMIT 24  Building Real-Time Pipelines With FLaNKDATA SUMMIT 24  Building Real-Time Pipelines With FLaNK
DATA SUMMIT 24 Building Real-Time Pipelines With FLaNKTimothy Spann
 
原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证
原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证
原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证pwgnohujw
 
如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证acoha1
 
Huawei Ransomware Protection Storage Solution Technical Overview Presentation...
Huawei Ransomware Protection Storage Solution Technical Overview Presentation...Huawei Ransomware Protection Storage Solution Technical Overview Presentation...
Huawei Ransomware Protection Storage Solution Technical Overview Presentation...LuisMiguelPaz5
 
Seven tools of quality control.slideshare
Seven tools of quality control.slideshareSeven tools of quality control.slideshare
Seven tools of quality control.slideshareraiaryan448
 
一比一原版(曼大毕业证书)曼尼托巴大学毕业证成绩单留信学历认证一手价格
一比一原版(曼大毕业证书)曼尼托巴大学毕业证成绩单留信学历认证一手价格一比一原版(曼大毕业证书)曼尼托巴大学毕业证成绩单留信学历认证一手价格
一比一原版(曼大毕业证书)曼尼托巴大学毕业证成绩单留信学历认证一手价格q6pzkpark
 
Ranking and Scoring Exercises for Research
Ranking and Scoring Exercises for ResearchRanking and Scoring Exercises for Research
Ranking and Scoring Exercises for ResearchRajesh Mondal
 
Credit Card Fraud Detection: Safeguarding Transactions in the Digital Age
Credit Card Fraud Detection: Safeguarding Transactions in the Digital AgeCredit Card Fraud Detection: Safeguarding Transactions in the Digital Age
Credit Card Fraud Detection: Safeguarding Transactions in the Digital AgeBoston Institute of Analytics
 
jll-asia-pacific-capital-tracker-1q24.pdf
jll-asia-pacific-capital-tracker-1q24.pdfjll-asia-pacific-capital-tracker-1q24.pdf
jll-asia-pacific-capital-tracker-1q24.pdfjaytendertech
 
如何办理(Dalhousie毕业证书)达尔豪斯大学毕业证成绩单留信学历认证
如何办理(Dalhousie毕业证书)达尔豪斯大学毕业证成绩单留信学历认证如何办理(Dalhousie毕业证书)达尔豪斯大学毕业证成绩单留信学历认证
如何办理(Dalhousie毕业证书)达尔豪斯大学毕业证成绩单留信学历认证zifhagzkk
 
Abortion Clinic in Kempton Park +27791653574 WhatsApp Abortion Clinic Service...
Abortion Clinic in Kempton Park +27791653574 WhatsApp Abortion Clinic Service...Abortion Clinic in Kempton Park +27791653574 WhatsApp Abortion Clinic Service...
Abortion Clinic in Kempton Park +27791653574 WhatsApp Abortion Clinic Service...mikehavy0
 
Displacement, Velocity, Acceleration, and Second Derivatives
Displacement, Velocity, Acceleration, and Second DerivativesDisplacement, Velocity, Acceleration, and Second Derivatives
Displacement, Velocity, Acceleration, and Second Derivatives23050636
 
Identify Rules that Predict Patient’s Heart Disease - An Application of Decis...
Identify Rules that Predict Patient’s Heart Disease - An Application of Decis...Identify Rules that Predict Patient’s Heart Disease - An Application of Decis...
Identify Rules that Predict Patient’s Heart Disease - An Application of Decis...ThinkInnovation
 
如何办理澳洲拉筹伯大学毕业证(LaTrobe毕业证书)成绩单原件一模一样
如何办理澳洲拉筹伯大学毕业证(LaTrobe毕业证书)成绩单原件一模一样如何办理澳洲拉筹伯大学毕业证(LaTrobe毕业证书)成绩单原件一模一样
如何办理澳洲拉筹伯大学毕业证(LaTrobe毕业证书)成绩单原件一模一样wsppdmt
 
SCI8-Q4-MOD11.pdfwrwujrrjfaajerjrajrrarj
SCI8-Q4-MOD11.pdfwrwujrrjfaajerjrajrrarjSCI8-Q4-MOD11.pdfwrwujrrjfaajerjrajrrarj
SCI8-Q4-MOD11.pdfwrwujrrjfaajerjrajrrarjadimosmejiaslendon
 
obat aborsi Tarakan wa 081336238223 jual obat aborsi cytotec asli di Tarakan9...
obat aborsi Tarakan wa 081336238223 jual obat aborsi cytotec asli di Tarakan9...obat aborsi Tarakan wa 081336238223 jual obat aborsi cytotec asli di Tarakan9...
obat aborsi Tarakan wa 081336238223 jual obat aborsi cytotec asli di Tarakan9...yulianti213969
 

Recently uploaded (20)

Abortion pills in Riyadh Saudi Arabia (+966572737505 buy cytotec
Abortion pills in Riyadh Saudi Arabia (+966572737505 buy cytotecAbortion pills in Riyadh Saudi Arabia (+966572737505 buy cytotec
Abortion pills in Riyadh Saudi Arabia (+966572737505 buy cytotec
 
RESEARCH-FINAL-DEFENSE-PPT-TEMPLATE.pptx
RESEARCH-FINAL-DEFENSE-PPT-TEMPLATE.pptxRESEARCH-FINAL-DEFENSE-PPT-TEMPLATE.pptx
RESEARCH-FINAL-DEFENSE-PPT-TEMPLATE.pptx
 
SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...
SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...
SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...
 
DATA SUMMIT 24 Building Real-Time Pipelines With FLaNK
DATA SUMMIT 24  Building Real-Time Pipelines With FLaNKDATA SUMMIT 24  Building Real-Time Pipelines With FLaNK
DATA SUMMIT 24 Building Real-Time Pipelines With FLaNK
 
原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证
原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证
原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证
 
Abortion pills in Riyadh Saudi Arabia| +966572737505 | Get Cytotec, Unwanted Kit
Abortion pills in Riyadh Saudi Arabia| +966572737505 | Get Cytotec, Unwanted KitAbortion pills in Riyadh Saudi Arabia| +966572737505 | Get Cytotec, Unwanted Kit
Abortion pills in Riyadh Saudi Arabia| +966572737505 | Get Cytotec, Unwanted Kit
 
如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证
 
Huawei Ransomware Protection Storage Solution Technical Overview Presentation...
Huawei Ransomware Protection Storage Solution Technical Overview Presentation...Huawei Ransomware Protection Storage Solution Technical Overview Presentation...
Huawei Ransomware Protection Storage Solution Technical Overview Presentation...
 
Seven tools of quality control.slideshare
Seven tools of quality control.slideshareSeven tools of quality control.slideshare
Seven tools of quality control.slideshare
 
一比一原版(曼大毕业证书)曼尼托巴大学毕业证成绩单留信学历认证一手价格
一比一原版(曼大毕业证书)曼尼托巴大学毕业证成绩单留信学历认证一手价格一比一原版(曼大毕业证书)曼尼托巴大学毕业证成绩单留信学历认证一手价格
一比一原版(曼大毕业证书)曼尼托巴大学毕业证成绩单留信学历认证一手价格
 
Ranking and Scoring Exercises for Research
Ranking and Scoring Exercises for ResearchRanking and Scoring Exercises for Research
Ranking and Scoring Exercises for Research
 
Credit Card Fraud Detection: Safeguarding Transactions in the Digital Age
Credit Card Fraud Detection: Safeguarding Transactions in the Digital AgeCredit Card Fraud Detection: Safeguarding Transactions in the Digital Age
Credit Card Fraud Detection: Safeguarding Transactions in the Digital Age
 
jll-asia-pacific-capital-tracker-1q24.pdf
jll-asia-pacific-capital-tracker-1q24.pdfjll-asia-pacific-capital-tracker-1q24.pdf
jll-asia-pacific-capital-tracker-1q24.pdf
 
如何办理(Dalhousie毕业证书)达尔豪斯大学毕业证成绩单留信学历认证
如何办理(Dalhousie毕业证书)达尔豪斯大学毕业证成绩单留信学历认证如何办理(Dalhousie毕业证书)达尔豪斯大学毕业证成绩单留信学历认证
如何办理(Dalhousie毕业证书)达尔豪斯大学毕业证成绩单留信学历认证
 
Abortion Clinic in Kempton Park +27791653574 WhatsApp Abortion Clinic Service...
Abortion Clinic in Kempton Park +27791653574 WhatsApp Abortion Clinic Service...Abortion Clinic in Kempton Park +27791653574 WhatsApp Abortion Clinic Service...
Abortion Clinic in Kempton Park +27791653574 WhatsApp Abortion Clinic Service...
 
Displacement, Velocity, Acceleration, and Second Derivatives
Displacement, Velocity, Acceleration, and Second DerivativesDisplacement, Velocity, Acceleration, and Second Derivatives
Displacement, Velocity, Acceleration, and Second Derivatives
 
Identify Rules that Predict Patient’s Heart Disease - An Application of Decis...
Identify Rules that Predict Patient’s Heart Disease - An Application of Decis...Identify Rules that Predict Patient’s Heart Disease - An Application of Decis...
Identify Rules that Predict Patient’s Heart Disease - An Application of Decis...
 
如何办理澳洲拉筹伯大学毕业证(LaTrobe毕业证书)成绩单原件一模一样
如何办理澳洲拉筹伯大学毕业证(LaTrobe毕业证书)成绩单原件一模一样如何办理澳洲拉筹伯大学毕业证(LaTrobe毕业证书)成绩单原件一模一样
如何办理澳洲拉筹伯大学毕业证(LaTrobe毕业证书)成绩单原件一模一样
 
SCI8-Q4-MOD11.pdfwrwujrrjfaajerjrajrrarj
SCI8-Q4-MOD11.pdfwrwujrrjfaajerjrajrrarjSCI8-Q4-MOD11.pdfwrwujrrjfaajerjrajrrarj
SCI8-Q4-MOD11.pdfwrwujrrjfaajerjrajrrarj
 
obat aborsi Tarakan wa 081336238223 jual obat aborsi cytotec asli di Tarakan9...
obat aborsi Tarakan wa 081336238223 jual obat aborsi cytotec asli di Tarakan9...obat aborsi Tarakan wa 081336238223 jual obat aborsi cytotec asli di Tarakan9...
obat aborsi Tarakan wa 081336238223 jual obat aborsi cytotec asli di Tarakan9...
 

Basics of Hypothesis testing for Pharmacy

  • 1. Basics of HYPOTHESIS TESTING for PHARMACY Dr Parag Shah | M.Sc., M.Phil., Ph.D. ( Statistics) pbshah@hlcollege.edu www.paragstatistics.wordpress.com
  • 4. Descriptive & Inferential Statistics Descriptive Statistics uses the data to provide descriptions of the population / sample, either through numerical calculations or graphs or tables. Inferential Statistics makes inferences and predictions about a population based on a sample of data taken from the population.
  • 5. Inferential Statistics The methods of inferential statistics are • the estimation of parameter(s) • testing of Statistical hypothesis
  • 6. Parameter and Statistics A measure calculated from population data is called Parameter. A measure calculated from sample data is called Statistic. Parameter Statistic Mean μ x̄ Standard deviation σ s Proportion P p Correlation coefficient ρ r
  • 7. Estimation Estimation is a process whereby we select a random sample from a population and use a sample statistic to estimate a population parameter. There are two ways for estimation: • Point Estimation • Interval Estimation
  • 8. Point Estimate Point Estimate – A sample statistic used to estimate the exact value of a population parameter. • A point estimate is a single value and has the advantage of being very precise but there is no information about its reliability. • The probability that a single sample statistic actually equal to the parameter value is extremely small. For this reason point estimation is rarely used.
  • 9. Interval Estimate Confidence interval (Interval Estimate) A range of values defined by the confidence level within which the population parameter is estimated to fall. • The interval estimate is less precise, but gives more confidence.
  • 11. Statistical Hypothesis A Statistical hypothesis is an assumption or any logical statement about the parameter of the population. E.g. • Patients suffering from Chikungunya takes on an average more time to fully recover than patients suffering from Dengue • The average annual income of Indian farmer in 2018 is 78000 Rs. • Proportion of diabetic patients in Gujarat is not more than 15 %
  • 12. Null hypothesis A Null hypothesis is a general statement about population parameter or about relation between two population parameters. It is denoted by H0. • In Null hypothesis if the parameter assumes specific value then it is called Simple hypothesis. E.g. 𝜇 = 280, P=0.10 • In Null hypothesis if the parameter assumes set of values then it is called Composite hypothesis. E.g. 𝜇 ≥ 280, P ≤ 0.10
  • 13. Alternative Hypothesis A statistical hypothesis which is complementary to the Null hypothesis is called Alternative hypothesis. It is denoted by H1.
  • 14. Testing of Hypothesis The procedure to decide whether to accept or reject the null hypothesis is called Testing of hypothesis.
  • 15. Type I and Type II Error The error of rejecting the true null hypothesis is called Type I error. Similar to False Positive. The probability of type I error is denoted by 𝛼. 𝛼 = Prob [ Reject H0 / H0 is true] The error of accepting the false null hypothesis is called Type II error. Similar to False Negative. The probability of type II error is denoted by 𝛽. 𝛽 = Prob [ Accept H0 / H0 is false]
  • 16. Type I and Type II Error DECISION Null Hypothesis TRUE FALSE REJECT Type I Error False Positive Probability = α No Error True Positive Probability =1- β NOT REJECTED No Error True Negative Probability = 1- α Type II Error False negative Probability = β
  • 17. Level of Significance The predetermined value of probability of type I error is called level of significance. It is denoted by 𝛼. The most commonly used level of significance are 1% or 5%. Interpretation: 5% level of significance means in 5 out of 100 cases, it is likely to reject a true null hypothesis.
  • 18. Critical Region The area of the probability curve corresponding to 𝛼 is called critical region. i.e. the area under normal curve at which a true null hypothesis is rejected is called area of rejection or critical region.
  • 19. Power of Test The probability of rejecting the false null hypothesis is called the Power of the test. It is denoted by 1- 𝛽. i.e. 1- 𝛽 = Prob [ Reject H0 / H0 is false]
  • 20. P value • P-value ≡ the probability the test statistic would take a value as extreme or more extreme than observed test statistic, when H0 is true. • Smaller-and-smaller P-values → stronger-and-stronger evidence against H0 • For typical analysis, using the standard α = 0.05 cutoff, the null hypothesis is - rejected when p < = .05 and - not rejected when p > .05.
  • 21. Steps of Testing of Hypothesis Step 1: Setting up Null hypothesis Step 2: Setting up Alternative hypothesis Step3: Check assumptions of the test Step 4: Determining the p value Step 5: Conclusion • If p ≤ Level of significance (∝), We Reject Null hypothesis • If p > Level of significance (∝), We fail to Reject Null hypothesis
  • 22. Some of the tests • Testing single mean • Testing significant difference between two means • Testing single proportion • Testing significant difference between two proportions • Testing single standard deviation • Testing two standard deviations • Testing means for more than two samples • Testing standard deviations for more than two samples • Testing proportion for more than two samples • Testing for non-normal populations • Testing correlation and regression coefficients
  • 24. t test for single mean Step 1: Null hypothesis H0: 𝜇 = 𝜇0 Step 2: Alternative hypothesis H1: 𝜇 ≠ 𝜇0 or 𝜇 > 𝜇0 or 𝜇 < 𝜇0 Step 3: Check Assumptions Step 4: Test statistic – t and p value Step 5: Conclusion • If p ≤ Level of significance (∝), We Reject Null hypothesis • If p > Level of significance (∝), We fail to Reject Null hypothesis Assumptions Tests The population from which the sample drawn is assumed as Normal distribution Shapiro-Wilks / qq plot The population variance 𝜎2 is unknown ____
  • 25. t test for means of two independent samples Step 1: Null hypothesis H0: 𝜇1= 𝜇2 Step 2: Alternative hypothesis H1: 𝜇1 ≠ 𝜇2 or 𝜇1 > 𝜇2 or 𝜇1 < 𝜇2 Step 3: Check Assumptions Step 4: Test statistic – t and p value Step 5: Conclusion • If p ≤ Level of significance (∝), We Reject Null hypothesis • If p > Level of significance (∝), We fail to Reject Null hypothesis Assumptions Tests The population from which two samples drawn are assumed as Normal distribution Shapiro-Wilks / qq plot Two population variance are unknown (Equal / Unequal) F test The two samples are independently distributed ____
  • 26. t test for Equal Variances t test for Unequal Variances (Welch t test) d.f. = where
  • 27. t test for means of two dependent samples (Paired t test) Step 1: Null hypothesis H0: 𝑑 = 0 Step 2: Alternative hypothesis H1: 𝑑 ≠ 0 Step 3: Check Assumptions Step 4: Test statistic – t and p value Step 5: Conclusion • If p ≤ Level of significance (∝), We Reject Null hypothesis • If p > Level of significance (∝), We fail to Reject Null hypothesis Assumptions Tests The difference between the two samples are normally distributed. Two-sample Kolmogorov- Smirnov test / qq plot The difference between the two samples are independently distributed ____ The two samples are independently distributed ____
  • 28. Effect Size Effect size is a statistical concept that measures the strength of the relationship between two variables on a numeric scale. Statistic effect size helps us in determining if the difference is real or if it is due to a change of factors.
  • 29. Effect Size In Meta-analysis, effect size is concerned with different studies and then combines all the studies into single analysis. In statistics analysis, the effect size is usually measured in three ways: • standardized mean difference • odd ratio • correlation coefficient.
  • 30. Effect Size Cohen’s 𝑑 is the measure of the difference between two means divided by the pooled standard deviation. 𝑑 = 𝑥1−𝑥2 𝑆𝑝 where 𝑛1−1 𝑆1 2 + 𝑛2−1 𝑆2 2 𝑛1+𝑛2−2 It is important to note that Cohen’s 𝑑 does not provide a level of confidence as to the magnitude of the size of the effect comparable to the other tests of hypothesis. The sizes of the effects are simply indicative. Size of effect 𝒅 Small 0.2 Medium 0.5 Large 0.8
  • 31. Example 𝑑 = 𝑥1 − 𝑥2 𝑆𝑝 where 𝑛1−1 𝑆1 2 + 𝑛2−1 𝑆2 2 𝑛1+𝑛2−2 If 𝑥1 = 4, 𝑥2 = 3.5, 𝑆1 = 1.5, 𝑆2 = 1, 𝑛1=11, 𝑛2 = 9 Calculate Cohen’s 𝑑 and interpret the difference. Solution: Cohen’s 𝑑 = 0.384 The effect is small because 0.384 is between Cohen’s value of 0.2 for small effect size and 0.5 for medium effect size. The size of the differences of the means for the two samples is small indicating that there is not a significant difference between them. Size of effect 𝒅 Small 0.2 Medium 0.5 Large 0.8