SlideShare a Scribd company logo
1 of 25
© 2016© 2016
A Practical Approach to Analyzing
Healthcare Data
Chapter 5 – Analyzing
Continuous Variables
© 2016
Continuous Variables
• Data elements that represent naturally
numeric values that can take infinite values
– Interval (no true zero)
– Ratio
• Healthcare Examples
– Length of stay
– Charge
– Systolic blood pressure
– Age
– Time to code records
© 2016
Descriptive Statistics
Measures of Central Tendency
• Mean
– Arithmetic average
– Sum of values divided by the number of
values
• Median
– Middle value
– If even number of values, average of two
middle values
– Less influenced by extreme values or
outliers than the mean
• Mode
– Most frequent value
© 2016
Descriptive Statistics
Measures of Variation
• Range
– Maximum value minus minimum value
• Interquartile range
– Difference between the third and first quartile
• Variance
– Average squared deviation from the mean
– Unit of measure is “squared units”
• Standard deviation
– Square root of the variance
– Unit of measure is same as unit of measure
in sample
© 2016
Descriptive Statistics
Example
• Calculate the mean, median and mode of
the following sample length of stay data:
– 2, 4, 6, 3, 1, 2, 5
• Mean: 𝑥 =
2+4+6+3+1+2+5
7
=
23
7
= 3.3
• Median
– Sort values: 1, 2, 2, 3, 4, 5, 6
– Median or middle value = 3
• Mode
– 2, since it is the most frequent value
– Note: The mode is rarely used for continuous
variables that have many unique values and
is presented here for demonstration
purposes.
© 2016
Descriptive Statistics
Example
• Calculate the range, variance and
standard deviation of the following
sample length of stay data:
– 2, 4, 6, 3, 1, 2, 5
• Range = 6 – 1 = 5
• Sample variance
𝑠2
=
(2 − 3.3)2
+ (4 − 3.3)2
+ (6 − 3.3)2
+ (3 − 3.3)2
+ (1 −3.3)2
+(2 − 3.3)2
+ (5 −3.3)2
7 − 1
𝑠2 =
(−1.3)2+(0.7)2+(2.7)2+(−0.3)2+(−2.3)2+(−1.3)2+(1.7)2
6
= 3.2
• Standard deviation
– s = 3.2 = 1.8
© 2016
Review: Hypothesis Testing Steps
1. Determine the null and alternative hypotheses
2. Set the acceptable type I error or alpha level
3. Select the appropriate test statistic
4. Compare the test statistic to a critical value
based on the alpha level and the distribution of
the test statistic
5. Reject the null hypothesis if the test statistic is
more extreme than the critical value. If not, do
not reject the null hypothesis.
© 2016
Inferential Statistics
One Sample t-test
• One-sample t-test
– Used to test if a population value is different from a
standard or benchmark
– Test statistic:
– Compare to a t-distribution to determine critical value
– May be one sided or two sided
– Anatomy of test statistic:
• Numerator: distance from sample mean to null hypothesis
value
• Denominator: standard error of the sample mean (SEM)
© 2016
Inferential Statistics
One Sample t-test - Example
Suppose the researcher that collected the length of stay
(LOS) data in the previous examples would like to
determine if the population LOS is longer than a
standard of 3 days.
• Step 1: Determine the null and alternative hypotheses
– Ho: µ ≤ 3
– Ha: µ > 3
• Step 2: Set the acceptable type 1 error rate (AKA
alpha level).
– Set α = 0.05
• Step 3: Select the appropriate test statistic: t-test
© 2016
Inferential Statistics
One Sample t-test -Example
• Step 3 (con’t)
– Recall from previous slides:
• 𝑥 = 3.3
• s = 1.8
• n = 7
• 𝑡 =
3.3−3
1.8
7
=
0.3
0.68
=0.44
• Step 4: Compare test statistic to critical value.
– T-test statistic critical value comes from the t-
distribution with n-1 degrees of freedom
– T-distribution is symmetric around zero much like
standard normal (bell curve); width is defined by the
degrees of freedom. (see Figure 5.1 in text)
© 2016
Inferential Statistics
One Sample t-test - Example
• Step 4 (con’t): t= 0.44; df = n – 1 = 7 -1 = 6, one
sided test at α=0.05, critical value = 1.943
• Step 5: Reject the null hypothesis if the test statistic
is more extreme than the critical value. 0.44 is not
greater than 1.943, do not reject the null hypothesis
and conclude that the LOS is not longer than the
standard
© 2016
Inferential Statistics
Confidence Interval for Population Mean
• Recall that a confidence interval is a range of values
that is likely to cover the true population value with a
pre-defined probability or level of confidence
• A (1-α)% confidence interval for the population mean
is centered at the sample mean and has a width that
is dependent on the confidence level and standard
error of the mean
– Higher level of confidence requires a wider interval
– Large sample size results in a narrower interval
– Width of confidence interval is a measure of the
precision of the estimate of the sample mean
• A narrower interval is more precise
© 2016
Inferential Statistics
Confidence Interval for Population Mean
Formulate a 95% confidence interval for the LOS data
presented in the previous example:
• 𝑥 = 3.3
• s = 1.8
• n = 7
• 95% CI, so α = 0.05; α/2 = 0.025
• df = 6
• Critical value (table 5.1) = 2.447
• 95% CI: 3.3 ± 2.447 ×
1.8
7
3.3 ±1.7
(1.6,5.0)
• We are 95% sure that the range 1.6 to 5.0 days
includes the true population LOS is between
© 2016
Inferential Statistics
Paired t-test
• Paired t-test
– Used to compare pre/post test population values or matched
pairs
– Test statistic:
• Where d = difference between the pre/post values or the pairs
– Compare to a t-distribution to determine critical value
– May be one sided or two sided
– Anatomy of test statistic:
• Numerator: distance from sample mean difference to null hypothesis
value (usually zero)
• Denominator: standard error of the sample mean difference (SEM)
© 2016
Inferential Statistics
Paired t-test – ExampleThe transition from ICD-9 to ICD-10
is predicted to cause an increase in
the amount of time required to code
medical records. A pilot study was
conducted using a random sample
of 10 records to determine if the
time required was significantly
different. Each record was coded
using the two coding systems by on
coder. The values are recorded in
the table.
• Step 1: Determine the null and
alternative hypotheses:
– Ho: D = 0
– Ha: D ≠ 0
• Step 2: Set the alpha level: 0.01
ID ICD-
9
Tim
e
ICD-10
Time
d
1 10 15 5
2 11 12 1
3 15 10 -5
4 30 36 6
5 5 7 2
6 10 13 3
7 8 5 -3
8 11 19 8
9 21 19 -2
10 18 23 5
© 2016
Inferential Statistics
Paired t-test – Example
• Step 3: Select the
appropriate test
statistic:
• Step 4: Compare the
test statistic to the
critical value
– 𝑑 = 2.00; 𝑠 𝑑 = 4.24
– 𝑡 =
2.00 −0
4.24
10
=1.49
– Compare to t distn
with df = 9, α/2 =
0.005
– 1.49 not > 3.25
• Step 5: Do not reject
Ho
ID ICD-
9
Tim
e
ICD-10
Time
d
1 10 15 5
2 11 12 1
3 15 10 -5
4 30 36 6
5 5 7 2
6 10 13 3
7 8 5 -3
8 11 19 8
9 21 19 -2
10 18 23 5
© 2016
Inferential Statistics
Two Sample t-test
• Used to test if a two population means are different
• Test statistic complex
– Denominator is standard error pooled across the two
samples
– use statistical software to calculate
• Compare to a t-distribution to determine critical value
• May be one sided or two sided
• Anatomy of test statistic:
– Numerator: distance between the two sample means
– Denominator: pooled standard error of the difference
between the two sample means
© 2016
Inferential Statistics
Two Sample t-test - Example
An analyst wanted to determine if the length of stay was different for
Hip Replacement (MS-DRG 470) patients that were sent home
versus those that were discharged to another setting. A random
sample was selected and the results are presented in the table
below.
• Step 1: State hypotheses:
– Ho: µ1= µ2
– Ho: µ1≠ µ2
• Step 2: Set the alpha level = 0.01
• Step 3: Determine the test statistic
– T-test
– Use Excel Data Analysis ToolPak to calculate
– Run Two sample test for variances to determine if equal variances can be
assumed
Home? Sample Size Ave LOS Std. Dev. LOS
No 94 3.38 0.86
Yes 47 4.87 1.50
© 2016
Inferential Statistics
Two Sample t-test - Example
• Since F = 0.33 < F Critical = 0.56, reject the null
hypothesis that variances are equal
• Must run two-sample t-test without assuming equal
variances
• Note: The excel version of this test is the reciprocal of the
Levene’s test found elsewhere. Must look for test
statistics (F) less than critical value in this version.
© 2016
Inferential Statistics
Two Sample t-test - Example
• Step 4: Compared test statistic to critical value
– Note: Excel will only give the positive value of the critical value. Recall
that the t-distribution is symmetric, so reject is t stat is < -2.66 OR >
+2.66
– T stat = -6.32 < -2.66
• Step 5: Reject null hypothesis if test statistic is more extreme
than critical value
– Reject the null hypothesis and conclude that patients that are discharged
to home have longer stays than those discharged to another setting
© 2016
Inferential Statistics
ANOVA
• Used to test if a more than two population
means are different
• Test statistic: F-test
– Best to use software to compute
• Compare to an F-distribution to determine
critical value
• Anatomy of test statistic:
– Numerator: variance between comparison
groups
– Denominator: variance within comparison groups
© 2016
Inferential Statistics
ANOVA
Sum of
Squares
Degrees
of
Freedom
Mean
Squares
Test
statistic
: F
© 2016
Inferential Statistics
ANOVA - Example
An analyst is studying variation in charges
among AMI patients that are discharged alive
with MCC (MS-DRG 280), CC (MS-DRG
281) and no CC (MS-DRG 282). A sample of
25 patients is selected from each MS-DRG.
The sample statistics are presented in the
table below:
© 2016
Inferential Statistics
ANOVA - Example
• Step 1: State the hypotheses
– Ho: µ280= µ281= µ282
– At least two of the population means are unequal
• Step 2: Set the acceptable error level: α=0.05
• Step 3: Determine the appropriate test statistic
– F-test
– Calculate using software
• Step 4: Compare test statistic to critical value
– F = 2.784 < 3.124
• Step 5: Conclude to not reject Ho since F < critical value
© 2016
Inferential Statistics
ANOVA - Example
• Distribution of
charges for the 3
MS-DRGs
overlap
• ANOVA will not
find a statistical
difference
• ANOVA test is
determining is
there is
less/more
variation
between the
groups than
within the groups

