LAB 2. HYPOTHESIS TESTING IN THE BIOLOGICAL SCIENCES- Part 2

Similar documents
T.I.H.E. IT 233 Statistics and Probability: Sem. 1: 2013 ESTIMATION AND HYPOTHESIS TESTING OF TWO POPULATIONS

Review: General Approach to Hypothesis Testing. 1. Define the research question and formulate the appropriate null and alternative hypotheses.

How do we compare the relative performance among competing models?

Design of Engineering Experiments Part 2 Basic Statistical Concepts Simple comparative experiments

Testing Research and Statistical Hypotheses

Stats Review Chapter 14. Mary Stangler Center for Academic Success Revised 8/16

Visual interpretation with normal approximation

4.1 Hypothesis Testing

Chapter 23: Inferences About Means

Using SPSS for One Way Analysis of Variance

Analysis of Variance (ANOVA)

Note: k = the # of conditions n = # of data points in a condition N = total # of data points

CBA4 is live in practice mode this week exam mode from Saturday!

Data Mining. Chapter 5. Credibility: Evaluating What s Been Learned

Chem 321 Lecture 5 - Experimental Errors and Statistics 9/10/13

Multiple Regression Analysis

Y11MST Short Test (Statistical Applications)

The Chi-Square Distributions

We need to define some concepts that are used in experiments.

The Chi-Square Distributions

HYPOTHESIS TESTING. Hypothesis Testing

Slides for Data Mining by I. H. Witten and E. Frank

The Purpose of Hypothesis Testing

Power of a hypothesis test

Two-Sample Inferential Statistics

Section 9.1 (Part 2) (pp ) Type I and Type II Errors

Lecture 5: Clustering, Linear Regression

Descriptive Statistics

LECTURE 5. Introduction to Econometrics. Hypothesis testing

Summary: the confidence interval for the mean (σ 2 known) with gaussian assumption

Statistics 224 Solution key to EXAM 2 FALL 2007 Friday 11/2/07 Professor Michael Iltis (Lecture 2)

Lecture 30. DATA 8 Summer Regression Inference

Hypothesis Testing One Sample Tests

Hypothesis Tests and Estimation for Population Variances. Copyright 2014 Pearson Education, Inc.

Statistical Inference for Means

Lecture 5: Clustering, Linear Regression

LOOKING FOR RELATIONSHIPS

Universität Potsdam Institut für Informatik Lehrstuhl Maschinelles Lernen. Hypothesis testing. Anna Wegloop Niels Landwehr/Tobias Scheffer

INTERVAL ESTIMATION AND HYPOTHESES TESTING

Atoms, Molecules, and the Mole

Study Ch. 9.3, #47 53 (45 51), 55 61, (55 59)

Background to Statistics

Statistics Primer. ORC Staff: Jayme Palka Peter Boedeker Marcus Fagan Trey Dejong

Multiple comparisons - subsequent inferences for two-way ANOVA

ME3620. Theory of Engineering Experimentation. Spring Chapter IV. Decision Making for a Single Sample. Chapter IV

One-way ANOVA. Experimental Design. One-way ANOVA

You may not use your books/notes on this exam. You may use calculator.

Single Sample Means. SOCY601 Alan Neustadtl

Analysis of variance (ANOVA) Comparing the means of more than two groups

General Certificate of Education Advanced Level Examination June 2014

1 Matched pair comparison(p430-)

10.4 Hypothesis Testing: Two Independent Samples Proportion

Chapter 7 Comparison of two independent samples

Section 9.4. Notation. Requirements. Definition. Inferences About Two Means (Matched Pairs) Examples

CHAPTER 9: HYPOTHESIS TESTING

PSY 305. Module 3. Page Title. Introduction to Hypothesis Testing Z-tests. Five steps in hypothesis testing

POLI 443 Applied Political Research

THE ROYAL STATISTICAL SOCIETY 2015 EXAMINATIONS SOLUTIONS HIGHER CERTIFICATE MODULE 3

Two sample Test. Paired Data : Δ = 0. Lecture 3: Comparison of Means. d s d where is the sample average of the differences and is the

CH.9 Tests of Hypotheses for a Single Sample

Stat 529 (Winter 2011) Experimental Design for the Two-Sample Problem. Motivation: Designing a new silver coins experiment

An inferential procedure to use sample data to understand a population Procedures

Solutions to Practice Test 2 Math 4753 Summer 2005

9-7: THE POWER OF A TEST

