SlideShare una empresa de Scribd logo
1 de 45
TESTING OF HYPOTHESIS
(T-TEST)
PRESENTED BY
ISHA JAVED (2215213010)
SAFA ASHRAF (2215213023)
UZMA YASEEN (22152130328)
MEMONA QURESHI (2215213014)
T-TEST
T-test is a useful technique for comparing
mean values of two sets of numbers.
It is used to test whether there is significant
difference between the mean of two groups.
Suppose we want to know that the mean difference
between two different species of turtles is equal or not.
ASSUMPTIONS OF T-TEST
T-test
assumes
that:
i. Scale of measurement (continuous or ordinal scale)
ii. Simple random sampling
iii. Small sample size. (Valid for large sample if variance is
unknown)
iv. No outlier
v. Normal distribution of data.
vi. Variances are equal.
CONTINUED…..
For checking normality of data Shapiro wilk and Kolmogorov-Smirnov tests are
used and for graph P-P plot and Q-Q plot are used.
STEPS/COMMAND:
ANALYZE DESCRIPTIVE STATISTICS EXPLORE SHIFT
“WEIGHT” TO DEPENDENT LIST CLICK PLOTS UNCHECK
“STEM AND LEAF” CHECK “NORMALITY PLOTS WITH TEST”
CONTINUE OK.
EXAMPLE
“Variances are equal” assumption should meet in two sample or independent
sample t-test.
• STEPS
ANALYZE DESCRIPTIVE STATISTICS EXPLORE SHIFT
“WEIGHT” TO DEPENDENT VARIABLE AND “GENDER” TO FACTOR
LIST CLICK PLOTS CHECK FOR “POWER ESTIMATION”
CONTINUE OK.
• EXAMPLE
INTERPRETATION OF LEVEN’S TEST:
The test should not be significant. P-value is greater than 0.05 which shows
that variance are not significantly different(i.e., the homogeneity assumption
of the variance is met)
TYPES OF T-TEST
One Sample T-test
Two Sample Or Independent Sample T-test
Paired Sample T-test
APPLICATION
To compare the mean of
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 between two
occasions i.e. Before and
after treatment.
ONE SAMPLE T-TEST
ONE SAMPLE T TEST
• The one-sample t-test allows us to test whether a sample mean is significantly different
from a population mean. When only the sample standard deviation is known.
• Simply, when to use the one-sample t-test, you should consider using this test when you
have continuous data collected from group that you want to compare that group’s
average scores to some known criterion value (probably a population mean)
Hypothesis of one sample t-test:
One-sample t-test is used to test whether a population mean is significantly different or not
from hypothesized value.
𝐻0 ∶ 𝜇 = Mean (Means are not significantly different)
𝐻1 ∶ 𝜇 ≠ Mean (Means are significantly different)
ASSUMPTIONS FOR ONE SAMPLE T-TEST:
• Test variable that is continuous (i.e., Interval or ratio level
• Scores on the test variable are independent (i.e., Independence of
observations)
• Random sample of data from the population normal distribution
(approximately) of the sample and population on the test variable
• No outliers
EXAMPLE OF ONE SAMPLE T-TEST
To test whether the average weight of student population is different from 140 lb.
Data: a random sample of 21 students’ weights from student population 235 is
selected.
135 119 106 135 180 108 128 160 143 175
205 195 185 150 175 190 180 195 220 235
170
Hypothesis:
𝐻0 ∶ 𝜇 = 140𝑙𝑏
𝐻1 ∶ 𝜇 ≠ 140𝑙𝑏
CONTINUED…
• Create data file: enter the data in SPSS, with the variable “weight” takes up one
column as shown in the picture on the right.
• COMMANDS/STEPS:
To perform the one sample t-test, first click through the menu selections
ANALYZE COMPARE MEANS ONE SAMPLE T TEST SELECT
THE VARIABLE “WEIGHT” TO VARIABLE BOX ENTER THE TEST
VALUE “140” OK.
1. 2.
INTERPRETATION
The one sample t-test statistic is 3.582 and
the p-value from this statistic is .002˂0.05
so we reject the null hypothesis and the
average weight of student is different from
140lb .
TWO SAMPLE OR
INDEPENDENT SAMPLE T-
TEST
TWO/INDEPENDENT SAMPLE T-TEST
1. It measures the significant difference in the mean of
two groups, variables or categories.
2. The variables used in this test are known as:
i. Dependent variable or test variable.
ii. Independent variable or grouping variable
• It is used to
Compare mean of two samples only
 If more than 2 groups use ANOVA
For example:
Social work student’s have higher GPA then
nursing students.
Social work students volunteer for more
hours per week than education majors.
APPLICATION
ASSUMPTION FOR TWO
SAMPLE T-TEST
Dependent variable is continuous (i.e., Interval
or ratio level)
Independent variable that is categorical and has
exactly two categories
Cases that have values on both the dependent
and independent variables
Independent samples/groups (i.e., Independence
of observations.
• HYPOTHESIS:
It is about making statement about the difference between the mean of one
population μ1 and the mean of another population μ2.
Null hypothesis: the means for the two populations are equal
Alternative hypothesis: the means for the two populations are not equal.
OR
H0: 𝜇1 = 𝜇2
H1: 𝜇1 ≠ 𝜇2
EXAMPLE
A researcher want to study the impact of caffeine on a motor test where the
task is to keep mouse centered on a moving dot. Everyone gets a drink: half
get caffeine, half get placebo; nobody knows who got what.
DATA:
Experimental
(Caffeine)
12 14 10 8 16 5 3 9 11
Control (No
Caffeine)
21 18 14 20 11 19 8 12 13 15
• SOLUTION:
STEP 1:
HYPOTHESIS
H0: 𝜇1 = 𝜇2
H1: 𝜇1 ≠ 𝜇2
• H0: MEAN FOR THE TWO POPULATIONS ARE EQUAL.
H1: MEAN FOR THE TWO POPULATION ARE NOT EQUAL.
• STEP 2:
DATA ENTRY:
1.
After entering variable
name in spss
2nd step in variable
declaration is coding of
groups or labeling the value
of group i.e., “1” For
experimental and “2” for
control.
2.
• COMMANDS/STEPS:
ANALYZE COMPARE MEANS INDEPENDENT SAMPLE T-TEST
SHIFT “CAFFEINE” TO TEST VARIABLE(S) SHIFT GROUP TO
GROUPING VARIABLE DEFINE GROUP GROUP 1 = 1
GROUP 2 = 2 OPTIONS CONFIDENCE INTERVAL
PERCENTAGE WRITE 95% CONTINUE OK.
2. 3.
Shift “caffeine” to
Test V
ariable(s) and
“Group” to grouping
variable
Click Define
Groups
4. 5.
Assign Values to
group 1 and group 2
then continue.
Click options then write interval
percentage 95% , then click continue.
1.
2
.
3.
6.
Now click ok
INTERPRETATION
This table displays the basic
descriptive statistics for each
subgroup of independent
variable.
This part display
Levene’s statistics with it
significant value
If P-value is less than level of significance (α = 0.05) then reject 𝐻0. Which
means that the population means are significantly different.
According to interpretation of example: As P-value level 0.014 < level of
significance (α = 0.05) therefore 𝐻0 is rejected which means that the two
population means are significantly different.
PAIRED SAMPLE T-TEST
PAIRED SAMPLE T-TEST
• Compares the means of two measurements taken from the same individual,
object, or related units. These "paired" measurements can represent things like: A
measurement taken at two different times (e.g., Pre-test and post-test score with
an intervention administered between the two time points)
• The paired samples t test is commonly used to test the following:
• Statistical difference between two time points
• Statistical difference between two conditions
• Statistical difference between two measurements
• Statistical difference between a matched paired
Assumptions of paired T-test
The common assumptions made when doing a t-test includes;
• Random sampling
• Normality of data distribution
• No outliers
EXAMPLE
A training program was conducted to improve the participants knowledge on
ICT. Data was collected from a selected sample both before and after the ICT
training program.
Hypothesis for paired sample t-test
• The hypotheses can be expressed in two different ways.
H0: µ1 = µ2
H1 : µ1 ≠ µ2
H0 ; the paired population means are equal"
H1: "the paired population means are not equal
• COMMAND/STEPS:
• ANALYZE COMPARE MEANS PAIRED SAMPLE T-TEST
SHIFT “PRE-TEST AND POST TEST” TO VARIABLE 1 AND 2
OPTIONS /CONFIDENCE INTERVAL PERCENTAGE WRITE 95
CONTINUE/OK.
1
.
2.
3.
• SPSS OUTPUT/TABLE:
• Interpretations ;
As P-value is less 0.000 < than the level of significance (alpha value =0.05)
therefore ho is rejected which means that the population means are significantly
different.
Thanks for your patience If u have
any question Ask Google

Más contenido relacionado

Similar a Testing of hypothesis.pptx

T test^jsample size^j ethics
T test^jsample size^j ethicsT test^jsample size^j ethics
T test^jsample size^j ethicsAbhishek Thakur
 
univariate and bivariate analysis in spss
univariate and bivariate analysis in spss univariate and bivariate analysis in spss
univariate and bivariate analysis in spss Subodh Khanal
 
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
 
Inferential Statistics.pptx
Inferential Statistics.pptxInferential Statistics.pptx
Inferential Statistics.pptxjonatanjohn1
 
Parametric tests
Parametric testsParametric tests
Parametric testsheena45
 
Lec1_Methods-for-Dummies-T-tests-anovas-and-regression.pptx
Lec1_Methods-for-Dummies-T-tests-anovas-and-regression.pptxLec1_Methods-for-Dummies-T-tests-anovas-and-regression.pptx
Lec1_Methods-for-Dummies-T-tests-anovas-and-regression.pptxAkhtaruzzamanlimon1
 
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 for Anaesthesiologists
Statistics for AnaesthesiologistsStatistics for Anaesthesiologists
Statistics for Anaesthesiologistsxeonfusion
 
Summary of statistical tools used in spss
Summary of statistical tools used in spssSummary of statistical tools used in spss
Summary of statistical tools used in spssSubodh Khanal
 
5. testing differences
5. testing differences5. testing differences
5. testing differencesSteve Saffhill
 
INDEPENDENT SAMPLE T TEST.pptx
INDEPENDENT SAMPLE T TEST.pptxINDEPENDENT SAMPLE T TEST.pptx
INDEPENDENT SAMPLE T TEST.pptxMisbah660782
 
t Test- Thiyagu
t Test- Thiyagut Test- Thiyagu
t Test- ThiyaguThiyagu K
 
Statistics for Medical students
Statistics for Medical studentsStatistics for Medical students
Statistics for Medical studentsANUSWARUM
 

Similar a Testing of hypothesis.pptx (20)

1 ANOVA.ppt
1 ANOVA.ppt1 ANOVA.ppt
1 ANOVA.ppt
 
T test^jsample size^j ethics
T test^jsample size^j ethicsT test^jsample size^j ethics
T test^jsample size^j ethics
 
Anova, ancova
Anova, ancovaAnova, ancova
Anova, ancova
 
univariate and bivariate analysis in spss
univariate and bivariate analysis in spss univariate and bivariate analysis in spss
univariate and bivariate analysis in spss
 
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
 
Non parametric-tests
Non parametric-testsNon parametric-tests
Non parametric-tests
 
Inferential Statistics.pptx
Inferential Statistics.pptxInferential Statistics.pptx
Inferential Statistics.pptx
 
Parametric tests
Parametric testsParametric tests
Parametric tests
 
Lec1_Methods-for-Dummies-T-tests-anovas-and-regression.pptx
Lec1_Methods-for-Dummies-T-tests-anovas-and-regression.pptxLec1_Methods-for-Dummies-T-tests-anovas-and-regression.pptx
Lec1_Methods-for-Dummies-T-tests-anovas-and-regression.pptx
 
Ttest
TtestTtest
Ttest
 
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 for Anaesthesiologists
Statistics for AnaesthesiologistsStatistics for Anaesthesiologists
Statistics for Anaesthesiologists
 
Student's T-Test
Student's T-TestStudent's T-Test
Student's T-Test
 
Summary of statistical tools used in spss
Summary of statistical tools used in spssSummary of statistical tools used in spss
Summary of statistical tools used in spss
 
Statistical analysis
Statistical  analysisStatistical  analysis
Statistical analysis
 
5. testing differences
5. testing differences5. testing differences
5. testing differences
 
Workshop on Data Analysis and Result Interpretation in Social Science Researc...
Workshop on Data Analysis and Result Interpretation in Social Science Researc...Workshop on Data Analysis and Result Interpretation in Social Science Researc...
Workshop on Data Analysis and Result Interpretation in Social Science Researc...
 
INDEPENDENT SAMPLE T TEST.pptx
INDEPENDENT SAMPLE T TEST.pptxINDEPENDENT SAMPLE T TEST.pptx
INDEPENDENT SAMPLE T TEST.pptx
 
t Test- Thiyagu
t Test- Thiyagut Test- Thiyagu
t Test- Thiyagu
 
Statistics for Medical students
Statistics for Medical studentsStatistics for Medical students
Statistics for Medical students
 

Último

Smarteg dropshipping via API with DroFx.pptx
Smarteg dropshipping via API with DroFx.pptxSmarteg dropshipping via API with DroFx.pptx
Smarteg dropshipping via API with DroFx.pptxolyaivanovalion
 
Ravak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptxRavak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptxolyaivanovalion
 
Capstone Project on IBM Data Analytics Program
Capstone Project on IBM Data Analytics ProgramCapstone Project on IBM Data Analytics Program
Capstone Project on IBM Data Analytics ProgramMoniSankarHazra
 
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 nightCheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 nightDelhi Call girls
 
Halmar dropshipping via API with DroFx
Halmar  dropshipping  via API with DroFxHalmar  dropshipping  via API with DroFx
Halmar dropshipping via API with DroFxolyaivanovalion
 
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779Best VIP Call Girls Noida Sector 39 Call Me: 8448380779
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779Delhi Call girls
 
Call Girls 🫤 Dwarka ➡️ 9711199171 ➡️ Delhi 🫦 Two shot with one girl
Call Girls 🫤 Dwarka ➡️ 9711199171 ➡️ Delhi 🫦 Two shot with one girlCall Girls 🫤 Dwarka ➡️ 9711199171 ➡️ Delhi 🫦 Two shot with one girl
Call Girls 🫤 Dwarka ➡️ 9711199171 ➡️ Delhi 🫦 Two shot with one girlkumarajju5765
 
Mature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptxMature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptxolyaivanovalion
 
CALL ON ➥8923113531 🔝Call Girls Chinhat Lucknow best sexual service Online
CALL ON ➥8923113531 🔝Call Girls Chinhat Lucknow best sexual service OnlineCALL ON ➥8923113531 🔝Call Girls Chinhat Lucknow best sexual service Online
CALL ON ➥8923113531 🔝Call Girls Chinhat Lucknow best sexual service Onlineanilsa9823
 
CebaBaby dropshipping via API with DroFX.pptx
CebaBaby dropshipping via API with DroFX.pptxCebaBaby dropshipping via API with DroFX.pptx
CebaBaby dropshipping via API with DroFX.pptxolyaivanovalion
 
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
Accredited-Transport-Cooperatives-Jan-2021-Web.pdf
Accredited-Transport-Cooperatives-Jan-2021-Web.pdfAccredited-Transport-Cooperatives-Jan-2021-Web.pdf
Accredited-Transport-Cooperatives-Jan-2021-Web.pdfadriantubila
 
Generative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusGenerative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusTimothy Spann
 
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...amitlee9823
 
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Callshivangimorya083
 
Midocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxMidocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxolyaivanovalion
 
Log Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxLog Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxJohnnyPlasten
 
Determinants of health, dimensions of health, positive health and spectrum of...
Determinants of health, dimensions of health, positive health and spectrum of...Determinants of health, dimensions of health, positive health and spectrum of...
Determinants of health, dimensions of health, positive health and spectrum of...shambhavirathore45
 

Último (20)

Smarteg dropshipping via API with DroFx.pptx
Smarteg dropshipping via API with DroFx.pptxSmarteg dropshipping via API with DroFx.pptx
Smarteg dropshipping via API with DroFx.pptx
 
Ravak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptxRavak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptx
 
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
Capstone Project on IBM Data Analytics Program
Capstone Project on IBM Data Analytics ProgramCapstone Project on IBM Data Analytics Program
Capstone Project on IBM Data Analytics Program
 
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 nightCheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
 
Halmar dropshipping via API with DroFx
Halmar  dropshipping  via API with DroFxHalmar  dropshipping  via API with DroFx
Halmar dropshipping via API with DroFx
 
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779Best VIP Call Girls Noida Sector 39 Call Me: 8448380779
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779
 
Call Girls 🫤 Dwarka ➡️ 9711199171 ➡️ Delhi 🫦 Two shot with one girl
Call Girls 🫤 Dwarka ➡️ 9711199171 ➡️ Delhi 🫦 Two shot with one girlCall Girls 🫤 Dwarka ➡️ 9711199171 ➡️ Delhi 🫦 Two shot with one girl
Call Girls 🫤 Dwarka ➡️ 9711199171 ➡️ Delhi 🫦 Two shot with one girl
 
Mature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptxMature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptx
 
CALL ON ➥8923113531 🔝Call Girls Chinhat Lucknow best sexual service Online
CALL ON ➥8923113531 🔝Call Girls Chinhat Lucknow best sexual service OnlineCALL ON ➥8923113531 🔝Call Girls Chinhat Lucknow best sexual service Online
CALL ON ➥8923113531 🔝Call Girls Chinhat Lucknow best sexual service Online
 
CebaBaby dropshipping via API with DroFX.pptx
CebaBaby dropshipping via API with DroFX.pptxCebaBaby dropshipping via API with DroFX.pptx
CebaBaby dropshipping via API with DroFX.pptx
 
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
 
Accredited-Transport-Cooperatives-Jan-2021-Web.pdf
Accredited-Transport-Cooperatives-Jan-2021-Web.pdfAccredited-Transport-Cooperatives-Jan-2021-Web.pdf
Accredited-Transport-Cooperatives-Jan-2021-Web.pdf
 
Generative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusGenerative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and Milvus
 
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
 
Sampling (random) method and Non random.ppt
Sampling (random) method and Non random.pptSampling (random) method and Non random.ppt
Sampling (random) method and Non random.ppt
 
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
 
Midocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxMidocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFx
 
Log Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxLog Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptx
 
Determinants of health, dimensions of health, positive health and spectrum of...
Determinants of health, dimensions of health, positive health and spectrum of...Determinants of health, dimensions of health, positive health and spectrum of...
Determinants of health, dimensions of health, positive health and spectrum of...
 

Testing of hypothesis.pptx

  • 1. TESTING OF HYPOTHESIS (T-TEST) PRESENTED BY ISHA JAVED (2215213010) SAFA ASHRAF (2215213023) UZMA YASEEN (22152130328) MEMONA QURESHI (2215213014)
  • 2. T-TEST T-test is a useful technique for comparing mean values of two sets of numbers. It is used to test whether there is significant difference between the mean of two groups. Suppose we want to know that the mean difference between two different species of turtles is equal or not.
  • 3. ASSUMPTIONS OF T-TEST T-test assumes that: i. Scale of measurement (continuous or ordinal scale) ii. Simple random sampling iii. Small sample size. (Valid for large sample if variance is unknown) iv. No outlier v. Normal distribution of data. vi. Variances are equal.
  • 4. CONTINUED….. For checking normality of data Shapiro wilk and Kolmogorov-Smirnov tests are used and for graph P-P plot and Q-Q plot are used. STEPS/COMMAND: ANALYZE DESCRIPTIVE STATISTICS EXPLORE SHIFT “WEIGHT” TO DEPENDENT LIST CLICK PLOTS UNCHECK “STEM AND LEAF” CHECK “NORMALITY PLOTS WITH TEST” CONTINUE OK.
  • 6.
  • 7. “Variances are equal” assumption should meet in two sample or independent sample t-test. • STEPS ANALYZE DESCRIPTIVE STATISTICS EXPLORE SHIFT “WEIGHT” TO DEPENDENT VARIABLE AND “GENDER” TO FACTOR LIST CLICK PLOTS CHECK FOR “POWER ESTIMATION” CONTINUE OK.
  • 9.
  • 10. INTERPRETATION OF LEVEN’S TEST: The test should not be significant. P-value is greater than 0.05 which shows that variance are not significantly different(i.e., the homogeneity assumption of the variance is met)
  • 11. TYPES OF T-TEST One Sample T-test Two Sample Or Independent Sample T-test Paired Sample T-test
  • 12. APPLICATION To compare the mean of 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 between two occasions i.e. Before and after treatment.
  • 14. ONE SAMPLE T TEST • The one-sample t-test allows us to test whether a sample mean is significantly different from a population mean. When only the sample standard deviation is known. • Simply, when to use the one-sample t-test, you should consider using this test when you have continuous data collected from group that you want to compare that group’s average scores to some known criterion value (probably a population mean) Hypothesis of one sample t-test: One-sample t-test is used to test whether a population mean is significantly different or not from hypothesized value. 𝐻0 ∶ 𝜇 = Mean (Means are not significantly different) 𝐻1 ∶ 𝜇 ≠ Mean (Means are significantly different)
  • 15. ASSUMPTIONS FOR ONE SAMPLE T-TEST: • Test variable that is continuous (i.e., Interval or ratio level • Scores on the test variable are independent (i.e., Independence of observations) • Random sample of data from the population normal distribution (approximately) of the sample and population on the test variable • No outliers
  • 16. EXAMPLE OF ONE SAMPLE T-TEST To test whether the average weight of student population is different from 140 lb. Data: a random sample of 21 students’ weights from student population 235 is selected. 135 119 106 135 180 108 128 160 143 175 205 195 185 150 175 190 180 195 220 235 170 Hypothesis: 𝐻0 ∶ 𝜇 = 140𝑙𝑏 𝐻1 ∶ 𝜇 ≠ 140𝑙𝑏
  • 17. CONTINUED… • Create data file: enter the data in SPSS, with the variable “weight” takes up one column as shown in the picture on the right.
  • 18. • COMMANDS/STEPS: To perform the one sample t-test, first click through the menu selections ANALYZE COMPARE MEANS ONE SAMPLE T TEST SELECT THE VARIABLE “WEIGHT” TO VARIABLE BOX ENTER THE TEST VALUE “140” OK.
  • 19. 1. 2.
  • 20. INTERPRETATION The one sample t-test statistic is 3.582 and the p-value from this statistic is .002˂0.05 so we reject the null hypothesis and the average weight of student is different from 140lb .
  • 21. TWO SAMPLE OR INDEPENDENT SAMPLE T- TEST
  • 22. TWO/INDEPENDENT SAMPLE T-TEST 1. It measures the significant difference in the mean of two groups, variables or categories. 2. The variables used in this test are known as: i. Dependent variable or test variable. ii. Independent variable or grouping variable
  • 23. • It is used to Compare mean of two samples only  If more than 2 groups use ANOVA For example: Social work student’s have higher GPA then nursing students. Social work students volunteer for more hours per week than education majors. APPLICATION
  • 24. ASSUMPTION FOR TWO SAMPLE T-TEST Dependent variable is continuous (i.e., Interval or ratio level) Independent variable that is categorical and has exactly two categories Cases that have values on both the dependent and independent variables Independent samples/groups (i.e., Independence of observations.
  • 25. • HYPOTHESIS: It is about making statement about the difference between the mean of one population μ1 and the mean of another population μ2. Null hypothesis: the means for the two populations are equal Alternative hypothesis: the means for the two populations are not equal. OR H0: 𝜇1 = 𝜇2 H1: 𝜇1 ≠ 𝜇2
  • 26. EXAMPLE A researcher want to study the impact of caffeine on a motor test where the task is to keep mouse centered on a moving dot. Everyone gets a drink: half get caffeine, half get placebo; nobody knows who got what. DATA: Experimental (Caffeine) 12 14 10 8 16 5 3 9 11 Control (No Caffeine) 21 18 14 20 11 19 8 12 13 15
  • 27. • SOLUTION: STEP 1: HYPOTHESIS H0: 𝜇1 = 𝜇2 H1: 𝜇1 ≠ 𝜇2 • H0: MEAN FOR THE TWO POPULATIONS ARE EQUAL. H1: MEAN FOR THE TWO POPULATION ARE NOT EQUAL.
  • 28. • STEP 2: DATA ENTRY: 1. After entering variable name in spss 2nd step in variable declaration is coding of groups or labeling the value of group i.e., “1” For experimental and “2” for control.
  • 29. 2.
  • 30. • COMMANDS/STEPS: ANALYZE COMPARE MEANS INDEPENDENT SAMPLE T-TEST SHIFT “CAFFEINE” TO TEST VARIABLE(S) SHIFT GROUP TO GROUPING VARIABLE DEFINE GROUP GROUP 1 = 1 GROUP 2 = 2 OPTIONS CONFIDENCE INTERVAL PERCENTAGE WRITE 95% CONTINUE OK.
  • 31.
  • 32. 2. 3. Shift “caffeine” to Test V ariable(s) and “Group” to grouping variable Click Define Groups
  • 33. 4. 5. Assign Values to group 1 and group 2 then continue. Click options then write interval percentage 95% , then click continue. 1. 2 . 3.
  • 35. INTERPRETATION This table displays the basic descriptive statistics for each subgroup of independent variable. This part display Levene’s statistics with it significant value
  • 36. If P-value is less than level of significance (α = 0.05) then reject 𝐻0. Which means that the population means are significantly different. According to interpretation of example: As P-value level 0.014 < level of significance (α = 0.05) therefore 𝐻0 is rejected which means that the two population means are significantly different.
  • 38. PAIRED SAMPLE T-TEST • Compares the means of two measurements taken from the same individual, object, or related units. These "paired" measurements can represent things like: A measurement taken at two different times (e.g., Pre-test and post-test score with an intervention administered between the two time points) • The paired samples t test is commonly used to test the following: • Statistical difference between two time points • Statistical difference between two conditions • Statistical difference between two measurements • Statistical difference between a matched paired
  • 39. Assumptions of paired T-test The common assumptions made when doing a t-test includes; • Random sampling • Normality of data distribution • No outliers
  • 40. EXAMPLE A training program was conducted to improve the participants knowledge on ICT. Data was collected from a selected sample both before and after the ICT training program. Hypothesis for paired sample t-test • The hypotheses can be expressed in two different ways. H0: µ1 = µ2 H1 : µ1 ≠ µ2 H0 ; the paired population means are equal" H1: "the paired population means are not equal
  • 41. • COMMAND/STEPS: • ANALYZE COMPARE MEANS PAIRED SAMPLE T-TEST SHIFT “PRE-TEST AND POST TEST” TO VARIABLE 1 AND 2 OPTIONS /CONFIDENCE INTERVAL PERCENTAGE WRITE 95 CONTINUE/OK. 1 . 2.
  • 42. 3.
  • 44. • Interpretations ; As P-value is less 0.000 < than the level of significance (alpha value =0.05) therefore ho is rejected which means that the population means are significantly different.
  • 45. Thanks for your patience If u have any question Ask Google