More Related Content

What's hot

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
 
Basics of Hypothesis testing for Pharmacy
Basics of Hypothesis testing for PharmacyBasics of Hypothesis testing for Pharmacy
Basics of Hypothesis testing for PharmacyParag Shah
 
Statistical tests /certified fixed orthodontic courses by Indian dental academy
Statistical tests /certified fixed orthodontic courses by Indian dental academy Statistical tests /certified fixed orthodontic courses by Indian dental academy
Statistical tests /certified fixed orthodontic courses by Indian dental academy Indian dental academy
 
Community Medicine Presentation
Community Medicine PresentationCommunity Medicine Presentation
Community Medicine PresentationDr Ritesh Malik
 
Quantitative analysis using SPSS
Quantitative analysis using SPSSQuantitative analysis using SPSS
Quantitative analysis using SPSSAlaa Sadik
 
Statistical evaluation of Analytical data
Statistical evaluation of Analytical data  Statistical evaluation of Analytical data
Statistical evaluation of Analytical data JAMESJENNY2040506
 
Parametric and non parametric test in biostatistics
Parametric and non parametric test in biostatistics Parametric and non parametric test in biostatistics
Parametric and non parametric test in biostatistics Mero Eye
 
non parametric statistics
non parametric statisticsnon parametric statistics
non parametric statisticsAnchal Garg
 