One-Way Analysis of Variance (ANOVA) Paul K. Strode, Ph.D.

Chapter 5 Confidence Intervals

LECTURE 6. Introduction to Econometrics. Hypothesis testing & Goodness of fit

M(t) = 1 t. (1 t), 6 M (0) = 20 P (95. X i 110) i=1

Answer keys for Assignment 10: Measurement of study variables (The correct answer is underlined in bold text)

Statistical Analysis How do we know if it works? Group workbook: Cartoon from XKCD.com. Subscribe!

AMS7: WEEK 7. CLASS 1. More on Hypothesis Testing Monday May 11th, 2015

STAT Chapter 11: Regression

Let the x-axis have the following intervals:

Bayesian Inference for Normal Mean

1. How will an increase in the sample size affect the width of the confidence interval?

Data Analysis and Statistical Methods Statistics 651

Question. Hypothesis testing. Example. Answer: hypothesis. Test: true or not? Question. Average is not the mean! μ average. Random deviation or not?

Inference for Regression Simple Linear Regression

20.0 Experimental Design

Chapter 22. Comparing Two Proportions 1 /29

Chapter 12: Estimation

SIMPLE REGRESSION ANALYSIS. Business Statistics

Chapter 23. Inference About Means

CHAPTER 9, 10. Similar to a courtroom trial. In trying a person for a crime, the jury needs to decide between one of two possibilities:

Preliminary Statistics Lecture 5: Hypothesis Testing (Outline)

Sampling distribution of t. 2. Sampling distribution of t. 3. Example: Gas mileage investigation. II. Inferential Statistics (8) t =

Chapter 7: Hypothesis Testing

Chapter 24. Comparing Means. Copyright 2010 Pearson Education, Inc.

Machine Learning: Evaluation

Understanding p Values

The t-test: A z-score for a sample mean tells us where in the distribution the particular mean lies

Nonparametric tests. Mark Muldoon School of Mathematics, University of Manchester. Mark Muldoon, November 8, 2005 Nonparametric tests - p.

1 Statistical inference for a population mean

CIVL /8904 T R A F F I C F L O W T H E O R Y L E C T U R E - 8

CHAPTER 10 Comparing Two Populations or Groups

CHAPTER 10 Comparing Two Populations or Groups

Chi square test of independence

Biostatistics and Design of Experiments Prof. Mukesh Doble Department of Biotechnology Indian Institute of Technology, Madras. Lecture 11 t- Tests

7.2 One-Sample Correlation ( = a) Introduction. Correlation analysis measures the strength and direction of association between

STAT 515 fa 2016 Lec Statistical inference - hypothesis testing

Transcription:

LAB 2. HYPOTHESIS TESTING IN THE BIOLOGICAL SCIENCES- Part 2 Data Analysis: The mean egg masses (g) of the two different types of eggs may be exactly the same, in which case you may be tempted to accept your null hypothesis. It is more likely, however, that the two sample means will differ by some amount. Are the means different enough to enable you to reject your null hypothesis? Remember, the null hypothesis is there is no difference in the average mass in grams between the two different types of eggs. Your sample means are really only estimates of the true mean of egg masses (g) of the two different types of eggs that you chose to compare. Although you have a total of 12 observations, your samples are still small relative to the total number of eggs sold in stores across the state. In order to test your hypothesis, you must have some basis for deciding whether or not the difference between the two sample means could have arisen simply by chance when, in fact, there is no real difference in the average egg mass (g) of the two different types. In other words, before you can compare them, you need to know how accurately your sample means represent the true means. The accuracy of any sample mean is related to: 1) the amount of variation in the data that were collected; and 2) the number of observations (n). The sample variance (s 2 ) is a statistic that describes the variation within the sample on the basis of the deviations of individual observations from the mean. The sample variance is equal to the sum of the squared deviations of individual observations (x) from their sample mean ( - x - ), divided by one less than the total number of observations (n): s 2 = ( - x - x) 2 n 1 t-test for comparison of sample means The two sample variances (s 2 1 and s 2 2) may be combined and used in a test of difference between the sample means, the so-called t-test. Here, the difference between the sample means is compared to the standard error of the difference (s x1 - x2 ). (s x1 - x2 ) = ( (n 1 1) s 2 1 + (n 2 1) s 2 2) ( 1 + 1 ) n 1 + n 2-2 n 1 n 2 Using the standard error of the difference (s x1 - x2 ), it is possible to calculated a t- calculated (t calc ) value. The t calc value is compared to the tabled critical value (t table value), (Table 1) with 0.05 probability (95% confidence level) and n 1 + n 2-2 degrees of freedom. t calc = - x - 1 - - x - 2 s x1 - x2

