SlideShare a Scribd company logo
The t test
prepared by
B.saikiran
(12NA1E0036)
1
Introduction





The t-test is a basic test that is limited to two
groups. For multiple groups, you would have to
compare each pair of groups, for example with
three groups there would be three tests (AB,
AC, BC), whilst with seven groups there would
need to be 21 tests.
The basic principle is to test the  null
hypothesis that the means of the two groups
are equal.


The t-test assumes:







It is used when there is random assignment and
only two sets of measurement to compare.
There are two main types of t-test:






A normal distribution (parametric data)
Underlying variances are equal (if not, use Welch's test)

Independent-measures t-test: when samples are not
matched.
Matched-pair t-test: When samples appear in pairs (eg.
before-and-after).

A single-sample t-test compares a sample against
a known figure, for example where measures of a
manufactured item are compared against the
required standard.
Applications
To compare the mean of a sample with
population mean.
 To compare the mean of one sample
with the mean of another independent
sample.
 To compare between the values
(readings) of one sample but in 2
occasions.


4
1.Sample mean and population
mean





The general steps of testing hypothesis must be
followed.
Ho: Sample mean=Population mean.
Degrees of freedom = n - 1

−

X −µ
t =
SE
5
Example
The following data represents hemoglobin values in
gm/dl for 10 patients:
10.5 9

6.5

8

11

7

8.5

9.5

12

7.5

Is the mean value for patients significantly differ
from the mean value of general population
(12 gm/dl) . Evaluate the role of chance.
6
Solution


Mention all steps of testing hypothesis.

8.95 − 12
t=
= −5.352
1.80201
10
Then compare with tabulated value, for 9 df, and 5% level of
significance. It is = 2.262
The calculated value>tabulated value.
Reject Ho and conclude that there is a statistically significant difference
between the mean of sample and population mean, and this
difference is unlikely due to chance.
7
8
2.Two independent samples
The following data represents weight in Kg for 10
males and 12 females.
Males:
80

75

95

55

60

70

75

72

80

65

Females:
60

70

50

85

45

60

80

65

70

62

77

82
9
2.Two independent samples, cont.




Is there a statistically significant difference between
the mean weight of males and females. Let alpha =
0.01
To solve it follow the steps and use this equation.
−

t=

−

X1 − X 2
2

2

(n1 − 1) S1 + (n 2 − 1) S 2 1
1
( + )
n1 + n 2 − 2
n1 n 2
10
Results









Mean1=72.7
Mean2=67.17
Variance1=128.46 Variance2=157.787
Df = n1+n2-2=20
t = 1.074
The tabulated t, 2 sides, for alpha 0.01 is 2.845
Then accept Ho and conclude that there is no
significant difference between the 2 means. This
difference may be due to chance.
P>0.01
11
3.One sample in two occasions



Mention steps of testing hypothesis.
The df here = n – 1.
−

d
t =
sd

n

sd =

d2 −
∑

(∑ d ) 2

n −1

n

12
Example: Blood pressure of 8
patients, before & after treatment
BP before BP after
180
140
200
145
230
150
240
155
170
120
190
130
200
140
165
130
Mean d=465/8=58.125

d
40
55
80
85
50
60
60
35
∑d=465

d2
1600
3025
6400
7225
2500
3600
3600
1225
13
∑d2=29175
Results and conclusion







t=9.387
Tabulated t (df7), with level of significance
0.05, two tails, = 2.36
We reject Ho and conclude that there is
significant difference between BP readings
before and after treatment.
P<0.05.
14

More Related Content

What's hot

Student t test
Student t testStudent t test
Student t test
Dr Shovan Padhy, MD
 
Measures of dispersion
Measures of dispersionMeasures of dispersion
Measures of dispersionSachin Shekde
 
Measures of Dispersion
Measures of DispersionMeasures of Dispersion
Measures of Dispersion
Birinder Singh Gulati
 
Testing of hypothesis
Testing of hypothesisTesting of hypothesis
Testing of hypothesisJags Jagdish
 
Chi -square test
Chi -square testChi -square test
Chi -square test
VIVEK KUMAR SINGH
 
Parametric tests
Parametric testsParametric tests
Parametric tests
heena45
 
01 parametric and non parametric statistics
01 parametric and non parametric statistics01 parametric and non parametric statistics
01 parametric and non parametric statistics
Vasant Kothari
 
The mann whitney u test
The mann whitney u testThe mann whitney u test
The mann whitney u test
Regent University
 
non parametric statistics
non parametric statisticsnon parametric statistics
non parametric statistics
Anchal Garg
 
NULL AND ALTERNATIVE HYPOTHESIS.pptx
NULL AND ALTERNATIVE HYPOTHESIS.pptxNULL AND ALTERNATIVE HYPOTHESIS.pptx
NULL AND ALTERNATIVE HYPOTHESIS.pptx
04ShainaSachdeva
 
Analysis of variance (anova)
Analysis of variance (anova)Analysis of variance (anova)
Analysis of variance (anova)
Sadhana Singh
 
Standard deviation
Standard deviationStandard deviation
Skewness and kurtosis ppt
Skewness and kurtosis pptSkewness and kurtosis ppt
Skewness and kurtosis ppt
Drishti Rajput
 
Correlation and Regression
Correlation and RegressionCorrelation and Regression
Correlation and Regression
Sir Parashurambhau College, Pune
 
Sampling distribution
Sampling distributionSampling distribution
Sampling distribution
swarna dey
 
Parametric tests
Parametric testsParametric tests
Parametric tests
Ananya Sree Katta
 
Correlation and Regression
Correlation and RegressionCorrelation and Regression
Correlation and Regression
Ram Kumar Shah "Struggler"
 

What's hot (20)

Correlation
CorrelationCorrelation
Correlation
 
Student t test
Student t testStudent t test
Student t test
 
Measures of dispersion
Measures of dispersionMeasures of dispersion
Measures of dispersion
 
Measures of Dispersion
Measures of DispersionMeasures of Dispersion
Measures of Dispersion
 
Testing of hypothesis
Testing of hypothesisTesting of hypothesis
Testing of hypothesis
 
Chi -square test
Chi -square testChi -square test
Chi -square test
 
Parametric tests
Parametric testsParametric tests
Parametric tests
 
01 parametric and non parametric statistics
01 parametric and non parametric statistics01 parametric and non parametric statistics
01 parametric and non parametric statistics
 
The mann whitney u test
The mann whitney u testThe mann whitney u test
The mann whitney u test
 
non parametric statistics
non parametric statisticsnon parametric statistics
non parametric statistics
 
NULL AND ALTERNATIVE HYPOTHESIS.pptx
NULL AND ALTERNATIVE HYPOTHESIS.pptxNULL AND ALTERNATIVE HYPOTHESIS.pptx
NULL AND ALTERNATIVE HYPOTHESIS.pptx
 
Analysis of variance (anova)
Analysis of variance (anova)Analysis of variance (anova)
Analysis of variance (anova)
 
Standard deviation
Standard deviationStandard deviation
Standard deviation
 
Skewness and kurtosis ppt
Skewness and kurtosis pptSkewness and kurtosis ppt
Skewness and kurtosis ppt
 
Correlation and Regression
Correlation and RegressionCorrelation and Regression
Correlation and Regression
 
Sampling distribution
Sampling distributionSampling distribution
Sampling distribution
 
Hypothesis Testing
Hypothesis TestingHypothesis Testing
Hypothesis Testing
 
Parametric tests
Parametric testsParametric tests
Parametric tests
 
Analysis of variance anova
Analysis of variance anovaAnalysis of variance anova
Analysis of variance anova
 
Correlation and Regression
Correlation and RegressionCorrelation and Regression
Correlation and Regression
 

Viewers also liked

Hypothesis testing; z test, t-test. f-test
Hypothesis testing; z test, t-test. f-testHypothesis testing; z test, t-test. f-test
Hypothesis testing; z test, t-test. f-test
Shakehand with Life
 
Introduction to t-tests (statistics)
Introduction to t-tests (statistics)Introduction to t-tests (statistics)
Introduction to t-tests (statistics)
Dr Bryan Mills
 
Student t-test
Student t-testStudent t-test
Student t-test
Steve Bishop
 
Hypothesis testing ppt final
Hypothesis testing ppt finalHypothesis testing ppt final
Hypothesis testing ppt finalpiyushdhaker
 
Exploratory Factor Analysis
Exploratory Factor AnalysisExploratory Factor Analysis
Exploratory Factor Analysis
Daire Hooper
 
A Guide to SPSS Statistics
A Guide to SPSS Statistics A Guide to SPSS Statistics
A Guide to SPSS Statistics
Luke Farrell
 
Measures of central tendency
Measures of central tendencyMeasures of central tendency
Measures of central tendencyyogesh ingle
 
T test, independant sample, paired sample and anova
T test, independant sample, paired sample and anovaT test, independant sample, paired sample and anova
T test, independant sample, paired sample and anovaQasim Raza
 
Student's T-Test
Student's T-TestStudent's T-Test
Mycobacterium tuberculosis(Microbiology)
Mycobacterium tuberculosis(Microbiology)Mycobacterium tuberculosis(Microbiology)
Mycobacterium tuberculosis(Microbiology)
Caroline Karunya
 

Viewers also liked (10)

Hypothesis testing; z test, t-test. f-test
Hypothesis testing; z test, t-test. f-testHypothesis testing; z test, t-test. f-test
Hypothesis testing; z test, t-test. f-test
 
Introduction to t-tests (statistics)
Introduction to t-tests (statistics)Introduction to t-tests (statistics)
Introduction to t-tests (statistics)
 
Student t-test
Student t-testStudent t-test
Student t-test
 
Hypothesis testing ppt final
Hypothesis testing ppt finalHypothesis testing ppt final
Hypothesis testing ppt final
 
Exploratory Factor Analysis
Exploratory Factor AnalysisExploratory Factor Analysis
Exploratory Factor Analysis
 
A Guide to SPSS Statistics
A Guide to SPSS Statistics A Guide to SPSS Statistics
A Guide to SPSS Statistics
 
Measures of central tendency
Measures of central tendencyMeasures of central tendency
Measures of central tendency
 
T test, independant sample, paired sample and anova
T test, independant sample, paired sample and anovaT test, independant sample, paired sample and anova
T test, independant sample, paired sample and anova
 
Student's T-Test
Student's T-TestStudent's T-Test
Student's T-Test
 
Mycobacterium tuberculosis(Microbiology)
Mycobacterium tuberculosis(Microbiology)Mycobacterium tuberculosis(Microbiology)
Mycobacterium tuberculosis(Microbiology)
 

Similar to T test

The t test
The t testThe t test
Two Sample Tests
Two Sample TestsTwo Sample Tests
Two Sample Testssanketd1983
 
Chi-square, Yates, Fisher & McNemar
Chi-square, Yates, Fisher & McNemarChi-square, Yates, Fisher & McNemar
Chi-square, Yates, Fisher & McNemar
Azmi Mohd Tamil
 
Hypothesis testing for parametric data (1)
Hypothesis testing for parametric data (1)Hypothesis testing for parametric data (1)
Hypothesis testing for parametric data (1)
KwambokaLeonidah
 
Hypothesis testing for parametric data
Hypothesis testing for parametric dataHypothesis testing for parametric data
Hypothesis testing for parametric data
KwambokaLeonidah
 
Factorial Experiments
Factorial ExperimentsFactorial Experiments
Factorial Experiments
HelpWithAssignment.com
 
Non parametrics tests
Non parametrics testsNon parametrics tests
Non parametrics tests
rodrick koome
 
Two Means, Independent Samples
Two Means, Independent SamplesTwo Means, Independent Samples
Two Means, Independent Samples
Long Beach City College
 
Lecture 2 doe
Lecture 2 doeLecture 2 doe
Lecture 2 doe
Quan Nguyen
 
Unit-5.-t-test.ppt
Unit-5.-t-test.pptUnit-5.-t-test.ppt
Unit-5.-t-test.ppt
frelynmaeDillo
 
The two sample t-test
The two sample t-testThe two sample t-test
The two sample t-test
Christina K J
 
Survival.pptx
Survival.pptxSurvival.pptx
Survival.pptx
MohammedAbdela7
 
Lecture-6 (t-test and one way ANOVA.ppt
Lecture-6 (t-test and one way ANOVA.pptLecture-6 (t-test and one way ANOVA.ppt
Lecture-6 (t-test and one way ANOVA.ppt
MohammedAbdela7
 
DataIDSalaryCompaMidpoint AgePerformance RatingServiceGenderRaiseD.docx
DataIDSalaryCompaMidpoint AgePerformance RatingServiceGenderRaiseD.docxDataIDSalaryCompaMidpoint AgePerformance RatingServiceGenderRaiseD.docx
DataIDSalaryCompaMidpoint AgePerformance RatingServiceGenderRaiseD.docx
theodorelove43763
 
Hypothesis Test _Two-sample t-test, Z-test, Proportion Z-test
Hypothesis Test _Two-sample t-test, Z-test, Proportion Z-testHypothesis Test _Two-sample t-test, Z-test, Proportion Z-test
Hypothesis Test _Two-sample t-test, Z-test, Proportion Z-test
Ravindra Nath Shukla
 
Hmisiri nonparametrics book
Hmisiri nonparametrics bookHmisiri nonparametrics book
Hmisiri nonparametrics book
College of Medicine(University of Malawi)
 
non para.doc
non para.docnon para.doc
non para.doc
Annamalai University
 

Similar to T test (20)

The t test
The t testThe t test
The t test
 
Two Sample Tests
Two Sample TestsTwo Sample Tests
Two Sample Tests
 
Chi-square, Yates, Fisher & McNemar
Chi-square, Yates, Fisher & McNemarChi-square, Yates, Fisher & McNemar
Chi-square, Yates, Fisher & McNemar
 
Hypothesis testing for parametric data (1)
Hypothesis testing for parametric data (1)Hypothesis testing for parametric data (1)
Hypothesis testing for parametric data (1)
 
Hypothesis testing for parametric data
Hypothesis testing for parametric dataHypothesis testing for parametric data
Hypothesis testing for parametric data
 
Factorial Experiments
Factorial ExperimentsFactorial Experiments
Factorial Experiments
 
Stat5 the t test
Stat5 the t testStat5 the t test
Stat5 the t test
 
Stat5 the t test
Stat5 the t testStat5 the t test
Stat5 the t test
 
Non parametrics tests
Non parametrics testsNon parametrics tests
Non parametrics tests
 
Two Means, Independent Samples
Two Means, Independent SamplesTwo Means, Independent Samples
Two Means, Independent Samples
 
Lecture 2 doe
Lecture 2 doeLecture 2 doe
Lecture 2 doe
 
Unit-5.-t-test.ppt
Unit-5.-t-test.pptUnit-5.-t-test.ppt
Unit-5.-t-test.ppt
 
The two sample t-test
The two sample t-testThe two sample t-test
The two sample t-test
 
Survival.pptx
Survival.pptxSurvival.pptx
Survival.pptx
 
Lecture-6 (t-test and one way ANOVA.ppt
Lecture-6 (t-test and one way ANOVA.pptLecture-6 (t-test and one way ANOVA.ppt
Lecture-6 (t-test and one way ANOVA.ppt
 
Chapter 6 Ranksumtest
Chapter 6 RanksumtestChapter 6 Ranksumtest
Chapter 6 Ranksumtest
 
DataIDSalaryCompaMidpoint AgePerformance RatingServiceGenderRaiseD.docx
DataIDSalaryCompaMidpoint AgePerformance RatingServiceGenderRaiseD.docxDataIDSalaryCompaMidpoint AgePerformance RatingServiceGenderRaiseD.docx
DataIDSalaryCompaMidpoint AgePerformance RatingServiceGenderRaiseD.docx
 
Hypothesis Test _Two-sample t-test, Z-test, Proportion Z-test
Hypothesis Test _Two-sample t-test, Z-test, Proportion Z-testHypothesis Test _Two-sample t-test, Z-test, Proportion Z-test
Hypothesis Test _Two-sample t-test, Z-test, Proportion Z-test
 
Hmisiri nonparametrics book
Hmisiri nonparametrics bookHmisiri nonparametrics book
Hmisiri nonparametrics book
 
non para.doc
non para.docnon para.doc
non para.doc
 

More from sai precious

foreign manufacturing stratagies
foreign manufacturing stratagiesforeign manufacturing stratagies
foreign manufacturing stratagies
sai precious
 
Exim bank opportunities
Exim bank opportunitiesExim bank opportunities
Exim bank opportunities
sai precious
 
dis investment policy
dis investment policydis investment policy
dis investment policy
sai precious
 
dis invest ment & pay back period
dis invest ment & pay back perioddis invest ment & pay back period
dis invest ment & pay back period
sai precious
 
theories of selling
theories of sellingtheories of selling
theories of selling
sai precious
 
supply chain mgmt
supply chain mgmtsupply chain mgmt
supply chain mgmt
sai precious
 
foreingn exchange market
foreingn exchange marketforeingn exchange market
foreingn exchange market
sai precious
 
capital market recent innovations
capital market recent innovationscapital market recent innovations
capital market recent innovations
sai precious
 
Marginal costing & concepts
Marginal costing & conceptsMarginal costing & concepts
Marginal costing & conceptssai precious
 
Negotiable instruments act 1881
Negotiable instruments act 1881Negotiable instruments act 1881
Negotiable instruments act 1881sai precious
 
Negotiable instruments act
Negotiable instruments actNegotiable instruments act
Negotiable instruments actsai precious
 
Physical evidence of services
Physical evidence of servicesPhysical evidence of services
Physical evidence of servicessai precious
 
Stratagic evolution & control
Stratagic evolution & controlStratagic evolution & control
Stratagic evolution & controlsai precious
 

More from sai precious (20)

foreign manufacturing stratagies
foreign manufacturing stratagiesforeign manufacturing stratagies
foreign manufacturing stratagies
 
Exim bank opportunities
Exim bank opportunitiesExim bank opportunities
Exim bank opportunities
 
dis investment policy
dis investment policydis investment policy
dis investment policy
 
dis invest ment & pay back period
dis invest ment & pay back perioddis invest ment & pay back period
dis invest ment & pay back period
 
theories of selling
theories of sellingtheories of selling
theories of selling
 
supply chain mgmt
supply chain mgmtsupply chain mgmt
supply chain mgmt
 
foreingn exchange market
foreingn exchange marketforeingn exchange market
foreingn exchange market
 
capital market recent innovations
capital market recent innovationscapital market recent innovations
capital market recent innovations
 
Branding
BrandingBranding
Branding
 
C.r.m & e --c.r.m
C.r.m & e --c.r.mC.r.m & e --c.r.m
C.r.m & e --c.r.m
 
Company analysis
Company analysisCompany analysis
Company analysis
 
Global marketing
Global marketingGlobal marketing
Global marketing
 
I.d.b.i & g.i.c
I.d.b.i & g.i.c I.d.b.i & g.i.c
I.d.b.i & g.i.c
 
Marginal costing & concepts
Marginal costing & conceptsMarginal costing & concepts
Marginal costing & concepts
 
Marginal costing
Marginal costingMarginal costing
Marginal costing
 
Negotiable instruments act 1881
Negotiable instruments act 1881Negotiable instruments act 1881
Negotiable instruments act 1881
 
Negotiable instruments act
Negotiable instruments actNegotiable instruments act
Negotiable instruments act
 
Physical evidence of services
Physical evidence of servicesPhysical evidence of services
Physical evidence of services
 
Risk types
Risk  typesRisk  types
Risk types
 
Stratagic evolution & control
Stratagic evolution & controlStratagic evolution & control
Stratagic evolution & control
 

Recently uploaded

GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
Sri Ambati
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
Product School
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance
 
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptxIOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
Abida Shariff
 
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Product School
 
Search and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical FuturesSearch and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical Futures
Bhaskar Mitra
 
ODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User GroupODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User Group
CatarinaPereira64715
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
James Anderson
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
Elena Simperl
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
Cheryl Hung
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
Alison B. Lowndes
 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
DianaGray10
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Tobias Schneck
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Product School
 
PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)
Ralf Eggert
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
Paul Groth
 
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdfFIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
Kari Kakkonen
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
Thijs Feryn
 

Recently uploaded (20)

GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
 
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptxIOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
 
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...
 
Search and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical FuturesSearch and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical Futures
 
ODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User GroupODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User Group
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
 
PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
 
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdfFIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
 

T test

  • 1. The t test prepared by B.saikiran (12NA1E0036) 1
  • 2. Introduction   The t-test is a basic test that is limited to two groups. For multiple groups, you would have to compare each pair of groups, for example with three groups there would be three tests (AB, AC, BC), whilst with seven groups there would need to be 21 tests. The basic principle is to test the  null hypothesis that the means of the two groups are equal.
  • 3.  The t-test assumes:     It is used when there is random assignment and only two sets of measurement to compare. There are two main types of t-test:    A normal distribution (parametric data) Underlying variances are equal (if not, use Welch's test) Independent-measures t-test: when samples are not matched. Matched-pair t-test: When samples appear in pairs (eg. before-and-after). A single-sample t-test compares a sample against a known figure, for example where measures of a manufactured item are compared against the required standard.
  • 4. Applications To compare the mean of a sample with population mean.  To compare the mean of one sample with the mean of another independent sample.  To compare between the values (readings) of one sample but in 2 occasions.  4
  • 5. 1.Sample mean and population mean    The general steps of testing hypothesis must be followed. Ho: Sample mean=Population mean. Degrees of freedom = n - 1 − X −µ t = SE 5
  • 6. Example The following data represents hemoglobin values in gm/dl for 10 patients: 10.5 9 6.5 8 11 7 8.5 9.5 12 7.5 Is the mean value for patients significantly differ from the mean value of general population (12 gm/dl) . Evaluate the role of chance. 6
  • 7. Solution  Mention all steps of testing hypothesis. 8.95 − 12 t= = −5.352 1.80201 10 Then compare with tabulated value, for 9 df, and 5% level of significance. It is = 2.262 The calculated value>tabulated value. Reject Ho and conclude that there is a statistically significant difference between the mean of sample and population mean, and this difference is unlikely due to chance. 7
  • 8. 8
  • 9. 2.Two independent samples The following data represents weight in Kg for 10 males and 12 females. Males: 80 75 95 55 60 70 75 72 80 65 Females: 60 70 50 85 45 60 80 65 70 62 77 82 9
  • 10. 2.Two independent samples, cont.   Is there a statistically significant difference between the mean weight of males and females. Let alpha = 0.01 To solve it follow the steps and use this equation. − t= − X1 − X 2 2 2 (n1 − 1) S1 + (n 2 − 1) S 2 1 1 ( + ) n1 + n 2 − 2 n1 n 2 10
  • 11. Results        Mean1=72.7 Mean2=67.17 Variance1=128.46 Variance2=157.787 Df = n1+n2-2=20 t = 1.074 The tabulated t, 2 sides, for alpha 0.01 is 2.845 Then accept Ho and conclude that there is no significant difference between the 2 means. This difference may be due to chance. P>0.01 11
  • 12. 3.One sample in two occasions   Mention steps of testing hypothesis. The df here = n – 1. − d t = sd n sd = d2 − ∑ (∑ d ) 2 n −1 n 12
  • 13. Example: Blood pressure of 8 patients, before & after treatment BP before BP after 180 140 200 145 230 150 240 155 170 120 190 130 200 140 165 130 Mean d=465/8=58.125 d 40 55 80 85 50 60 60 35 ∑d=465 d2 1600 3025 6400 7225 2500 3600 3600 1225 13 ∑d2=29175
  • 14. Results and conclusion     t=9.387 Tabulated t (df7), with level of significance 0.05, two tails, = 2.36 We reject Ho and conclude that there is significant difference between BP readings before and after treatment. P<0.05. 14