Parametric tests
Parametric testsParametric tests
Parametric testsheena45
 
Basic Concepts of Non-Parametric Methods ( Statistics )
Basic Concepts of Non-Parametric Methods ( Statistics )Basic Concepts of Non-Parametric Methods ( Statistics )
Basic Concepts of Non-Parametric Methods ( Statistics )Hasnat Israq
 
Analysis and interpretation of data
Analysis and interpretation of dataAnalysis and interpretation of data
Analysis and interpretation of datateppxcrown98
 

What's hot (18)

chapter 2 stat.pptx
chapter 2 stat.pptxchapter 2 stat.pptx
chapter 2 stat.pptx
 
Statistical analysis by iswar
Statistical analysis by iswarStatistical analysis by iswar
Statistical analysis by iswar
 
Quantitative Data analysis
Quantitative Data analysisQuantitative Data analysis
Quantitative Data analysis
 
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
 
Basics of Hypothesis testing for Pharmacy
Basics of Hypothesis testing for PharmacyBasics of Hypothesis testing for Pharmacy
Basics of Hypothesis testing for Pharmacy
 
Statistical tests /certified fixed orthodontic courses by Indian dental academy
Statistical tests /certified fixed orthodontic courses by Indian dental academy Statistical tests /certified fixed orthodontic courses by Indian dental academy
Statistical tests /certified fixed orthodontic courses by Indian dental academy
 