The t table value is obtained from a table of critical values of the t distribution (Table 1) for the desired probability of confidence level and n 1 degrees of freedom. The statistical concept of degrees of freedom refers to the number of items that can vary independently. Once these n -1 observations are determined, the last observation is automatically set because it must be equal to the observed sample mean. The level of confidence refers to the desired probability, selected by the investigator (you), that the true mean will be included in the calculated limits. If t calc < t table, then accept the null hypothesis, (in other words, there is no statistically significant difference between the means). If t calc > t table, then reject your null hypothesis, (in other words, there is a statistically significant difference between the means). We will utilize these statistical concepts to test the null hypothesis that the difference between the calculated mean egg masses in grams is no greater than expected for two different types of eggs.

Steps for statistical analysis: Step 1. Calculate the sample variance (s 2 ) for Group 1 (s 2 1) and Group 2 (s 2 2) using example from Table 1., Hypothesis Testing Lab, part 1. s 2 = ( - x - x) 2 (Equation 1) n 1 Group 1 = large white eggs Mass Average egg mass (x 1 ) ( - x - 1) ( - x - 1 - x 1 ) ( - x - 1 - x 1 ) 2 53.65 56.38 2.73 7.4529 56.60 56.38-0.22 0.0484 60.54 56.38-4.16 17.3056 57.21 56.38-0.83 0.6889 56.53 56.38-0.15 0.0225 57.74 56.38-1.36 1.8496 53.55 56.38 2.83 8.0089 56.35 56.38 0.03 0.0009 58.56 56.38-2.18 4.7524 56.81 56.38-0.43 0.1849 54.69 56.38 1.69 2.8561 54.28 56.38 2.10 4.4100 Group 2 = extra-large white eggs s 2 1 = ( - x - 1 - x 1 ) 2 = 4.3256 n-1 Mass Average egg mass (x 2 ) ( - x - 2) ( - x - 2 x 2 ) ( - x - 2 x 2 ) 2 63.22 64.90 1.68 2.8224 64.25 64.90 0.65 0.4225 65.20 64.90-0.30 0.0900 64.52 64.90 0.38 0.1444 64.85 64.90 0.05 0.0025 62.56 64.90 2.34 5.4756 67.30 64.90-2.40 5.7600 60.42 64.90 4.48 20.0704 69.23 64.90-4.33 18.7489 66.25 64.90-1.35 1.8225 63.19 64.90 1.71 2.9241 67.83 64.90-2.93 8.5849 s 2 2 = ( - x - 2 x 2 ) 2 = 6.0789 n-1

t-test for comparison of sample means The two sample variances may be combined and used in a test of difference between the sample means, the so-called t-test. Here, the difference between the sample means is compared to the standard error of the difference (s x1 - x2 ). Step 2. Calculate the standard error of the difference according to the following formula: (s x1 - x2 ) = ( (n 1 1) s 2 1 + (n 2 1) s 2 2) ( 1 + 1 ) n 1 + n 2-2 n 1 n 2 Where: x 1, s 2 1, n 1 = values for Group 1 (large white eggs) x 2, s 2 2, n 2 = values for Group 2 (extra large white eggs) (s x1 - x2 ) = (11 (4.3256) + 11 (6.0789) ) ( 1 + 1 ) = 0.9311 12 + 12 2 12 12 Step 3. Calculate a t value by the formula: t calc = - x - 1 - - x - 2 s x1 - x2 t calc = 56.38 64.90 = 9.150 0.9311 Step 4. Compare the absolute value of calculated t value to the tabled critical value (Table 1) with 0.05 probability (95% confidence level) and n 1 + n 2-2 degrees of freedom. t table (0.95; 22) = 2.074 (from Table 1) t calc = 9.150 In this example, t calc > t table, 9.150 > 2.074

Step 5. If t calc < t table, then accept the null hypothesis, (in other words, there is no statistically significant difference between the means). Conclusion: There is no statistically significant difference in the average mass in grams between large white chicken eggs and extra-large white chicken eggs. If t calc > t table, then reject your null hypothesis, (in other words, there is a statistically significant difference between the means). Conclusion: There is a statistically significant difference in the average mass in grams between large white chicken eggs and extra-large white chicken eggs.