Download presentation

Presentation is loading. Please wait.

Published byMakayla Sweeney Modified over 4 years ago

1
School of Computing FACULTY OF ENGINEERING MJ11 (COMP1640) Modelling, Analysis & Algorithm Design Vania Dimitrova Lecture 19 Statistical Data Analysis: Hypothesis Checking November 2011

2
In the previous lecture Introduction to Statistical Modelling Types of data Sampling methods Descriptive statistics Normal distribution Correlation between variables Correlation coefficient r Positive, Negative, or No correlation

3
In this lecture Hypothesis testing - introduction Steps Significance How to use significance tables Differences between two groups t-test Man-Whitney U-test

4
Sample Subset of the population; some of the measurements of the characteristics of the population. population sample Measures describing population characteristics PARAMETERS Measures describing sample characteristics STATISTICS Statistics estimate the parameters

5
Hypothesis Statement about: the value of a population parameter (e.g. its mean), or about a particular relationship that may hold between variables (e.g. correlation), or about difference between two populations. Null hypothesis H 0 : (No effect) We aim at rejecting it, which will support its alternative. Alternative hypothesis H 1 : (positive effect) We test H 0 against H 1, if H 0 is rejected, H 1 is accepted

6
Research and Null Hypotheses Operationalise – find parameter to compare (e.g. mean) H 1 (research hypothesis) - H 0 (null hypothesis) - H 1 can be: Two-directional (2-tailed) One-directional (1-tailed)

7
Example Hypotheses Consider the example with the European Area current accounts. Notice the difference between the means. Formulate a hypothesis based on your observation. population sample Hypotheses:

8
Error Sample Population Use the sample to test hypothesis about the population Can we be sure that the result observed in the sample is valid for the whole population, or could this be pure chance? Could it happen that we erroneously reject H 0 ?

9
Statistical significance p-value The probability of an error in accepting the observed result as valid (i.e. the risk of rejecting H 0 when H 0 is valid). We want p to be as small as possible:

10
Hypothesis Testing Procedure Formulate Alternative & Null Hypotheses Decide which sampling method to use Decide what statistical method to use Define Significance level and sample size Find the sampling distribution under the assumption H 0 and obtain the p-value Derive conclusions about H 1

11
What statistical test to use? Parametric Assumptions Dependent variable is continuous Random sample Independence of observations (tricky! – e.g. people working in groups, influences on behaviour) Normal distribution Homogeneity of variance (samples are from populations with equal variance) Non-Parametric Assumptions At least one of the above is violated Powerful tests Limited power tests

12
Statistical tests to compare groups Two groups Multiple Groups t-tests Analysis of variance Paired samples Independent samples the same sample several different samples 1 independent var. 2 independent var. m-independent var.

13
Paired t-test Suppose that a new functionality is introduced to an online banking system. We want to compare whether it improves the customer satisfaction. Suppose parametric assumptions are met H 1 (research hypothesis) - H 0 (null hypothesis) -

14
Paired t-test calculations OldNew 5663 5957 6167 4852 3961 5671 7570 4546 8193 6075 d 7 -2 6 4 22 15 -5 1 12 15 Run the calculations automatically http://www.physics.csbsju.edu/stats/t-test.html

15
Independent (unpaired) t-test Consider A-level students applying to a university. A random sample is obtained including students applying for BA and BSc. The A-level score for each student is calculated. A difference in the means is observed. Test whether the difference is valid for the whole population. Suppose parametric assumptions are met H 1 (research hypothesis) - H 0 (null hypothesis) -

16
Independent (unpaired) t-test calculations Data in unpaired-t-test-example.xls Run the calculations automatically http://www.physics.csbsju.edu/stats/t-test.html Calculations based on a weighted average of the two sample variances and

17
Non-parametric equivalent to t-test Man-Whitney U-test Relaxed assumptions (discrete data) Ranking (ordering) Compares medians Counts how many elements from each sample are before the elements from the other sample Less power but can be helpful Need tables for non-parametric tests

18
Practical task For each of the claims below identify an appropriate sampling method and statistical test that can be used to test the claim assuming that appropriate data is collected and the parametric conditions are satisfied. Formulate the research and null hypotheses. TV advertisement is more powerful than Radio advertisement. Women are more likely to buy computer games than men. Students use social computing sites more often than staff.

19
Summary: Hypothesis checking Hypothesis – null & alternative Comparing two groups T-test (parametric) Man Whitney (non-parametric) Significance level & Degree of Freedom min expected value to reject H 0 Calculation using specific software Online (see links on the slides) Software package, e.g. SPSS or Matlab Decision rejecting H 0 ? Statistical significance?

20
References Rees D.G., Essential Statistics, Chapman & Hall/CRC, 2000. Cohen, L., Holliday, M., Practical Statistics for Students, Chapman, 1996. http://www.statsoft.com/textbook/esc.html

Similar presentations

Presentation is loading. Please wait....

OK

Fundamentals of Hypothesis Testing: One-Sample Tests

Fundamentals of Hypothesis Testing: One-Sample Tests

© 2018 SlidePlayer.com Inc.

All rights reserved.

To make this website work, we log user data and share it with processors. To use this website, you must agree to our Privacy Policy, including cookie policy.

Ads by Google