Community Medicine Presentation
Community Medicine PresentationCommunity Medicine Presentation
Community Medicine Presentation
 
Quantitative analysis using SPSS
Quantitative analysis using SPSSQuantitative analysis using SPSS
Quantitative analysis using SPSS
 
Statistical evaluation of Analytical data
Statistical evaluation of Analytical data  Statistical evaluation of Analytical data
Statistical evaluation of Analytical data
 
Parametric and non parametric test in biostatistics
Parametric and non parametric test in biostatistics Parametric and non parametric test in biostatistics
Parametric and non parametric test in biostatistics
 
Student t test
Student t testStudent t test
Student t test
 
non parametric statistics
non parametric statisticsnon parametric statistics
non parametric statistics
 
Biostatistics
BiostatisticsBiostatistics
Biostatistics
 
Non parametric tests
Non parametric testsNon parametric tests
Non parametric tests
 
Parametric tests
Parametric testsParametric tests
Parametric tests
 
Presentation1
Presentation1Presentation1
Presentation1
 
Basic Concepts of Non-Parametric Methods ( Statistics )
Basic Concepts of Non-Parametric Methods ( Statistics )Basic Concepts of Non-Parametric Methods ( Statistics )
Basic Concepts of Non-Parametric Methods ( Statistics )
 
Analysis and interpretation of data
Analysis and interpretation of dataAnalysis and interpretation of data
Analysis and interpretation of data
 

Similar to Hm306 week 4

Introduction to Data Management in Human Ecology
Introduction to Data Management in Human EcologyIntroduction to Data Management in Human Ecology
Introduction to Data Management in Human EcologyKern Rocke
 
Medical Statistics.ppt
Medical Statistics.pptMedical Statistics.ppt
Medical Statistics.pptssuserf0d95a
 
Day 12 t test for dependent samples and single samples pdf
Day 12 t test for dependent samples and single samples pdfDay 12 t test for dependent samples and single samples pdf
Day 12 t test for dependent samples and single samples pdfElih Sutisna Yanto
 
Marketing Research Project on T test
Marketing Research Project on T test Marketing Research Project on T test
Marketing Research Project on T test Meghna Baid
 
tests of significance
tests of significancetests of significance
tests of significancebenita regi
 
Univariate Analysis
 Univariate Analysis Univariate Analysis
Univariate AnalysisSoumya Sahoo
 
Inferential Statistics.pptx
Inferential Statistics.pptxInferential Statistics.pptx
Inferential Statistics.pptxjonatanjohn1
 
jhghgjhgjhgjhfhcgjfjhvjhjgjkggjhgjhgjhfjgjgfgfhgfhg
jhghgjhgjhgjhfhcgjfjhvjhjgjkggjhgjhgjhfjgjgfgfhgfhgjhghgjhgjhgjhfhcgjfjhvjhjgjkggjhgjhgjhfjgjgfgfhgfhg
jhghgjhgjhgjhfhcgjfjhvjhjgjkggjhgjhgjhfjgjgfgfhgfhgUMAIRASHFAQ20
 
Non parametric test
Non parametric testNon parametric test
Non parametric testNeetathakur3
 
non parametric test.pptx
non parametric test.pptxnon parametric test.pptx
non parametric test.pptxSoujanyaLk1
 
statistics introduction
 statistics introduction statistics introduction
statistics introductionkingstonKINGS
 
Need a nonplagiarised paper and a form completed by 1006015 before.docx
Need a nonplagiarised paper and a form completed by 1006015 before.docxNeed a nonplagiarised paper and a form completed by 1006015 before.docx
Need a nonplagiarised paper and a form completed by 1006015 before.docxlea6nklmattu
 
