Statistics analysis with GNU PSPP161.246.38.75/download/rms/chap10_pspp.pdf ·...
Transcript of Statistics analysis with GNU PSPP161.246.38.75/download/rms/chap10_pspp.pdf ·...
![Page 1: Statistics analysis with GNU PSPP161.246.38.75/download/rms/chap10_pspp.pdf · ไม่เป็นโรคกระเพาะ H 0 is TRUE เป็นจริง Correct decision](https://reader033.fdocuments.in/reader033/viewer/2022052021/603526b62692f87b94710928/html5/thumbnails/1.jpg)
Statistics analysis with GNU PSPP
Asst.Prof.Dr.Supakit Nootyaskool
Information Technology, KMITL
Version: 3
![Page 2: Statistics analysis with GNU PSPP161.246.38.75/download/rms/chap10_pspp.pdf · ไม่เป็นโรคกระเพาะ H 0 is TRUE เป็นจริง Correct decision](https://reader033.fdocuments.in/reader033/viewer/2022052021/603526b62692f87b94710928/html5/thumbnails/2.jpg)
PSPP
• Statistics analysis tool • Supporting input data file from SPSS • Syntax and menu similarity with SPSS.
– Cannot create data graph or chart • Use gnuplot software
• Free license under GPLv3 conditions • Run on various operating systems
– Linux (OpenBSD, NetBSD, FreeBSD) – Mac – Window
• www.gnuorg/software/pspp
![Page 3: Statistics analysis with GNU PSPP161.246.38.75/download/rms/chap10_pspp.pdf · ไม่เป็นโรคกระเพาะ H 0 is TRUE เป็นจริง Correct decision](https://reader033.fdocuments.in/reader033/viewer/2022052021/603526b62692f87b94710928/html5/thumbnails/3.jpg)
![Page 4: Statistics analysis with GNU PSPP161.246.38.75/download/rms/chap10_pspp.pdf · ไม่เป็นโรคกระเพาะ H 0 is TRUE เป็นจริง Correct decision](https://reader033.fdocuments.in/reader033/viewer/2022052021/603526b62692f87b94710928/html5/thumbnails/4.jpg)
Processing data
• Data from the questionnaire
• Data conversion
• Data analysis and discussion
• Interpret result
• Writing summary result
![Page 5: Statistics analysis with GNU PSPP161.246.38.75/download/rms/chap10_pspp.pdf · ไม่เป็นโรคกระเพาะ H 0 is TRUE เป็นจริง Correct decision](https://reader033.fdocuments.in/reader033/viewer/2022052021/603526b62692f87b94710928/html5/thumbnails/5.jpg)
Questionnaire
![Page 6: Statistics analysis with GNU PSPP161.246.38.75/download/rms/chap10_pspp.pdf · ไม่เป็นโรคกระเพาะ H 0 is TRUE เป็นจริง Correct decision](https://reader033.fdocuments.in/reader033/viewer/2022052021/603526b62692f87b94710928/html5/thumbnails/6.jpg)
Data conversion and data entering
![Page 7: Statistics analysis with GNU PSPP161.246.38.75/download/rms/chap10_pspp.pdf · ไม่เป็นโรคกระเพาะ H 0 is TRUE เป็นจริง Correct decision](https://reader033.fdocuments.in/reader033/viewer/2022052021/603526b62692f87b94710928/html5/thumbnails/7.jpg)
PSPP: Data View & Variable View
![Page 8: Statistics analysis with GNU PSPP161.246.38.75/download/rms/chap10_pspp.pdf · ไม่เป็นโรคกระเพาะ H 0 is TRUE เป็นจริง Correct decision](https://reader033.fdocuments.in/reader033/viewer/2022052021/603526b62692f87b94710928/html5/thumbnails/8.jpg)
Data type and data size
![Page 9: Statistics analysis with GNU PSPP161.246.38.75/download/rms/chap10_pspp.pdf · ไม่เป็นโรคกระเพาะ H 0 is TRUE เป็นจริง Correct decision](https://reader033.fdocuments.in/reader033/viewer/2022052021/603526b62692f87b94710928/html5/thumbnails/9.jpg)
![Page 10: Statistics analysis with GNU PSPP161.246.38.75/download/rms/chap10_pspp.pdf · ไม่เป็นโรคกระเพาะ H 0 is TRUE เป็นจริง Correct decision](https://reader033.fdocuments.in/reader033/viewer/2022052021/603526b62692f87b94710928/html5/thumbnails/10.jpg)
![Page 11: Statistics analysis with GNU PSPP161.246.38.75/download/rms/chap10_pspp.pdf · ไม่เป็นโรคกระเพาะ H 0 is TRUE เป็นจริง Correct decision](https://reader033.fdocuments.in/reader033/viewer/2022052021/603526b62692f87b94710928/html5/thumbnails/11.jpg)
![Page 12: Statistics analysis with GNU PSPP161.246.38.75/download/rms/chap10_pspp.pdf · ไม่เป็นโรคกระเพาะ H 0 is TRUE เป็นจริง Correct decision](https://reader033.fdocuments.in/reader033/viewer/2022052021/603526b62692f87b94710928/html5/thumbnails/12.jpg)
Frequency analysis and plotting histogram chart
Skewness ค่าความเบ้ Kurtosis ค่าความโด่ง S.E.mean ค่าความคลาดเคลื่อนมาตราฐานของค่าเฉล่ีย
![Page 13: Statistics analysis with GNU PSPP161.246.38.75/download/rms/chap10_pspp.pdf · ไม่เป็นโรคกระเพาะ H 0 is TRUE เป็นจริง Correct decision](https://reader033.fdocuments.in/reader033/viewer/2022052021/603526b62692f87b94710928/html5/thumbnails/13.jpg)
Output
![Page 14: Statistics analysis with GNU PSPP161.246.38.75/download/rms/chap10_pspp.pdf · ไม่เป็นโรคกระเพาะ H 0 is TRUE เป็นจริง Correct decision](https://reader033.fdocuments.in/reader033/viewer/2022052021/603526b62692f87b94710928/html5/thumbnails/14.jpg)
Descriptive: Crosstab
![Page 15: Statistics analysis with GNU PSPP161.246.38.75/download/rms/chap10_pspp.pdf · ไม่เป็นโรคกระเพาะ H 0 is TRUE เป็นจริง Correct decision](https://reader033.fdocuments.in/reader033/viewer/2022052021/603526b62692f87b94710928/html5/thumbnails/15.jpg)
Descriptive: Crosstab
• Pearson chi-squared is a statistical test telling a difference between the sets.
• for large data set and unpaired data • PSPP set confidential at 95%
df = The degree of freedom The degree of freedom is an value giving by the number of observation minus the number of sample n = 2 3 3 2 1, total number of items = 5 we sample 4 df = 5 – 4 = 2
![Page 16: Statistics analysis with GNU PSPP161.246.38.75/download/rms/chap10_pspp.pdf · ไม่เป็นโรคกระเพาะ H 0 is TRUE เป็นจริง Correct decision](https://reader033.fdocuments.in/reader033/viewer/2022052021/603526b62692f87b94710928/html5/thumbnails/16.jpg)
Comparative Mean
![Page 17: Statistics analysis with GNU PSPP161.246.38.75/download/rms/chap10_pspp.pdf · ไม่เป็นโรคกระเพาะ H 0 is TRUE เป็นจริง Correct decision](https://reader033.fdocuments.in/reader033/viewer/2022052021/603526b62692f87b94710928/html5/thumbnails/17.jpg)
Difficult interpret?
• Age/Status – 30.5year old in regular study
• Sex/Status – 1.45 sex in regular study
• 1 = man, 2 = woman
![Page 18: Statistics analysis with GNU PSPP161.246.38.75/download/rms/chap10_pspp.pdf · ไม่เป็นโรคกระเพาะ H 0 is TRUE เป็นจริง Correct decision](https://reader033.fdocuments.in/reader033/viewer/2022052021/603526b62692f87b94710928/html5/thumbnails/18.jpg)
Transform: Compute
![Page 19: Statistics analysis with GNU PSPP161.246.38.75/download/rms/chap10_pspp.pdf · ไม่เป็นโรคกระเพาะ H 0 is TRUE เป็นจริง Correct decision](https://reader033.fdocuments.in/reader033/viewer/2022052021/603526b62692f87b94710928/html5/thumbnails/19.jpg)
PSPP:Part2
Asst.Prof. Dr.Supakit Nootyaskool
Information Technology, KMITL
![Page 20: Statistics analysis with GNU PSPP161.246.38.75/download/rms/chap10_pspp.pdf · ไม่เป็นโรคกระเพาะ H 0 is TRUE เป็นจริง Correct decision](https://reader033.fdocuments.in/reader033/viewer/2022052021/603526b62692f87b94710928/html5/thumbnails/20.jpg)
Variable in Research
• Independent variable ตวัแปรต้น, ตวัแปรอิสระ
• Dependent variable ตวัแปรตาม: changing the
variable value depends (effect from) on independent variable.
![Page 21: Statistics analysis with GNU PSPP161.246.38.75/download/rms/chap10_pspp.pdf · ไม่เป็นโรคกระเพาะ H 0 is TRUE เป็นจริง Correct decision](https://reader033.fdocuments.in/reader033/viewer/2022052021/603526b62692f87b94710928/html5/thumbnails/21.jpg)
Statistic
Descriptive
• freq.
• mean
• mode
• median
• variant
• standard deviation
Inference
• one-sample t-test
• independent sample t-test
• paired-sample t-test
• one-way ANOVA
• chi-square test
• correlation analysis
• regression analysis
![Page 22: Statistics analysis with GNU PSPP161.246.38.75/download/rms/chap10_pspp.pdf · ไม่เป็นโรคกระเพาะ H 0 is TRUE เป็นจริง Correct decision](https://reader033.fdocuments.in/reader033/viewer/2022052021/603526b62692f87b94710928/html5/thumbnails/22.jpg)
Example1: snack foods
• A company that produce snack foods uses a machine to package by each of bags weight 454 g.
• The quality-assurance (QA) takes a random sample of 24 bags.
• Data: 465, 456, 438, 454, 447, 449, 442, 449, 446, 447, 468, 433, 454, 463, 450, 446, 447, 456, 452, 444, 447, 456, 456, 435
![Page 23: Statistics analysis with GNU PSPP161.246.38.75/download/rms/chap10_pspp.pdf · ไม่เป็นโรคกระเพาะ H 0 is TRUE เป็นจริง Correct decision](https://reader033.fdocuments.in/reader033/viewer/2022052021/603526b62692f87b94710928/html5/thumbnails/23.jpg)
Descriptive statistic
• Data 465, 456, 438, 454, 447, 449, 442, 449, 446, 447, 468, 433, 454, 463, 450, 446, 447, 456, 452, 444, 447, 456, 456, 435
• Analysis
– Freq.
– Mean, Mode, Median
– Variant
– Standard deviation
![Page 24: Statistics analysis with GNU PSPP161.246.38.75/download/rms/chap10_pspp.pdf · ไม่เป็นโรคกระเพาะ H 0 is TRUE เป็นจริง Correct decision](https://reader033.fdocuments.in/reader033/viewer/2022052021/603526b62692f87b94710928/html5/thumbnails/24.jpg)
![Page 25: Statistics analysis with GNU PSPP161.246.38.75/download/rms/chap10_pspp.pdf · ไม่เป็นโรคกระเพาะ H 0 is TRUE เป็นจริง Correct decision](https://reader033.fdocuments.in/reader033/viewer/2022052021/603526b62692f87b94710928/html5/thumbnails/25.jpg)
T-test
• T-test is significance analysis by focus in the correlation coefficient of data.
• T-test uses to check the significant between two data sets.
• Uses both
– Testing independent of data
– Testing dependent of data
![Page 26: Statistics analysis with GNU PSPP161.246.38.75/download/rms/chap10_pspp.pdf · ไม่เป็นโรคกระเพาะ H 0 is TRUE เป็นจริง Correct decision](https://reader033.fdocuments.in/reader033/viewer/2022052021/603526b62692f87b94710928/html5/thumbnails/26.jpg)
Inference
One group (constant)
Two group
Independent group
dependent group
More than two group
Correlation
Qualitative
Quantitative
Factor of dependent
variable
One-sample T test
![Page 27: Statistics analysis with GNU PSPP161.246.38.75/download/rms/chap10_pspp.pdf · ไม่เป็นโรคกระเพาะ H 0 is TRUE เป็นจริง Correct decision](https://reader033.fdocuments.in/reader033/viewer/2022052021/603526b62692f87b94710928/html5/thumbnails/27.jpg)
Five steps for testing hypothesis
1. State null (H0) and alternate (Ha) hypotheses
2. Select a level of significant, traditionally,
level at 0.05 (95%) for consumer research project
level at 0.01 (99%) for quality assurance
level at 0.1 (10%) for political polling
Null hypothesis Does not reject H0 Reject H0
H0 is TRUE Correct decision Type I: Error
H0 is FALSE Type II: Error Correct decision
![Page 28: Statistics analysis with GNU PSPP161.246.38.75/download/rms/chap10_pspp.pdf · ไม่เป็นโรคกระเพาะ H 0 is TRUE เป็นจริง Correct decision](https://reader033.fdocuments.in/reader033/viewer/2022052021/603526b62692f87b94710928/html5/thumbnails/28.jpg)
Null hypothesis Does not reject H0 เป็นโรคกระเพาะ
Reject H0 ไม่เป็นโรคกระเพาะ
H0 is TRUE เป็นจริง
Correct decision Peter ได้ยารักษา
Type I: Error Peter ไม่เป็นโรคกระเพาะ
แตห่มอให้ยารักษา
H0 is FALSE เป็นเทจ็
Type II: Error Peter เป็นโรคกระเพาะแต่หมอบอกว่าไม่เป็น ไม่ได้ยา
รักษา
Correct decision Peter ไม่เป็น
H0 สมมตุิฐานวา่ Peterเป็นโรคกระเพาะอาหารอกัเสบ
![Page 29: Statistics analysis with GNU PSPP161.246.38.75/download/rms/chap10_pspp.pdf · ไม่เป็นโรคกระเพาะ H 0 is TRUE เป็นจริง Correct decision](https://reader033.fdocuments.in/reader033/viewer/2022052021/603526b62692f87b94710928/html5/thumbnails/29.jpg)
Null hypothesis Does not reject H0 ต้องมีรถไฟความเร็วสูง
Reject H0 ไม่จ าเป็นต้องมี
H0 is TRUE เป็นจริง
Correct decision ได้สร้างรถไฟ
Type I: Error จริงๆไม่ต้องสร้างแตผ่ลว่าสร้าง
ก็ต้องท า
H0 is FALSE เป็นเทจ็
Type II: Error อยากมีและจ าเป็นด้วยแตก็่ไม่
สร้าง
Correct decision ไม่สร้างรถไฟ ซึง่ไม่จ าเป็นจริงๆ
H0 สมมตุิฐานวา่เราต้องมีรถไฟความเร็วสงู
![Page 30: Statistics analysis with GNU PSPP161.246.38.75/download/rms/chap10_pspp.pdf · ไม่เป็นโรคกระเพาะ H 0 is TRUE เป็นจริง Correct decision](https://reader033.fdocuments.in/reader033/viewer/2022052021/603526b62692f87b94710928/html5/thumbnails/30.jpg)
Five steps for testing hypothesis
3. Select the test statistic
z-test
𝑧 =𝑋 − 𝜇
𝜎/ 𝑛
t-test
Xbar = Sampling distribution Mu = normal distribution with mean Sigma = a standard deviation
![Page 31: Statistics analysis with GNU PSPP161.246.38.75/download/rms/chap10_pspp.pdf · ไม่เป็นโรคกระเพาะ H 0 is TRUE เป็นจริง Correct decision](https://reader033.fdocuments.in/reader033/viewer/2022052021/603526b62692f87b94710928/html5/thumbnails/31.jpg)
Five steps for testing hypothesis
4. Formulate the decision rule
consideration z value with the critical value
Do not reject H0
Region of rejection
Critical value
![Page 32: Statistics analysis with GNU PSPP161.246.38.75/download/rms/chap10_pspp.pdf · ไม่เป็นโรคกระเพาะ H 0 is TRUE เป็นจริง Correct decision](https://reader033.fdocuments.in/reader033/viewer/2022052021/603526b62692f87b94710928/html5/thumbnails/32.jpg)
Hypothesis test for one population mean
Null hypothesis Alternative hypothesis
H0: μ = u0
H0: μ >= u0
H0: μ <= u0
Ha: μ <> u0
Ha: μ < u0
Ha: μ > u0
u0 : constant
Read H-sub zero or Null hypothesis
Read H-sub one or Alternate hypothesis
![Page 33: Statistics analysis with GNU PSPP161.246.38.75/download/rms/chap10_pspp.pdf · ไม่เป็นโรคกระเพาะ H 0 is TRUE เป็นจริง Correct decision](https://reader033.fdocuments.in/reader033/viewer/2022052021/603526b62692f87b94710928/html5/thumbnails/33.jpg)
KEY OF Difference between H0 and Ha
• Null hypothesis – main hypothesis – normal condition or situation
• Alternative hypothesis – difference way – researcher thinking
Example Electrical supply at 220v and tester think the electrical not 220v H0: u = 220v Ha: u <> 220v
![Page 34: Statistics analysis with GNU PSPP161.246.38.75/download/rms/chap10_pspp.pdf · ไม่เป็นโรคกระเพาะ H 0 is TRUE เป็นจริง Correct decision](https://reader033.fdocuments.in/reader033/viewer/2022052021/603526b62692f87b94710928/html5/thumbnails/34.jpg)
Hypothesis test for one population mean
Null hypothesis Alternative hypothesis
H0: μ = u0
H0: μ >= u0
H0: μ <= u0
Ha: μ <> u0
Ha: μ < u0
Ha: μ > u0
u0 : constant
![Page 35: Statistics analysis with GNU PSPP161.246.38.75/download/rms/chap10_pspp.pdf · ไม่เป็นโรคกระเพาะ H 0 is TRUE เป็นจริง Correct decision](https://reader033.fdocuments.in/reader033/viewer/2022052021/603526b62692f87b94710928/html5/thumbnails/35.jpg)
Example2: Weight of snack food
• H0: μ = 454 grams
– Meaning, the packaging machine is worked accuracy.
• Ha: μ <> 454 grams
– Meaning, the packaging machine is not worked accuracy.
• The significant level
– alpha = 0.05
Population mean (Mu) equal to 454grams
significant levels at 95%
![Page 36: Statistics analysis with GNU PSPP161.246.38.75/download/rms/chap10_pspp.pdf · ไม่เป็นโรคกระเพาะ H 0 is TRUE เป็นจริง Correct decision](https://reader033.fdocuments.in/reader033/viewer/2022052021/603526b62692f87b94710928/html5/thumbnails/36.jpg)
Example2: Weight of snack food
• H0: μ = 454 grams
– Meaning, the packaging machine is worked accuracy.
• Ha: μ <> 454 grams
– Meaning, the packaging machine is not worked accuracy.
• The significant level
– alpha = 0.05
![Page 37: Statistics analysis with GNU PSPP161.246.38.75/download/rms/chap10_pspp.pdf · ไม่เป็นโรคกระเพาะ H 0 is TRUE เป็นจริง Correct decision](https://reader033.fdocuments.in/reader033/viewer/2022052021/603526b62692f87b94710928/html5/thumbnails/37.jpg)
![Page 38: Statistics analysis with GNU PSPP161.246.38.75/download/rms/chap10_pspp.pdf · ไม่เป็นโรคกระเพาะ H 0 is TRUE เป็นจริง Correct decision](https://reader033.fdocuments.in/reader033/viewer/2022052021/603526b62692f87b94710928/html5/thumbnails/38.jpg)
alpha = 0.05 p = 0.033 we found [alpha > p] = True ; 0.05 > 0.033 ,so that reject H0. Conclusion: The packaging machine do not properly to pack at 454grams at significant level 0.05
![Page 39: Statistics analysis with GNU PSPP161.246.38.75/download/rms/chap10_pspp.pdf · ไม่เป็นโรคกระเพาะ H 0 is TRUE เป็นจริง Correct decision](https://reader033.fdocuments.in/reader033/viewer/2022052021/603526b62692f87b94710928/html5/thumbnails/39.jpg)
Example3: Calcium levels
• A nutritionist thinks the average person with income below the poverty level gets less than 800mg of calcium.
• Sample of 18 poverty peoples • Data
– 686, 433, 743, 647, 734, 641, 993, 620, 574, 634, 850, 858, 992, 775, 1113, 672, 879, 609
• Question: the data provide sufficient evidence to
conclude that the mean calcium intake of all people with income below the poverty level is less than 800mg?
poverty (n) ความยากจน intake (n) ปริมาณท่ีบริโภค
![Page 40: Statistics analysis with GNU PSPP161.246.38.75/download/rms/chap10_pspp.pdf · ไม่เป็นโรคกระเพาะ H 0 is TRUE เป็นจริง Correct decision](https://reader033.fdocuments.in/reader033/viewer/2022052021/603526b62692f87b94710928/html5/thumbnails/40.jpg)
Example3: Calcium levels
• H0: μ >= 800mg
• Ha: μ < 800mg
• Significant levels
– alpha = 0.05
• data
– 686, 433, 743, 647, 734, 641, 993, 620, 574, 634, 850, 858, 992, 775, 1113, 672, 879, 609
![Page 41: Statistics analysis with GNU PSPP161.246.38.75/download/rms/chap10_pspp.pdf · ไม่เป็นโรคกระเพาะ H 0 is TRUE เป็นจริง Correct decision](https://reader033.fdocuments.in/reader033/viewer/2022052021/603526b62692f87b94710928/html5/thumbnails/41.jpg)
• H0: μ >= 800mg; Ha: u < 800mg • alpha = 0.05 • p = 0.212 /2 (two way) = 0.106 • [alpha > p] = False ; 0.05 > 0.106 , so that not reject H0
• Conclusion: The mean calcium intake of the poverty people
is not less than 800mg at the 0.05 significance level.
![Page 42: Statistics analysis with GNU PSPP161.246.38.75/download/rms/chap10_pspp.pdf · ไม่เป็นโรคกระเพาะ H 0 is TRUE เป็นจริง Correct decision](https://reader033.fdocuments.in/reader033/viewer/2022052021/603526b62692f87b94710928/html5/thumbnails/42.jpg)
Inference
One group (constant)
Two group,
Two samples
Independent group
dependent group
More than two group
Correlation
Qualitative
Quantitative
Factor of dependent
variable
Independent sample T-test
![Page 43: Statistics analysis with GNU PSPP161.246.38.75/download/rms/chap10_pspp.pdf · ไม่เป็นโรคกระเพาะ H 0 is TRUE เป็นจริง Correct decision](https://reader033.fdocuments.in/reader033/viewer/2022052021/603526b62692f87b94710928/html5/thumbnails/43.jpg)
T-test: Two groups
Null hypothesis Alternative hypothesis
H0: μ1 = u2
H0: μ1 >= u2
H0: μ2 <= u2
Ha: μ1 <> μ2
Ha: μ1 < μ2
Ha: μ1 > μ2
![Page 44: Statistics analysis with GNU PSPP161.246.38.75/download/rms/chap10_pspp.pdf · ไม่เป็นโรคกระเพาะ H 0 is TRUE เป็นจริง Correct decision](https://reader033.fdocuments.in/reader033/viewer/2022052021/603526b62692f87b94710928/html5/thumbnails/44.jpg)
Example4: Hospital costs
• Sample the costs per day between public hospital and private hospital
• public hospital
– 633, 616, 659, 535, 666, 675, 524, 746, 585, 748, 696, 609
• private hospital
– 790, 587, 997, 735, 852, 686, 839, 545, 724, 554, 889, 797, 722, 484, 579
![Page 45: Statistics analysis with GNU PSPP161.246.38.75/download/rms/chap10_pspp.pdf · ไม่เป็นโรคกระเพาะ H 0 is TRUE เป็นจริง Correct decision](https://reader033.fdocuments.in/reader033/viewer/2022052021/603526b62692f87b94710928/html5/thumbnails/45.jpg)
![Page 46: Statistics analysis with GNU PSPP161.246.38.75/download/rms/chap10_pspp.pdf · ไม่เป็นโรคกระเพาะ H 0 is TRUE เป็นจริง Correct decision](https://reader033.fdocuments.in/reader033/viewer/2022052021/603526b62692f87b94710928/html5/thumbnails/46.jpg)
Levene’s test for equality
• H0: u1 = u2; Ha: u1 <> u2
• alpha = 0.05
• p = 0.31/2 = 0.0155
• [alpha>p] = True, so that reject H0
![Page 47: Statistics analysis with GNU PSPP161.246.38.75/download/rms/chap10_pspp.pdf · ไม่เป็นโรคกระเพาะ H 0 is TRUE เป็นจริง Correct decision](https://reader033.fdocuments.in/reader033/viewer/2022052021/603526b62692f87b94710928/html5/thumbnails/47.jpg)
Equal variance not assumed • H0: u1 >= u2; Ha: u1 < u2 • alpha = 0.05 • p = 0.086/2 = 0.043 • [alpha > p] = True , so that reject H0 • Conclude: average cost of public hospital is lower
than private hospital at 0.05 significant level.
![Page 48: Statistics analysis with GNU PSPP161.246.38.75/download/rms/chap10_pspp.pdf · ไม่เป็นโรคกระเพาะ H 0 is TRUE เป็นจริง Correct decision](https://reader033.fdocuments.in/reader033/viewer/2022052021/603526b62692f87b94710928/html5/thumbnails/48.jpg)
Inference
One group (constant)
Two group
Independent group
dependent group
More than two group
Correlation
Qualitative
Quantitative
Factor of dependent
variable
Paired-sample T test
![Page 49: Statistics analysis with GNU PSPP161.246.38.75/download/rms/chap10_pspp.pdf · ไม่เป็นโรคกระเพาะ H 0 is TRUE เป็นจริง Correct decision](https://reader033.fdocuments.in/reader033/viewer/2022052021/603526b62692f87b94710928/html5/thumbnails/49.jpg)
Two dependent group
• Mean value of two groups are dependent or having relation. For example to apply:
– Examination: Pre-test/Post-test
– Applying something: Before/After
– Similarity between someone or something: A/B
![Page 50: Statistics analysis with GNU PSPP161.246.38.75/download/rms/chap10_pspp.pdf · ไม่เป็นโรคกระเพาะ H 0 is TRUE เป็นจริง Correct decision](https://reader033.fdocuments.in/reader033/viewer/2022052021/603526b62692f87b94710928/html5/thumbnails/50.jpg)
Example 5: running
• An exercise physiologist wants to determine whether a certain type of running program will reduce heat rates.
• Sample 15 people and keep data before running and after one year doing exercise.
Person Before After
1 68 67
2 76 77
3 74 74
4 71 74
5 71 69
6 72 70
7 75 71
8 83 77
Person Before After
9 75 71
10 74 74
11 76 73
12 77 68
13 79 71
14 75 72
15 75 77
![Page 51: Statistics analysis with GNU PSPP161.246.38.75/download/rms/chap10_pspp.pdf · ไม่เป็นโรคกระเพาะ H 0 is TRUE เป็นจริง Correct decision](https://reader033.fdocuments.in/reader033/viewer/2022052021/603526b62692f87b94710928/html5/thumbnails/51.jpg)
Example 5: running
• H0: u1 <= u2; Ha: u1 > u2
• u1: the heart rate of before-variable
• u2: the heart rate of after-variable
• The significant level
– alpha = 0.05
![Page 52: Statistics analysis with GNU PSPP161.246.38.75/download/rms/chap10_pspp.pdf · ไม่เป็นโรคกระเพาะ H 0 is TRUE เป็นจริง Correct decision](https://reader033.fdocuments.in/reader033/viewer/2022052021/603526b62692f87b94710928/html5/thumbnails/52.jpg)
![Page 53: Statistics analysis with GNU PSPP161.246.38.75/download/rms/chap10_pspp.pdf · ไม่เป็นโรคกระเพาะ H 0 is TRUE เป็นจริง Correct decision](https://reader033.fdocuments.in/reader033/viewer/2022052021/603526b62692f87b94710928/html5/thumbnails/53.jpg)
• p = 0.018/2 = 0.009
• [alpha > p] = True, so that reject H0
• Conclude: the running program will reduce heart rate at 0.05 significance level.
![Page 54: Statistics analysis with GNU PSPP161.246.38.75/download/rms/chap10_pspp.pdf · ไม่เป็นโรคกระเพาะ H 0 is TRUE เป็นจริง Correct decision](https://reader033.fdocuments.in/reader033/viewer/2022052021/603526b62692f87b94710928/html5/thumbnails/54.jpg)
Inference
One group (constant)
Two group
Independent group
dependent group
More than two group
Correlation
Qualitative
Quantitative
Factor of dependent
variable
ANOVA (ANalysis Of Variance)
![Page 55: Statistics analysis with GNU PSPP161.246.38.75/download/rms/chap10_pspp.pdf · ไม่เป็นโรคกระเพาะ H 0 is TRUE เป็นจริง Correct decision](https://reader033.fdocuments.in/reader033/viewer/2022052021/603526b62692f87b94710928/html5/thumbnails/55.jpg)
Acceptance region/ Rejection region
![Page 56: Statistics analysis with GNU PSPP161.246.38.75/download/rms/chap10_pspp.pdf · ไม่เป็นโรคกระเพาะ H 0 is TRUE เป็นจริง Correct decision](https://reader033.fdocuments.in/reader033/viewer/2022052021/603526b62692f87b94710928/html5/thumbnails/56.jpg)
Example 6: Bearing Vibration
• A hard-disk company tests vibration of bearing for installation in the hard-disk. The bearing from five brands, sampling 6 items, there are result
• The company studying, are bearing difference ?
Brand1 Brand2 Brand3 Brand4 Brand5
13.1 16.3 13.7 15.7 13.5
15 15.7 13.9 13.7 13.4
14 17.2 12.4 14.4 13.2
14.4 14.9 13.8 16 12.7
14 14.4 14.9 13.9 13.4
11.6 17.2 13.3 14.7 12.3
![Page 57: Statistics analysis with GNU PSPP161.246.38.75/download/rms/chap10_pspp.pdf · ไม่เป็นโรคกระเพาะ H 0 is TRUE เป็นจริง Correct decision](https://reader033.fdocuments.in/reader033/viewer/2022052021/603526b62692f87b94710928/html5/thumbnails/57.jpg)
Example 6: Bearing Vibration
• Hypothesis
– H0: u1 = u2 = u3 = u4 = u5
– Ha: u1 <> u2 <> u3 <> u4 <> u5
• Significant level
– Alpha = 0.05
![Page 58: Statistics analysis with GNU PSPP161.246.38.75/download/rms/chap10_pspp.pdf · ไม่เป็นโรคกระเพาะ H 0 is TRUE เป็นจริง Correct decision](https://reader033.fdocuments.in/reader033/viewer/2022052021/603526b62692f87b94710928/html5/thumbnails/58.jpg)
![Page 59: Statistics analysis with GNU PSPP161.246.38.75/download/rms/chap10_pspp.pdf · ไม่เป็นโรคกระเพาะ H 0 is TRUE เป็นจริง Correct decision](https://reader033.fdocuments.in/reader033/viewer/2022052021/603526b62692f87b94710928/html5/thumbnails/59.jpg)
1) [F > FcriticalValue] = true 2) [alpha > p] = true So, Reject H0
![Page 60: Statistics analysis with GNU PSPP161.246.38.75/download/rms/chap10_pspp.pdf · ไม่เป็นโรคกระเพาะ H 0 is TRUE เป็นจริง Correct decision](https://reader033.fdocuments.in/reader033/viewer/2022052021/603526b62692f87b94710928/html5/thumbnails/60.jpg)
Critical Value of F
• http://vassarstats.net/textbook/apx_d.html
• http://www.danielsoper.com/statcalc3/calc.aspx?id=4
![Page 61: Statistics analysis with GNU PSPP161.246.38.75/download/rms/chap10_pspp.pdf · ไม่เป็นโรคกระเพาะ H 0 is TRUE เป็นจริง Correct decision](https://reader033.fdocuments.in/reader033/viewer/2022052021/603526b62692f87b94710928/html5/thumbnails/61.jpg)
Inference
One group (constant)
Two group
Independent group
dependent group
More than two group
Correlation
Qualitative
Quantitative
Factor of dependent
variable
Pearson correlation Spearman correlation
Regression analysis
![Page 62: Statistics analysis with GNU PSPP161.246.38.75/download/rms/chap10_pspp.pdf · ไม่เป็นโรคกระเพาะ H 0 is TRUE เป็นจริง Correct decision](https://reader033.fdocuments.in/reader033/viewer/2022052021/603526b62692f87b94710928/html5/thumbnails/62.jpg)
Reference
• น.ท.หญิง วชัราพร เชยสวุรรณ์, “t-test”, เอกสาร slide, http://www.nmd.go.th/document/ppt/research/t_test2.ppt
• “การวิเคราะห์ข้อมลูทางสถิติเพ่ือการวิจยั ด้วย SPSS”, สาขาวิชาคณิตศาสตร์และเทคโนโลยี ม.เทคโนโลยีราชมงคลสวุรรณภมูิ, เอกสารสอน slide, http://www.rdi.rmutsb.ac.th/2011/download/spss.ppt
• Wipa Sae-Sia, “Analysis of Variance: ANOVA การวิเคราะห์ความแปรปรวณ” เอกสาร slide, http://hsmi.psu.ac.th/upload/forum/anova_ancova.ppt
• ฉตัรศิริ ปิยะพิมลสิทธ์ิ, “ การใช้ SPSS เพ่ือการวิเคราะห์ข้อมลู”, 2548, http://www.watpon.com/spss
• Douglas A. Lind, William G Marchal, Samuel A. Wathen, “Basic Statistics for Business and Economics”, McGraw-Hill international, 2012
![Page 63: Statistics analysis with GNU PSPP161.246.38.75/download/rms/chap10_pspp.pdf · ไม่เป็นโรคกระเพาะ H 0 is TRUE เป็นจริง Correct decision](https://reader033.fdocuments.in/reader033/viewer/2022052021/603526b62692f87b94710928/html5/thumbnails/63.jpg)
Summary
• T-test
• Z-test
• H0
• Ha
• Error type I , II
• Significant level