11/30/04Excel Function ReviewSlide 1 of 20 Review of Excel Functions PubH5414 Biostatistical Method I Section 4 By SoonYoung Jang.

Slides:



Advertisements
Similar presentations
Forecasting Using the Simple Linear Regression Model and Correlation
Advertisements

10-3 Inferences.
Section 9.3 Inferences About Two Means (Independent)
Objectives (BPS chapter 24)
Comparing Two Population Means The Two-Sample T-Test and T-Interval.
Chapter 9: Inferences for Two –Samples
MF-852 Financial Econometrics
Chapter 10 Two-Sample Tests
© 2010 Pearson Prentice Hall. All rights reserved Least Squares Regression Models.
PSY 307 – Statistics for the Behavioral Sciences
BCOR 1020 Business Statistics Lecture 28 – May 1, 2008.
The Simple Regression Model
Chapter Goals After completing this chapter, you should be able to:
Business Statistics: A Decision-Making Approach, 6e © 2005 Prentice-Hall, Inc. Chap 9-1 Introduction to Statistics Chapter 10 Estimation and Hypothesis.
Chapter Topics Types of Regression Models
Hypothesis Tests for Means The context “Statistical significance” Hypothesis tests and confidence intervals The steps Hypothesis Test statistic Distribution.
A Decision-Making Approach
Business Statistics: A Decision-Making Approach, 7e © 2008 Prentice-Hall, Inc. Chap 10-1 Business Statistics: A Decision-Making Approach 7 th Edition Chapter.
© 2000 Prentice-Hall, Inc. Chap Forecasting Using the Simple Linear Regression Model and Correlation.
BCOR 1020 Business Statistics
Review What you have learned in QA 128 Business Statistics I.
5-3 Inference on the Means of Two Populations, Variances Unknown
1 Confidence Intervals for Means. 2 When the sample size n< 30 case1-1. the underlying distribution is normal with known variance case1-2. the underlying.
Basic Business Statistics, 10e © 2006 Prentice-Hall, Inc. Chap 10-1 Chapter 10 Two-Sample Tests Basic Business Statistics 10 th Edition.
Introduction to Linear Regression and Correlation Analysis
Inference for regression - Simple linear regression
Two Sample Tests Ho Ho Ha Ha TEST FOR EQUAL VARIANCES
1/2555 สมศักดิ์ ศิวดำรงพงศ์
Means Tests Hypothesis Testing Assumptions Testing (Normality)
Chapter 9 Hypothesis Testing and Estimation for Two Population Parameters.
Section 9.2 Testing the Mean  9.2 / 1. Testing the Mean  When  is Known Let x be the appropriate random variable. Obtain a simple random sample (of.
Chapter 10 Two-Sample Tests and One-Way ANOVA
Week 111 Power of the t-test - Example In a metropolitan area, the concentration of cadmium (Cd) in leaf lettuce was measured in 7 representative gardens.
1 Objective Compare of two matched-paired means using two samples from each population. Hypothesis Tests and Confidence Intervals of two dependent means.
OPIM 303-Lecture #8 Jose M. Cruz Assistant Professor.
Pengujian Hipotesis Dua Populasi By. Nurvita Arumsari, Ssi, MSi.
A Course In Business Statistics 4th © 2006 Prentice-Hall, Inc. Chap 9-1 A Course In Business Statistics 4 th Edition Chapter 9 Estimation and Hypothesis.
Chap 9-1 Two-Sample Tests. Chap 9-2 Two Sample Tests Population Means, Independent Samples Means, Related Samples Population Variances Group 1 vs. independent.
Lecture 8 Simple Linear Regression (cont.). Section Objectives: Statistical model for linear regression Data for simple linear regression Estimation.
Inference for Regression Simple Linear Regression IPS Chapter 10.1 © 2009 W.H. Freeman and Company.
1 Chapter 9 Inferences from Two Samples 9.2 Inferences About Two Proportions 9.3 Inferences About Two Means (Independent) 9.4 Inferences About Two Means.
Section 9-1: Inference for Slope and Correlation Section 9-3: Confidence and Prediction Intervals Visit the Maths Study Centre.
Inferential Statistics. Coin Flip How many heads in a row would it take to convince you the coin is unfair? 1? 10?
Applied Quantitative Analysis and Practices LECTURE#25 By Dr. Osman Sadiq Paracha.
Math 4030 – 9b Comparing Two Means 1 Dependent and independent samples Comparing two means.
6.1 - One Sample One Sample  Mean μ, Variance σ 2, Proportion π Two Samples Two Samples  Means, Variances, Proportions μ 1 vs. μ 2.
1 Objective Compare of two matched-paired means using two samples from each population. Hypothesis Tests and Confidence Intervals of two dependent means.
Business Statistics, 4e, by Ken Black. © 2003 John Wiley & Sons Business Statistics, 4e by Ken Black Chapter 10 Statistical Inferences about Two.
Comparing Sample Means
AP Statistics. Chap 13-1 Chapter 13 Estimation and Hypothesis Testing for Two Population Parameters.
Homework and project proposal due next Thursday. Please read chapter 10 too…
Statistics for Managers Using Microsoft Excel, 5e © 2008 Prentice-Hall, Inc.Chap 10-1 Statistics for Managers Using Microsoft® Excel 5th Edition Chapter.
ENGR 610 Applied Statistics Fall Week 7 Marshall University CITE Jack Smith.
Lecture 8 Estimation and Hypothesis Testing for Two Population Parameters.
Review of BUSA3322 Mary M. Whiteside. Methodologies Two sample tests Analysis of variance Chi square tests Simple regression Multiple regression Time.
1 Design and Analysis of Experiments (2) Basic Statistics Kyung-Ho Park.
Chapter 14 Single-Population Estimation. Population Statistics Population Statistics:  , usually unknown Using Sample Statistics to estimate population.
Chapter 11: Linear Regression E370, Spring From Simple Regression to Multiple Regression.
Review of Hypothesis Testing: –see Figures 7.3 & 7.4 on page 239 for an important issue in testing the hypothesis that  =20. There are two types of error.
Hypothesis Testing – Two Means(Small, Independent Samples)
Chapter 10 Two-Sample Tests and One-Way ANOVA.
Estimation & Hypothesis Testing for Two Population Parameters
Math 4030 – 10a Tests for Population Mean(s)
Chapter 11 Hypothesis Testing II
Inferences on Two Samples Summary
PENGOLAHAN DAN PENYAJIAN
When You See (This), You Think (That)
Comparing the Means of Two Dependent Populations
Inference for Distributions
Presentation transcript:

11/30/04Excel Function ReviewSlide 1 of 20 Review of Excel Functions PubH5414 Biostatistical Method I Section 4 By SoonYoung Jang

11/30/04Excel Function ReviewSlide 2 of 20 Measure of Location Mean(unit) = average(data range) Median(unit) = median(data range) or = quartile(data range, 0.5) Mode(unit) = mode(data range) To get Geometric Mean 1. lnx = ln(x) /* transform */ 2. geoMean(unit) = exp(average(data range of lnx))

11/30/04Excel Function ReviewSlide 3 of 20 Measure of Spread Variance (unit 2) = var(data range) Std.Dev. (unit) = stdev(data range) or = sqrt(variance) range = max(data range) – min(data range) n = count(data range) Coefficient of Variation (CV %) = stdev(data range) / average(data range) * 100

11/30/04Excel Function ReviewSlide 4 of 20 Confidence Interval of Mean known σ Assume  =0.05, xbar = average(data) Std.Err(se) = σ / sqrt(n) critical value/coefficient at lower/upper cL = normsinv(α / 2) = - cU cU = norminv(1- α / 2) (1-  )% confidence interval: xbar ± cU*se

11/30/04Excel Function ReviewSlide 5 of 20 Another way to construct CI for normal distribution Lower(unit) = norminv(0.025, xbar, se) Upper(unit)= norminv(0.975, xbar, se)

11/30/04Excel Function ReviewSlide 6 of 20 Confidence Interval of Mean unknown σ, large sample Assume =0.05, xbar = average(x) seHat = stdev(data) / sqrt(count(data)) critical valus (coefficients) cL = normsinv(/2, xbar, seHat) = - cU cU = normsinv(1- /2, xbar, seHat) (1- )% confidence interval: xbar ± cU*seHat

11/30/04Excel Function ReviewSlide 7 of 20 Assume =0.05, xbar=average(x) seHat = stdev(data) / sqrt(count(data)) df = n – 1 critical value (coefficient) c = tinv(,df) (1- )% confidence interval: xbar ± c*seHat Confidence Interval of Mean unknown σ, small sample

11/30/04Excel Function ReviewSlide 8 of 20 Confidence Interval of Geometric Mean Assume =0.05 Transform : lnx = ln(x), unknown σ xbar = average(data of lnx) seHat = stdev(data of lnx) / sqrt(n) Same as before, get critical values of cL, cU (1- )% confidence interval: 1.exp(xbar ± cU*seHat) 2.exp(xbar) * exp(± cU*seHat)

11/30/04Excel Function ReviewSlide 9 of 20 Test of Mean unknown σ, large sample Assume =0.05 Specify H0 and H1 e.g.) H0: mu = 30 1.Two-Sided (≠) 2.One-Sided Test( ) se = stdev(data) / sqrt(n) Test Statistics z = (xbar – 30) / se