Inferential statistics quantitative data - single sample and 2 groups
Inferential statistics   quantitative data - single sample and 2 groupsInferential statistics   quantitative data - single sample and 2 groups
Inferential statistics quantitative data - single sample and 2 groupsDhritiman Chakrabarti
 
Statistics pres 3.31.2014
Statistics pres 3.31.2014Statistics pres 3.31.2014
Statistics pres 3.31.2014tjcarter
 
Standard deviation
Standard deviationStandard deviation
Standard deviationM K
 

Similar to Hm306 week 4 (20)

Introduction to Data Management in Human Ecology
Introduction to Data Management in Human EcologyIntroduction to Data Management in Human Ecology
Introduction to Data Management in Human Ecology
 
Non parametric-tests
Non parametric-testsNon parametric-tests
Non parametric-tests
 
ANALYSIS OF DATA.pptx
ANALYSIS OF DATA.pptxANALYSIS OF DATA.pptx
ANALYSIS OF DATA.pptx
 
Medical Statistics.ppt
Medical Statistics.pptMedical Statistics.ppt
Medical Statistics.ppt
 
Day 12 t test for dependent samples and single samples pdf
Day 12 t test for dependent samples and single samples pdfDay 12 t test for dependent samples and single samples pdf
Day 12 t test for dependent samples and single samples pdf
 
Marketing Research Project on T test
Marketing Research Project on T test Marketing Research Project on T test
Marketing Research Project on T test
 
tests of significance
tests of significancetests of significance
tests of significance
 
Statistics
StatisticsStatistics
Statistics
 
Univariate Analysis
 Univariate Analysis Univariate Analysis
Univariate Analysis
 
Inferential Statistics.pptx
Inferential Statistics.pptxInferential Statistics.pptx
Inferential Statistics.pptx
 
jhghgjhgjhgjhfhcgjfjhvjhjgjkggjhgjhgjhfjgjgfgfhgfhg
jhghgjhgjhgjhfhcgjfjhvjhjgjkggjhgjhgjhfjgjgfgfhgfhgjhghgjhgjhgjhfhcgjfjhvjhjgjkggjhgjhgjhfjgjgfgfhgfhg
jhghgjhgjhgjhfhcgjfjhvjhjgjkggjhgjhgjhfjgjgfgfhgfhg
 
Non parametric test
Non parametric testNon parametric test
Non parametric test
 
non parametric test.pptx
non parametric test.pptxnon parametric test.pptx
non parametric test.pptx
 
statistics introduction
 statistics introduction statistics introduction
statistics introduction
 
Need a nonplagiarised paper and a form completed by 1006015 before.docx
Need a nonplagiarised paper and a form completed by 1006015 before.docxNeed a nonplagiarised paper and a form completed by 1006015 before.docx
Need a nonplagiarised paper and a form completed by 1006015 before.docx
 
Descriptive Analysis.pptx
Descriptive Analysis.pptxDescriptive Analysis.pptx
Descriptive Analysis.pptx
 
Inferential statistics quantitative data - single sample and 2 groups
Inferential statistics   quantitative data - single sample and 2 groupsInferential statistics   quantitative data - single sample and 2 groups
Inferential statistics quantitative data - single sample and 2 groups
 
Statistics pres 3.31.2014
Statistics pres 3.31.2014Statistics pres 3.31.2014
Statistics pres 3.31.2014
 
T test
T test T test
T test
 
Standard deviation
Standard deviationStandard deviation
Standard deviation
 

More from BealCollegeOnline (20)

BA650 Week 3 Chapter 3 "Why Change? contemporary drivers and pressures
BA650 Week 3 Chapter 3 "Why Change? contemporary drivers and pressuresBA650 Week 3 Chapter 3 "Why Change? contemporary drivers and pressures
BA650 Week 3 Chapter 3 "Why Change? contemporary drivers and pressures
 
BIO420 Chapter 25
BIO420 Chapter 25BIO420 Chapter 25
BIO420 Chapter 25
 
BIO420 Chapter 24
BIO420 Chapter 24BIO420 Chapter 24
BIO420 Chapter 24
 
BIO420 Chapter 23
BIO420 Chapter 23BIO420 Chapter 23
BIO420 Chapter 23
 
BIO420 Chapter 20
BIO420 Chapter 20BIO420 Chapter 20
BIO420 Chapter 20
 
BIO420 Chapter 18
BIO420 Chapter 18BIO420 Chapter 18
BIO420 Chapter 18
 
BIO420 Chapter 17
BIO420 Chapter 17BIO420 Chapter 17
BIO420 Chapter 17
 
BIO420 Chapter 16
BIO420 Chapter 16BIO420 Chapter 16
BIO420 Chapter 16
 
BIO420 Chapter 13
BIO420 Chapter 13BIO420 Chapter 13
BIO420 Chapter 13
 
BIO420 Chapter 12
BIO420 Chapter 12BIO420 Chapter 12
BIO420 Chapter 12
 
BIO420 Chapter 09
BIO420 Chapter 09BIO420 Chapter 09
BIO420 Chapter 09
 
BIO420 Chapter 08
BIO420 Chapter 08BIO420 Chapter 08
BIO420 Chapter 08
 
BIO420 Chapter 06
BIO420 Chapter 06BIO420 Chapter 06
BIO420 Chapter 06
 
BIO420 Chapter 05
BIO420 Chapter 05BIO420 Chapter 05
BIO420 Chapter 05
 
BIO420 Chapter 04
BIO420 Chapter 04BIO420 Chapter 04
BIO420 Chapter 04
 
BIO420 Chapter 03
BIO420 Chapter 03BIO420 Chapter 03
BIO420 Chapter 03
 
BIO420 Chapter 01
BIO420 Chapter 01BIO420 Chapter 01
BIO420 Chapter 01
 
BA350 Katz esb 6e_chap018_ppt
BA350 Katz esb 6e_chap018_pptBA350 Katz esb 6e_chap018_ppt
BA350 Katz esb 6e_chap018_ppt
 
BA350 Katz esb 6e_chap017_ppt
BA350 Katz esb 6e_chap017_pptBA350 Katz esb 6e_chap017_ppt
BA350 Katz esb 6e_chap017_ppt
 
BA350 Katz esb 6e_chap016_ppt
BA350 Katz esb 6e_chap016_pptBA350 Katz esb 6e_chap016_ppt
BA350 Katz esb 6e_chap016_ppt
 

Recently uploaded

How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfakmcokerachita
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaVirag Sontakke
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfMahmoud M. Sallam
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxAvyJaneVismanos
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfadityarao40181
 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxUnboundStockton
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,Virag Sontakke
 
Science lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lessonScience lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lessonJericReyAuditor
 

Recently uploaded (20)

How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdf
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of India
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdf
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptx
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdf
 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docx
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
 
Science lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lessonScience lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lesson
 