11/30/04Excel Function ReviewSlide 10 of 20 Test of Mean with known σ or large sample Pvalue 1.Method 1  2 * (1 – normsdist(abs(z))) if two-sided  1 – normsdist(z) if H1: mu > 30  normsdist(z) if H1: mu < 30 2.Method 2  2 * (1 – normdist(abs(xbar), 30, se, TRUE))) if two-sided  1 – normdist(xbar, 30, se, TRUE) if H1: mu > 30  normdist(xbar, 30, se, TRUE) if H1: mu < 30

11/30/04Excel Function ReviewSlide 11 of 20 Test of Mean Conclusion Reject the null hypothesis 1.Using critical values –xbar < norminv(1-α/2, 30, se) if two-sided test –xbar 30 –xbar < norminv(α, 30, se) if H1: μ < 30 2.Using pvalues pvalue < α for all types of alternative hypotheses

11/30/04Excel Function ReviewSlide 12 of 20 Test of Mean unknown σ, small sample Assume =0.05 Specify H0 and H1 (e.g.)H0: mu = 30 se = stdev(data) / sqrt(n) Test Statistics: t = (xbar – 30) / se with df = n-1 Pvalue = tdist(abs(t), df, 2) if two-sided Pvalue = tdist(abs(t), df, 1) if one-sided Conclusion: Reject H0 if t < tinv(α /2, df) when two-sided if t < tinv(α,df) when one-sided OR pvalue < α

11/30/04Excel Function ReviewSlide 13 of 20 Two Sample Comparison Pair-Mathed Data Assume =0.05 Specify H0 and H1 (e.g) H0: μDiff = 0 Transform diff = x1 – x2 xbar = average(data range of diff); se = stdev(data range of diff) / sqrt(n) Test Statistics: t = (xbar – 30) / se with df = n-1 Pvalue = tdist(abs(t), df, 2) if two-sided Pvalue = tdist(abs(t), df, 1) if one-sided  If large sample, use z statistics

11/30/04Excel Function ReviewSlide 14 of 20 Two Sample Comparison Independent Data Assume =0.05, Equal Variance (σ 2 1 = σ 2 2 ) Specify H0 and H1 (e.g.) H0: mu1 = mu2 Two-Sided or One-Sided Test( ) Unknown σ, small sample pooled_var = ((n 1 -1)*var(x 1 ’s) + (n 2 -1)*var(x 2 ’s))/(n 1 + n 2 -2) se = sqrt(pooled_var*(1/n 1 + 1/n 2 )) Test Statistics t = (xbar 1 – xbar 2 ) / se with df = n 1 + n Pvalue = tdist(abs(t), df, 2) if two-sided Pvalue = tdist(abs(t), df, 1) if one-sided  If large sample, use z statistics

11/30/04Excel Function ReviewSlide 15 of 20 Confidence Interval of Proportion Assume =0.05 = x / n se = sqrt( * (1 - ) / n) Critical value at lower/upper cL = normsinv(α/2,, se) = - cU cU = normsinv(1- α/2,, se) (1- )% confidence interval: [ + cL*se, + cU*se]

11/30/04Excel Function ReviewSlide 16 of 20 Test of Proportion Assume =0.05 Specify Hypotheses H0: π = p 0 (p 0 is some constant for example, 0.5) two-sided or one-sided ( ) = x / n, se = sqrt(p 0 *(1-p 0 )/n) Test Statistics z = ( – p 0 ) / se Get Pvalue for two-sided test pvalue = 2*(1-normsdist(abs(z))) or pvalue = 2*(1-normsdist(, p 0, se,TRUE))  for one-sided test, refer test of mean

11/30/04Excel Function ReviewSlide 17 of 20 Proportion Comparison with pair-matched data Assume =0.05 Specify Hypotheses : H 0 and H a H0: X and Y are not associated (independent) H1: X and Y are associated. Given 2*2 table YESNOtotal YESabr1 NOcdr2 totalc1c2n

11/30/04Excel Function ReviewSlide 18 of 20 Test Statistics z = (b-c) / sqrt(b+c) or χ 2 = z^2 Pvalue = 2 * (1 - normsdist(abs(z))) Pvalue = chidist(x 2, 1) Conclusion : as before  Final conclusion must be written in the given scientific context Proportion Comparison with pair-matched data

11/30/04Excel Function ReviewSlide 19 of 20 Proportion Comparison with two Independent samples Assume =0.05 Specify H 0 and H 1 (e.g) H 0 : π 1 = π 2 Two-Sided or One-Sided Test( ) p 1 = x 1 / n 1 p 2 = x 2 / n 2 Pooled Proportion under H 0 p = (x 1 +x 2 ) / (n 1 +n 2 ) se = sqrt(p*(1-p)*(1/n 1 +1/n 2 )) Test Statistics 1. z = (p 1 – p 2 ) / se 2. χ 2 = n*(bc-ad)^2 / (r 1 *r 2 *c 1 *c 2 ) if two-sided with given 2*2 table Compute Pvalue using the function normsdist(z) or normsdist(p 1 - p 2, 0, se, TRUE) chidist(x 2, 1)

11/30/04Excel Function ReviewSlide 20 of 20 Linear Relationship between two variables Correlation coefficient r = correl(xrange, yrange) Coefficient of determination R 2 = r^2 Test of linear relationship H 0 : ρ = 0 vs. H 1 : ρ ≠ 0 se = sqrt((1 – R 2 ) / (n – 2)) Test Statistics t = r / se with df = n-2 Pvalue = tdist(t, df, 2)  Micellaneous b 0 = intercept(yrange, xrange) b 1 = slope(yrange, xrange) predicted value = b 0 + b 1 * x