Hm306 week 4

  • 1. © 2016© 2016 A Practical Approach to Analyzing Healthcare Data Chapter 5 – Analyzing Continuous Variables
  • 2. © 2016 Continuous Variables • Data elements that represent naturally numeric values that can take infinite values – Interval (no true zero) – Ratio • Healthcare Examples – Length of stay – Charge – Systolic blood pressure – Age – Time to code records
  • 3. © 2016 Descriptive Statistics Measures of Central Tendency • Mean – Arithmetic average – Sum of values divided by the number of values • Median – Middle value – If even number of values, average of two middle values – Less influenced by extreme values or outliers than the mean • Mode – Most frequent value
  • 4. © 2016 Descriptive Statistics Measures of Variation • Range – Maximum value minus minimum value • Interquartile range – Difference between the third and first quartile • Variance – Average squared deviation from the mean – Unit of measure is “squared units” • Standard deviation – Square root of the variance – Unit of measure is same as unit of measure in sample
  • 5. © 2016 Descriptive Statistics Example • Calculate the mean, median and mode of the following sample length of stay data: – 2, 4, 6, 3, 1, 2, 5 • Mean: 𝑥 = 2+4+6+3+1+2+5 7 = 23 7 = 3.3 • Median – Sort values: 1, 2, 2, 3, 4, 5, 6 – Median or middle value = 3 • Mode – 2, since it is the most frequent value – Note: The mode is rarely used for continuous variables that have many unique values and is presented here for demonstration purposes.
  • 6. © 2016 Descriptive Statistics Example • Calculate the range, variance and standard deviation of the following sample length of stay data: – 2, 4, 6, 3, 1, 2, 5 • Range = 6 – 1 = 5 • Sample variance 𝑠2 = (2 − 3.3)2 + (4 − 3.3)2 + (6 − 3.3)2 + (3 − 3.3)2 + (1 −3.3)2 +(2 − 3.3)2 + (5 −3.3)2 7 − 1 𝑠2 = (−1.3)2+(0.7)2+(2.7)2+(−0.3)2+(−2.3)2+(−1.3)2+(1.7)2 6 = 3.2 • Standard deviation – s = 3.2 = 1.8
  • 7. © 2016 Review: Hypothesis Testing Steps 1. Determine the null and alternative hypotheses 2. Set the acceptable type I error or alpha level 3. Select the appropriate test statistic 4. Compare the test statistic to a critical value based on the alpha level and the distribution of the test statistic 5. Reject the null hypothesis if the test statistic is more extreme than the critical value. If not, do not reject the null hypothesis.
  • 8. © 2016 Inferential Statistics One Sample t-test • One-sample t-test – Used to test if a population value is different from a standard or benchmark – Test statistic: – Compare to a t-distribution to determine critical value – May be one sided or two sided – Anatomy of test statistic: • Numerator: distance from sample mean to null hypothesis value • Denominator: standard error of the sample mean (SEM)
  • 9. © 2016 Inferential Statistics One Sample t-test - Example Suppose the researcher that collected the length of stay (LOS) data in the previous examples would like to determine if the population LOS is longer than a standard of 3 days. • Step 1: Determine the null and alternative hypotheses – Ho: µ ≤ 3 – Ha: µ > 3 • Step 2: Set the acceptable type 1 error rate (AKA alpha level). – Set α = 0.05 • Step 3: Select the appropriate test statistic: t-test
  • 10. © 2016 Inferential Statistics One Sample t-test -Example • Step 3 (con’t) – Recall from previous slides: • 𝑥 = 3.3 • s = 1.8 • n = 7 • 𝑡 = 3.3−3 1.8 7 = 0.3 0.68 =0.44 • Step 4: Compare test statistic to critical value. – T-test statistic critical value comes from the t- distribution with n-1 degrees of freedom – T-distribution is symmetric around zero much like standard normal (bell curve); width is defined by the degrees of freedom. (see Figure 5.1 in text)
  • 11. © 2016 Inferential Statistics One Sample t-test - Example • Step 4 (con’t): t= 0.44; df = n – 1 = 7 -1 = 6, one sided test at α=0.05, critical value = 1.943 • Step 5: Reject the null hypothesis if the test statistic is more extreme than the critical value. 0.44 is not greater than 1.943, do not reject the null hypothesis and conclude that the LOS is not longer than the standard
  • 12. © 2016 Inferential Statistics Confidence Interval for Population Mean • Recall that a confidence interval is a range of values that is likely to cover the true population value with a pre-defined probability or level of confidence • A (1-α)% confidence interval for the population mean is centered at the sample mean and has a width that is dependent on the confidence level and standard error of the mean – Higher level of confidence requires a wider interval – Large sample size results in a narrower interval – Width of confidence interval is a measure of the precision of the estimate of the sample mean • A narrower interval is more precise
  • 13. © 2016 Inferential Statistics Confidence Interval for Population Mean Formulate a 95% confidence interval for the LOS data presented in the previous example: • 𝑥 = 3.3 • s = 1.8 • n = 7 • 95% CI, so α = 0.05; α/2 = 0.025 • df = 6 • Critical value (table 5.1) = 2.447 • 95% CI: 3.3 ± 2.447 × 1.8 7 3.3 ±1.7 (1.6,5.0) • We are 95% sure that the range 1.6 to 5.0 days includes the true population LOS is between
  • 14. © 2016 Inferential Statistics Paired t-test • Paired t-test – Used to compare pre/post test population values or matched pairs – Test statistic: • Where d = difference between the pre/post values or the pairs – Compare to a t-distribution to determine critical value – May be one sided or two sided – Anatomy of test statistic: • Numerator: distance from sample mean difference to null hypothesis value (usually zero) • Denominator: standard error of the sample mean difference (SEM)
  • 15. © 2016 Inferential Statistics Paired t-test – ExampleThe transition from ICD-9 to ICD-10 is predicted to cause an increase in the amount of time required to code medical records. A pilot study was conducted using a random sample of 10 records to determine if the time required was significantly different. Each record was coded using the two coding systems by on coder. The values are recorded in the table. • Step 1: Determine the null and alternative hypotheses: – Ho: D = 0 – Ha: D ≠ 0 • Step 2: Set the alpha level: 0.01 ID ICD- 9 Tim e ICD-10 Time d 1 10 15 5 2 11 12 1 3 15 10 -5 4 30 36 6 5 5 7 2 6 10 13 3 7 8 5 -3 8 11 19 8 9 21 19 -2 10 18 23 5
  • 16. © 2016 Inferential Statistics Paired t-test – Example • Step 3: Select the appropriate test statistic: • Step 4: Compare the test statistic to the critical value – 𝑑 = 2.00; 𝑠 𝑑 = 4.24 – 𝑡 = 2.00 −0 4.24 10 =1.49 – Compare to t distn with df = 9, α/2 = 0.005 – 1.49 not > 3.25 • Step 5: Do not reject Ho ID ICD- 9 Tim e ICD-10 Time d 1 10 15 5 2 11 12 1 3 15 10 -5 4 30 36 6 5 5 7 2 6 10 13 3 7 8 5 -3 8 11 19 8 9 21 19 -2 10 18 23 5
  • 17. © 2016 Inferential Statistics Two Sample t-test • Used to test if a two population means are different • Test statistic complex – Denominator is standard error pooled across the two samples – use statistical software to calculate • Compare to a t-distribution to determine critical value • May be one sided or two sided • Anatomy of test statistic: – Numerator: distance between the two sample means – Denominator: pooled standard error of the difference between the two sample means
  • 18. © 2016 Inferential Statistics Two Sample t-test - Example An analyst wanted to determine if the length of stay was different for Hip Replacement (MS-DRG 470) patients that were sent home versus those that were discharged to another setting. A random sample was selected and the results are presented in the table below. • Step 1: State hypotheses: – Ho: µ1= µ2 – Ho: µ1≠ µ2 • Step 2: Set the alpha level = 0.01 • Step 3: Determine the test statistic – T-test – Use Excel Data Analysis ToolPak to calculate – Run Two sample test for variances to determine if equal variances can be assumed Home? Sample Size Ave LOS Std. Dev. LOS No 94 3.38 0.86 Yes 47 4.87 1.50
  • 19. © 2016 Inferential Statistics Two Sample t-test - Example • Since F = 0.33 < F Critical = 0.56, reject the null hypothesis that variances are equal • Must run two-sample t-test without assuming equal variances • Note: The excel version of this test is the reciprocal of the Levene’s test found elsewhere. Must look for test statistics (F) less than critical value in this version.
  • 20. © 2016 Inferential Statistics Two Sample t-test - Example • Step 4: Compared test statistic to critical value – Note: Excel will only give the positive value of the critical value. Recall that the t-distribution is symmetric, so reject is t stat is < -2.66 OR > +2.66 – T stat = -6.32 < -2.66 • Step 5: Reject null hypothesis if test statistic is more extreme than critical value – Reject the null hypothesis and conclude that patients that are discharged to home have longer stays than those discharged to another setting
  • 21. © 2016 Inferential Statistics ANOVA • Used to test if a more than two population means are different • Test statistic: F-test – Best to use software to compute • Compare to an F-distribution to determine critical value • Anatomy of test statistic: – Numerator: variance between comparison groups – Denominator: variance within comparison groups
  • 22. © 2016 Inferential Statistics ANOVA Sum of Squares Degrees of Freedom Mean Squares Test statistic : F
  • 23. © 2016 Inferential Statistics ANOVA - Example An analyst is studying variation in charges among AMI patients that are discharged alive with MCC (MS-DRG 280), CC (MS-DRG 281) and no CC (MS-DRG 282). A sample of 25 patients is selected from each MS-DRG. The sample statistics are presented in the table below:
  • 24. © 2016 Inferential Statistics ANOVA - Example • Step 1: State the hypotheses – Ho: µ280= µ281= µ282 – At least two of the population means are unequal • Step 2: Set the acceptable error level: α=0.05 • Step 3: Determine the appropriate test statistic – F-test – Calculate using software • Step 4: Compare test statistic to critical value – F = 2.784 < 3.124 • Step 5: Conclude to not reject Ho since F < critical value
  • 25. © 2016 Inferential Statistics ANOVA - Example • Distribution of charges for the 3 MS-DRGs overlap • ANOVA will not find a statistical difference • ANOVA test is determining is there is less/more variation between the groups than within the groups