# Introduction to Statistics for Computer Science Projects

Save this PDF as:

Size: px
Start display at page:

## Transcription

1 Introduction Introduction to Statistics for Computer Science Projects Peter Coxhead Whole modules are devoted to statistics and related topics in many degree programmes, so in this short session all I aim to do is to introduce some key ideas and concepts. You will need to follow up on any that are relevant to your project. Variability Statistics is primarily a collection of techniques to deal with variability. Variability arises in two main ways: measurement errors and intrinsic variation. Suppose we want to know the value of some fixed quantity which can be determined precisely. An example might be the number of lines of code in a particular program. Provided that we can count every line exactly, statistical analysis is irrelevant. More commonly, there will be measurement errors. These are more usual in measuring physical quantities. For example, we might want to measure the speed of transmission of given set of data under fixed conditions where the rate will not vary. Although we can count the data size exactly, there will always be errors, however small, in measuring the time. Usually, there will be both measurement errors and intrinsic variability. For example, we may want to know the run time of an algorithm solving a given problem. The time cannot be measured exactly, but more importantly, the run time will vary because of varying loads on the processor (e.g. from the operating system) and for some languages (e.g. Java) because of the need for periodic garbage collecting if memory runs short. A variable or variate is a quantity whose value varies for whatever reason. Statistical techniques are designed to allow us both to describe this variation and to draw some conclusions in spite of it. Descriptive Statistics Given a set of values for some variable, we want to be able to describe these to other people, in some more meaningful way than just listing the raw data. For example, I converted a Java library for matrix manipulation into JavaScript, and was interested in the time behaviour of some of the functions. In one test, I generated 100 random matrices of size 70 x 60 and used the JavaScript Date object to time the calculation of the pseudo-inverse of each matrix in milliseconds. How should I describe this data? I could just list the 100 values: 318, 314, 315, 315, 313, 314, 315, 314, 314, 315, 313, 313, 315, 313, 314, 315, 314, 314, 315, 316, 315, 315, 314, 314, 314, 314, 314, 315, 314, 314, 316, 315, 314, 314, 315, 315, 316, 315, 313, 314, 313, 314, 314, 313, 313, 313, 315, 313, 312, 312, 313, 316, 313, 315, 315, 315, 313, 313, 312, 314, 314, 313, 313, 315, 314, 314, 315, 314, 314, 315, 313, 313, 314, 312, 312, 316, 314, 315, 315, 315, 315, 315, 314, 314, 313, 314, 314, 315, 313, 315, 316, 314, 315, 314, 323, 314, 314, 315, 314, 310. More useful is to look at the distribution. This shows the relative number of occurrences of each value. (Microsoft Excel can be used to do a lot of simple statistical processing; in this case I used a pivot table.)

2 Page 2 (20/7/11) Time in ms No. of occurrences The first point you should notice is that the distribution is not symmetrical. Although most of the values are clustered into the range, there is an odd outlier at 323. To understand a distribution like this, we really need more data. I repeated the test with 1000 random matrices. A histogram of the resulting data is shown below. This shape is classic for the run times of complex algorithms on random data. There is a nonzero lower bound (in this case 312 ms, although one run took 310 ms in the earlier test). The worst case performance will be many times the value of the lower bound, but may not be found in random trials. Often small sample sizes will seriously underestimate the possible worst case performances. Always ensure that you understand the distribution of the variables you are dealing with. Summary Measures The distribution contains the maximum information about a variable. However, we usually want to reduce it to some more easily grasped numbers. Measure of central tendency is the statistician s term for what is often loosely called the average. There are three commonly used measures, whose values will differ for a skewed distribution like the one shown above.

3 Page 3 (20/7/11) The mode is the most common value. Its value is 318 in the test of 1000 runs. Because it uses only one piece of information the value which has the highest peak in the distribution it tends to be relatively variable from one set of data to another. The median is the value which has half the values at or below it and half at or above it. Here its value is the same as the mode (which is not always the case): 318 ms for the 1000-run test. It uses more information than the mode, but takes no account of the actual size of the values, only their ordering. The mean is the ordinary arithmetic average: the sum of the values divided by the number of values. Here the value is ms (to three decimal places) for the 1000-run test. The mean will be larger than the median when the distribution is positively skewed (with a tail to the high end) and smaller than the median when the distribution is negatively skewed (with a tail to the low end). It makes the most use of the information, but the impact of skew must be remembered. (The difference between median earnings and mean earnings offers a good example.) The most common measure of spread the deviation from the centre or the variance about the centre is based on the mean (although there are measures based on the median). The variance is defined as the average of all the squared differences between each value and the mean. The standard deviation is the square root of the variance. Squares are used to remove negative values (and because they make formal analysis much easier). For the 1000-run test, the standard deviation is (to three decimal places). The standard deviation is not easy to interpret (because of the squaring and square rooting). Very roughly, it s the average difference between a value and the mean (but the squaring weights it more towards higher differences). So we expect that on average values will be about 10 away from the mean of 320 (rounding to whole numbers). For a particular kind of symmetrical distribution, called the normal distribution, about 95% of the values should lie in the range (mean ± 2 * the standard deviation). (Strictly the 2 should be 1.96, but the difference rarely matters.) Here (rounding to 1 decimal place), the range would be ± 21.0, i.e to Since the data consists of integers, the actual range calculated in this way is 299 to 340. It s clear that this range is misleading because of the skew, since the lowest value observed was 312. In fact, 97% of the values lie in this range: the small ones that would be outside the range if the distribution was actually normal are missing. Standard Error and Significant Figures in Reports Earlier, I gave the mean as ms. You should have thought that this was a silly thing to do! Why? Because it s spuriously accurate. If I repeated the test with another 1000 random matrices, I wouldn t expect to get the same mean. What would I expect? If the distribution of the values were normal (a particular shape of symmetrical distribution), then I can make an estimate of the variability of the mean between successive sets of data. Note that this is not the same as the variability of the data values about the mean. The standard error of the mean is the expected standard deviation of the mean between repeats of the whole data sampling exercise. It s calculated as the standard deviation of the data values divided by the square root of the sample size. Here the standard error is / 1000 = What this means is that, only approximately because the distribution is skewed and hence clearly not normal, if we repeated the test with 1000 random matrices with all other conditions being the same, we would expect roughly 95% of the means to be in the range ± 2 * = to This is called the 95% confidence range for the mean. What this makes clear is that it s silly here to quote the mean more accurately than to 1 decimal place (dp), given that the approximate 95% confidence range is ± 0.6.

4 Page 4 (20/7/11) Always take the standard error into account when quoting summary statistics. Quoting a silly number of decimal places/significant figures is a sure indicator of statistical illiteracy. Exercise Suppose we had observed the same mean, ms, and the same standard deviation, ms, but with only a sample size of 100 random matrices. How should we report the mean? Evidence shows that most people find numbers with more than 3 digits hard to grasp, so even if the standard error is small, because of a large sample size, think carefully about how to report your data. For example, it s almost never worth reporting percentages to more than whole numbers: is there any meaningful difference between 56% and 56.4%? Significance Testing Suppose I want to compare two algorithms for finding the pseudo-inverse of random matrices. In the simplest approach, I could collect two sets of data, say 100 random matrices run with the first algorithm and then a different 100 random matrices run with the second algorithm. Here are some results I obtained, with and without a minor tweak to a standard algorithm. N Mean S.d. Algorithm Algorithm Is Algorithm 2 really better than Algorithm 1? To answer this we use an apparently roundabout logic. Assume that the algorithms would not produce different averages if each were applied to the entire population, i.e. all possible random matrices of the relevant size. Under this assumption, calculate the probability of a difference as large as or larger than that observed having occurred by chance. This calculation will require various other assumptions to be made about the nature of the data, its distribution, etc. The full set of assumptions forms the null hypothesis. If the probability of the observations given the null hypothesis is lower than some threshold figure, decide that it s too improbable to have occurred by chance, so reject the null hypothesis. Such a result is said to be statistically significant. It s important not to confuse this specialized use of the word significant with its normal use: see below. There are literally thousands of different statistical tests, i.e. ways of calculating the probability of a set of observations assuming some null hypothesis is true. Even for a simple set of data, such as that used here, there are many possible ways of trying to calculate the required probability. If in doubt, always consult an expert as to which statistical test to use (but expect different answers from different experts!). One possibility here is to apply a t-test. An argument against is that it assumes normal distributions, but we know that they are actually skewed. On the other hand, the t-test is known to be robust, i.e. it s unlikely to wrongly declare a result to be significant even if the distributions are somewhat skewed. Microsoft Excel will perform the calculation of the probability (I chose the options: 2- tailed, 1 two samples, equal variance). The value for the data above is p = 0.021, i.e. 2.1%. Thus if (and it s a crucial if) all the assumptions made in the null hypothesis are true, the chances of observing a difference as large as or larger than the one seen here (311.2 ms vs ms) are only 2.1%. 1 Unless you are a statistical expert, 2-tailed is always the right choice.

5 Page 5 (20/7/11) Conventionally, if the probability is less than 1% (the 1% significance level ), we reject the null hypothesis. If the probability is less than 5%, we may reject the null hypothesis, but should treat our conclusion as somewhat tentative. So it looks as if Algorithm 2 is indeed better than Algorithm 1, but not as certainly as we would like. An alternative statistical test for a difference in two distributions (not specifically a difference in the means) which can be applied in this case is the Mann-Whitney U. This makes no assumptions about the form of the distribution. Excel doesn t do this test, but can be used to prepare the necessary data for it; alternatively there are some online web pages which will do it all for you. For the data discussed above, I obtained a value of p = 1.2 x 10-5 (2-tailed), i.e. according to this test, if the distributions of run times is in fact the same for each algorithm when applied to the entire population of random matrices, the probability of the observed data being as or more different is about %. This is so unlikely that we can conclude that the algorithms are indeed different. Independent Samples vs Repeated Measures There s another way I could try to determine whether the two algorithms are different when applied to all possible random matrices (of the relevant size). I could generate say 100 random matrices and apply each algorithm to each of the 100 matrices. There are different ways of describing the two approaches (i.e. using a new random matrix for each run of either algorithm or using the same random matrix twice, once for each algorithm). Commonly the first is called independent samples and the second repeated measures. In principle, wherever repeated measures designs can be used, they should, since they remove one source of random differences. I rewrote my program to use the two algorithms in turn on the same set of random matrices. The results were as below. N Mean S.d. Algorithm Algorithm If we incorrectly apply the independent samples t-test, we obtain p = 0.014, i.e. the result is significant at the 5% level but not at the 1% level. If we correctly apply the repeated measures t-test, we obtain p = 5.6 x 10-7, i.e. the result is highly implausible, well beyond the 1% significance level. Since the normal distribution assumption is violated, we might try the repeated measures version of the Mann-Whitney test, usually called the Wilcoxon sign test. This yields p = 1.2 x So, either way we can be apparently be pretty sure that there is a real difference between the two algorithms. Notice that if you incorrectly apply an independent samples test to repeated measures data, almost always the result will be that the calculated significance level will be too high, i.e. less likely to be statistically significant. The opposite is more complicated, since to apply a repeated measures test to independent samples data, you first have to artificially pair up the values, and the result depends on how this is done. Always use the correct test independent samples or repeated measures for the design you have used. Statistical Significance vs Real Significance (Size of Effect) It s important to understand that the statistical significance of a difference depends on several factors: the size of the difference the sample size(s) the power of the test applied.

### CALCULATIONS & STATISTICS

CALCULATIONS & STATISTICS CALCULATION OF SCORES Conversion of 1-5 scale to 0-100 scores When you look at your report, you will notice that the scores are reported on a 0-100 scale, even though respondents

### How to Conduct a Hypothesis Test

How to Conduct a Hypothesis Test The idea of hypothesis testing is relatively straightforward. In various studies we observe certain events. We must ask, is the event due to chance alone, or is there some

### Dr. Peter Tröger Hasso Plattner Institute, University of Potsdam. Software Profiling Seminar, Statistics 101

Dr. Peter Tröger Hasso Plattner Institute, University of Potsdam Software Profiling Seminar, 2013 Statistics 101 Descriptive Statistics Population Object Object Object Sample numerical description Object

### Week 4: Standard Error and Confidence Intervals

Health Sciences M.Sc. Programme Applied Biostatistics Week 4: Standard Error and Confidence Intervals Sampling Most research data come from subjects we think of as samples drawn from a larger population.

### Inferential Statistics

Inferential Statistics Sampling and the normal distribution Z-scores Confidence levels and intervals Hypothesis testing Commonly used statistical methods Inferential Statistics Descriptive statistics are

### Research Methods 1 Handouts, Graham Hole,COGS - version 1.0, September 2000: Page 1:

Research Methods 1 Handouts, Graham Hole,COGS - version 1.0, September 000: Page 1: DESCRIPTIVE STATISTICS - FREQUENCY DISTRIBUTIONS AND AVERAGES: Inferential and Descriptive Statistics: There are four

### 4. Introduction to Statistics

Statistics for Engineers 4-1 4. Introduction to Statistics Descriptive Statistics Types of data A variate or random variable is a quantity or attribute whose value may vary from one unit of investigation

### DESCRIPTIVE STATISTICS. The purpose of statistics is to condense raw data to make it easier to answer specific questions; test hypotheses.

DESCRIPTIVE STATISTICS The purpose of statistics is to condense raw data to make it easier to answer specific questions; test hypotheses. DESCRIPTIVE VS. INFERENTIAL STATISTICS Descriptive To organize,

### 6.4 Normal Distribution

Contents 6.4 Normal Distribution....................... 381 6.4.1 Characteristics of the Normal Distribution....... 381 6.4.2 The Standardized Normal Distribution......... 385 6.4.3 Meaning of Areas under

### Report of for Chapter 2 pretest

Report of for Chapter 2 pretest Exam: Chapter 2 pretest Category: Organizing and Graphing Data 1. "For our study of driving habits, we recorded the speed of every fifth vehicle on Drury Lane. Nearly every

### Descriptive Statistics and Measurement Scales

Descriptive Statistics 1 Descriptive Statistics and Measurement Scales Descriptive statistics are used to describe the basic features of the data in a study. They provide simple summaries about the sample

### Hints for Success on the AP Statistics Exam. (Compiled by Zack Bigner)

Hints for Success on the AP Statistics Exam. (Compiled by Zack Bigner) The Exam The AP Stat exam has 2 sections that take 90 minutes each. The first section is 40 multiple choice questions, and the second

### Research Variables. Measurement. Scales of Measurement. Chapter 4: Data & the Nature of Measurement

Chapter 4: Data & the Nature of Graziano, Raulin. Research Methods, a Process of Inquiry Presented by Dustin Adams Research Variables Variable Any characteristic that can take more than one form or value.

### Biostatistics: DESCRIPTIVE STATISTICS: 2, VARIABILITY

Biostatistics: DESCRIPTIVE STATISTICS: 2, VARIABILITY 1. Introduction Besides arriving at an appropriate expression of an average or consensus value for observations of a population, it is important to

### Statistical Foundations: Measures of Location and Central Tendency and Summation and Expectation

Statistical Foundations: and Central Tendency and and Lecture 4 September 5, 2006 Psychology 790 Lecture #4-9/05/2006 Slide 1 of 26 Today s Lecture Today s Lecture Where this Fits central tendency/location

### Descriptive Statistics

Descriptive Statistics Primer Descriptive statistics Central tendency Variation Relative position Relationships Calculating descriptive statistics Descriptive Statistics Purpose to describe or summarize

### CA200 Quantitative Analysis for Business Decisions. File name: CA200_Section_04A_StatisticsIntroduction

CA200 Quantitative Analysis for Business Decisions File name: CA200_Section_04A_StatisticsIntroduction Table of Contents 4. Introduction to Statistics... 1 4.1 Overview... 3 4.2 Discrete or continuous

### Means, standard deviations and. and standard errors

CHAPTER 4 Means, standard deviations and standard errors 4.1 Introduction Change of units 4.2 Mean, median and mode Coefficient of variation 4.3 Measures of variation 4.4 Calculating the mean and standard

### 2 Sample t-test (unequal sample sizes and unequal variances)

Variations of the t-test: Sample tail Sample t-test (unequal sample sizes and unequal variances) Like the last example, below we have ceramic sherd thickness measurements (in cm) of two samples representing

### Session 1.6 Measures of Central Tendency

Session 1.6 Measures of Central Tendency Measures of location (Indices of central tendency) These indices locate the center of the frequency distribution curve. The mode, median, and mean are three indices

### Statistics Review PSY379

Statistics Review PSY379 Basic concepts Measurement scales Populations vs. samples Continuous vs. discrete variable Independent vs. dependent variable Descriptive vs. inferential stats Common analyses

### MEASURES OF VARIATION

NORMAL DISTRIBTIONS MEASURES OF VARIATION In statistics, it is important to measure the spread of data. A simple way to measure spread is to find the range. But statisticians want to know if the data are

### CHINHOYI UNIVERSITY OF TECHNOLOGY

CHINHOYI UNIVERSITY OF TECHNOLOGY SCHOOL OF NATURAL SCIENCES AND MATHEMATICS DEPARTMENT OF MATHEMATICS MEASURES OF CENTRAL TENDENCY AND DISPERSION INTRODUCTION From the previous unit, the Graphical displays

### Variables and Data A variable contains data about anything we measure. For example; age or gender of the participants or their score on a test.

The Analysis of Research Data The design of any project will determine what sort of statistical tests you should perform on your data and how successful the data analysis will be. For example if you decide

### Numerical Summarization of Data OPRE 6301

Numerical Summarization of Data OPRE 6301 Motivation... In the previous session, we used graphical techniques to describe data. For example: While this histogram provides useful insight, other interesting

### Standard Deviation Estimator

CSS.com Chapter 905 Standard Deviation Estimator Introduction Even though it is not of primary interest, an estimate of the standard deviation (SD) is needed when calculating the power or sample size of

### 10-3 Measures of Central Tendency and Variation

10-3 Measures of Central Tendency and Variation So far, we have discussed some graphical methods of data description. Now, we will investigate how statements of central tendency and variation can be used.

### 1) Write the following as an algebraic expression using x as the variable: Triple a number subtracted from the number

1) Write the following as an algebraic expression using x as the variable: Triple a number subtracted from the number A. 3(x - x) B. x 3 x C. 3x - x D. x - 3x 2) Write the following as an algebraic expression

### Introduction to Quantitative Methods

Introduction to Quantitative Methods October 15, 2009 Contents 1 Definition of Key Terms 2 2 Descriptive Statistics 3 2.1 Frequency Tables......................... 4 2.2 Measures of Central Tendencies.................

### Lecture Notes Module 1

Lecture Notes Module 1 Study Populations A study population is a clearly defined collection of people, animals, plants, or objects. In psychological research, a study population usually consists of a specific

### Standard Deviation Calculator

CSS.com Chapter 35 Standard Deviation Calculator Introduction The is a tool to calculate the standard deviation from the data, the standard error, the range, percentiles, the COV, confidence limits, or

### Study Guide for the Final Exam

Study Guide for the Final Exam When studying, remember that the computational portion of the exam will only involve new material (covered after the second midterm), that material from Exam 1 will make

### 1.5 Oneway Analysis of Variance

Statistics: Rosie Cornish. 200. 1.5 Oneway Analysis of Variance 1 Introduction Oneway analysis of variance (ANOVA) is used to compare several means. This method is often used in scientific or medical experiments

### Sample Size and Power in Clinical Trials

Sample Size and Power in Clinical Trials Version 1.0 May 011 1. Power of a Test. Factors affecting Power 3. Required Sample Size RELATED ISSUES 1. Effect Size. Test Statistics 3. Variation 4. Significance

### Good luck! BUSINESS STATISTICS FINAL EXAM INSTRUCTIONS. Name:

Glo bal Leadership M BA BUSINESS STATISTICS FINAL EXAM Name: INSTRUCTIONS 1. Do not open this exam until instructed to do so. 2. Be sure to fill in your name before starting the exam. 3. You have two hours

### NONPARAMETRIC STATISTICS 1. depend on assumptions about the underlying distribution of the data (or on the Central Limit Theorem)

NONPARAMETRIC STATISTICS 1 PREVIOUSLY parametric statistics in estimation and hypothesis testing... construction of confidence intervals computing of p-values classical significance testing depend on assumptions

### 1.5 NUMERICAL REPRESENTATION OF DATA (Sample Statistics)

1.5 NUMERICAL REPRESENTATION OF DATA (Sample Statistics) As well as displaying data graphically we will often wish to summarise it numerically particularly if we wish to compare two or more data sets.

### Chapter 3: Data Description Numerical Methods

Chapter 3: Data Description Numerical Methods Learning Objectives Upon successful completion of Chapter 3, you will be able to: Summarize data using measures of central tendency, such as the mean, median,

### CHAPTER 11 CHI-SQUARE: NON-PARAMETRIC COMPARISONS OF FREQUENCY

CHAPTER 11 CHI-SQUARE: NON-PARAMETRIC COMPARISONS OF FREQUENCY The hypothesis testing statistics detailed thus far in this text have all been designed to allow comparison of the means of two or more samples

### Factorial Analysis of Variance

Chapter 560 Factorial Analysis of Variance Introduction A common task in research is to compare the average response across levels of one or more factor variables. Examples of factor variables are income

### Comparing Means in Two Populations

Comparing Means in Two Populations Overview The previous section discussed hypothesis testing when sampling from a single population (either a single mean or two means from the same population). Now we

### Recall this chart that showed how most of our course would be organized:

Chapter 4 One-Way ANOVA Recall this chart that showed how most of our course would be organized: Explanatory Variable(s) Response Variable Methods Categorical Categorical Contingency Tables Categorical

### Statistical Inference and t-tests

1 Statistical Inference and t-tests Objectives Evaluate the difference between a sample mean and a target value using a one-sample t-test. Evaluate the difference between a sample mean and a target value

### Independent samples t-test. Dr. Tom Pierce Radford University

Independent samples t-test Dr. Tom Pierce Radford University The logic behind drawing causal conclusions from experiments The sampling distribution of the difference between means The standard error of

### Biodiversity Data Analysis: Testing Statistical Hypotheses By Joanna Weremijewicz, Simeon Yurek, Steven Green, Ph. D. and Dana Krempels, Ph. D.

Biodiversity Data Analysis: Testing Statistical Hypotheses By Joanna Weremijewicz, Simeon Yurek, Steven Green, Ph. D. and Dana Krempels, Ph. D. In biological science, investigators often collect biological

### Point and Interval Estimates

Point and Interval Estimates Suppose we want to estimate a parameter, such as p or µ, based on a finite sample of data. There are two main methods: 1. Point estimate: Summarize the sample by a single number

### Content Sheet 7-1: Overview of Quality Control for Quantitative Tests

Content Sheet 7-1: Overview of Quality Control for Quantitative Tests Role in quality management system Quality Control (QC) is a component of process control, and is a major element of the quality management

### Nonparametric Statistics

1 14.1 Using the Binomial Table Nonparametric Statistics In this chapter, we will survey several methods of inference from Nonparametric Statistics. These methods will introduce us to several new tables

### CHAPTER 14 NONPARAMETRIC TESTS

CHAPTER 14 NONPARAMETRIC TESTS Everything that we have done up until now in statistics has relied heavily on one major fact: that our data is normally distributed. We have been able to make inferences

### A Summary of Error Propagation

A Summary of Error Propagation Suppose you measure some quantities a, b, c,... with uncertainties δa, δb, δc,.... Now you want to calculate some other quantity Q which depends on a and b and so forth.

### Descriptive Statistics

Y520 Robert S Michael Goal: Learn to calculate indicators and construct graphs that summarize and describe a large quantity of values. Using the textbook readings and other resources listed on the web

### Lesson 4 Measures of Central Tendency

Outline Measures of a distribution s shape -modality and skewness -the normal distribution Measures of central tendency -mean, median, and mode Skewness and Central Tendency Lesson 4 Measures of Central

### Chapter 7 Part 2. Hypothesis testing Power

Chapter 7 Part 2 Hypothesis testing Power November 6, 2008 All of the normal curves in this handout are sampling distributions Goal: To understand the process of hypothesis testing and the relationship

### The correlation coefficient

The correlation coefficient Clinical Biostatistics The correlation coefficient Martin Bland Correlation coefficients are used to measure the of the relationship or association between two quantitative

### Non-Parametric Tests (I)

Lecture 5: Non-Parametric Tests (I) KimHuat LIM lim@stats.ox.ac.uk http://www.stats.ox.ac.uk/~lim/teaching.html Slide 1 5.1 Outline (i) Overview of Distribution-Free Tests (ii) Median Test for Two Independent

### Unit 26 Estimation with Confidence Intervals

Unit 26 Estimation with Confidence Intervals Objectives: To see how confidence intervals are used to estimate a population proportion, a population mean, a difference in population proportions, or a difference

### Northumberland Knowledge

Northumberland Knowledge Know Guide How to Analyse Data - November 2012 - This page has been left blank 2 About this guide The Know Guides are a suite of documents that provide useful information about

### Hypothesis Testing for Beginners

Hypothesis Testing for Beginners Michele Piffer LSE August, 2011 Michele Piffer (LSE) Hypothesis Testing for Beginners August, 2011 1 / 53 One year ago a friend asked me to put down some easy-to-read notes

### Using Excel for inferential statistics

FACT SHEET Using Excel for inferential statistics Introduction When you collect data, you expect a certain amount of variation, just caused by chance. A wide variety of statistical tests can be applied

### Data Analysis: Describing Data - Descriptive Statistics

WHAT IT IS Return to Table of ontents Descriptive statistics include the numbers, tables, charts, and graphs used to describe, organize, summarize, and present raw data. Descriptive statistics are most

### Projects Involving Statistics (& SPSS)

Projects Involving Statistics (& SPSS) Academic Skills Advice Starting a project which involves using statistics can feel confusing as there seems to be many different things you can do (charts, graphs,

### Data Analysis. Lecture Empirical Model Building and Methods (Empirische Modellbildung und Methoden) SS Analysis of Experiments - Introduction

Data Analysis Lecture Empirical Model Building and Methods (Empirische Modellbildung und Methoden) Prof. Dr. Dr. h.c. Dieter Rombach Dr. Andreas Jedlitschka SS 2014 Analysis of Experiments - Introduction

### Models for Discrete Variables

Probability Models for Discrete Variables Our study of probability begins much as any data analysis does: What is the distribution of the data? Histograms, boxplots, percentiles, means, standard deviations

### Midterm Review Problems

Midterm Review Problems October 19, 2013 1. Consider the following research title: Cooperation among nursery school children under two types of instruction. In this study, what is the independent variable?

### Tutorial 5: Hypothesis Testing

Tutorial 5: Hypothesis Testing Rob Nicholls nicholls@mrc-lmb.cam.ac.uk MRC LMB Statistics Course 2014 Contents 1 Introduction................................ 1 2 Testing distributional assumptions....................

### Module 5 Hypotheses Tests: Comparing Two Groups

Module 5 Hypotheses Tests: Comparing Two Groups Objective: In medical research, we often compare the outcomes between two groups of patients, namely exposed and unexposed groups. At the completion of this

### II. DISTRIBUTIONS distribution normal distribution. standard scores

Appendix D Basic Measurement And Statistics The following information was developed by Steven Rothke, PhD, Department of Psychology, Rehabilitation Institute of Chicago (RIC) and expanded by Mary F. Schmidt,

### Chapter 7 Section 7.1: Inference for the Mean of a Population

Chapter 7 Section 7.1: Inference for the Mean of a Population Now let s look at a similar situation Take an SRS of size n Normal Population : N(, ). Both and are unknown parameters. Unlike what we used

### Tom wants to find two real numbers, a and b, that have a sum of 10 and have a product of 10. He makes this table.

Sum and Product This problem gives you the chance to: use arithmetic and algebra to represent and analyze a mathematical situation solve a quadratic equation by trial and improvement Tom wants to find

### Chapter 3 Descriptive Statistics: Numerical Measures. Learning objectives

Chapter 3 Descriptive Statistics: Numerical Measures Slide 1 Learning objectives 1. Single variable Part I (Basic) 1.1. How to calculate and use the measures of location 1.. How to calculate and use the

### Module 3: Correlation and Covariance

Using Statistical Data to Make Decisions Module 3: Correlation and Covariance Tom Ilvento Dr. Mugdim Pašiƒ University of Delaware Sarajevo Graduate School of Business O ften our interest in data analysis

### Nonparametric Two-Sample Tests. Nonparametric Tests. Sign Test

Nonparametric Two-Sample Tests Sign test Mann-Whitney U-test (a.k.a. Wilcoxon two-sample test) Kolmogorov-Smirnov Test Wilcoxon Signed-Rank Test Tukey-Duckworth Test 1 Nonparametric Tests Recall, nonparametric

### Measures of Central Tendency and Variability: Summarizing your Data for Others

Measures of Central Tendency and Variability: Summarizing your Data for Others 1 I. Measures of Central Tendency: -Allow us to summarize an entire data set with a single value (the midpoint). 1. Mode :

### 4. Continuous Random Variables, the Pareto and Normal Distributions

4. Continuous Random Variables, the Pareto and Normal Distributions A continuous random variable X can take any value in a given range (e.g. height, weight, age). The distribution of a continuous random

### CHAPTER THREE COMMON DESCRIPTIVE STATISTICS COMMON DESCRIPTIVE STATISTICS / 13

COMMON DESCRIPTIVE STATISTICS / 13 CHAPTER THREE COMMON DESCRIPTIVE STATISTICS The analysis of data begins with descriptive statistics such as the mean, median, mode, range, standard deviation, variance,

### SCHOOL OF HEALTH AND HUMAN SCIENCES DON T FORGET TO RECODE YOUR MISSING VALUES

SCHOOL OF HEALTH AND HUMAN SCIENCES Using SPSS Topics addressed today: 1. Differences between groups 2. Graphing Use the s4data.sav file for the first part of this session. DON T FORGET TO RECODE YOUR

### Lecture 05 Measures of Central Tendency

Lecture 05 Measures of Central Tendency There are three main measures of central tendency: the mean, median, and mode. The purpose of measures of central tendency is to identify the location of the center

T O P I C 1 2 Techniques and tools for data analysis Preview Introduction In chapter 3 of Statistics In A Day different combinations of numbers and types of variables are presented. We go through these

### Stat 411/511 THE RANDOMIZATION TEST. Charlotte Wickham. stat511.cwick.co.nz. Oct 16 2015

Stat 411/511 THE RANDOMIZATION TEST Oct 16 2015 Charlotte Wickham stat511.cwick.co.nz Today Review randomization model Conduct randomization test What about CIs? Using a t-distribution as an approximation

### Comparing two groups (t tests...)

Page 1 of 33 Comparing two groups (t tests...) You've measured a variable in two groups, and the means (and medians) are distinct. Is that due to chance? Or does it tell you the two groups are really different?

### Introduction to Statistics for Psychology. Quantitative Methods for Human Sciences

Introduction to Statistics for Psychology and Quantitative Methods for Human Sciences Jonathan Marchini Course Information There is website devoted to the course at http://www.stats.ox.ac.uk/ marchini/phs.html

3.2 Measures of Spread In some data sets the observations are close together, while in others they are more spread out. In addition to measures of the center, it's often important to measure the spread

### Histogram. Graphs, and measures of central tendency and spread. Alternative: density (or relative frequency ) plot /13/2004

Graphs, and measures of central tendency and spread 9.07 9/13/004 Histogram If discrete or categorical, bars don t touch. If continuous, can touch, should if there are lots of bins. Sum of bin heights

### Rank-Based Non-Parametric Tests

Rank-Based Non-Parametric Tests Reminder: Student Instructional Rating Surveys You have until May 8 th to fill out the student instructional rating surveys at https://sakai.rutgers.edu/portal/site/sirs

### Stat 5102 Notes: Nonparametric Tests and. confidence interval

Stat 510 Notes: Nonparametric Tests and Confidence Intervals Charles J. Geyer April 13, 003 This handout gives a brief introduction to nonparametrics, which is what you do when you don t believe the assumptions

### QUANTITATIVE METHODS BIOLOGY FINAL HONOUR SCHOOL NON-PARAMETRIC TESTS

QUANTITATIVE METHODS BIOLOGY FINAL HONOUR SCHOOL NON-PARAMETRIC TESTS This booklet contains lecture notes for the nonparametric work in the QM course. This booklet may be online at http://users.ox.ac.uk/~grafen/qmnotes/index.html.

### NCSS Statistical Software

Chapter 06 Introduction This procedure provides several reports for the comparison of two distributions, including confidence intervals for the difference in means, two-sample t-tests, the z-test, the

### Playing with Numbers

PLAYING WITH NUMBERS 249 Playing with Numbers CHAPTER 16 16.1 Introduction You have studied various types of numbers such as natural numbers, whole numbers, integers and rational numbers. You have also

### Density Curve. A density curve is the graph of a continuous probability distribution. It must satisfy the following properties:

Density Curve A density curve is the graph of a continuous probability distribution. It must satisfy the following properties: 1. The total area under the curve must equal 1. 2. Every point on the curve

### Two-sample inference: Continuous data

Two-sample inference: Continuous data Patrick Breheny April 5 Patrick Breheny STA 580: Biostatistics I 1/32 Introduction Our next two lectures will deal with two-sample inference for continuous data As

### 0.8 Rational Expressions and Equations

96 Prerequisites 0.8 Rational Expressions and Equations We now turn our attention to rational expressions - that is, algebraic fractions - and equations which contain them. The reader is encouraged to

### Probability and Statistics Prof. Dr. Somesh Kumar Department of Mathematics Indian Institute of Technology, Kharagpur

Probability and Statistics Prof. Dr. Somesh Kumar Department of Mathematics Indian Institute of Technology, Kharagpur Module No. #01 Lecture No. #15 Special Distributions-VI Today, I am going to introduce

### UNDERSTANDING THE TWO-WAY ANOVA

UNDERSTANDING THE e have seen how the one-way ANOVA can be used to compare two or more sample means in studies involving a single independent variable. This can be extended to two independent variables

### AP Statistics 2001 Solutions and Scoring Guidelines

AP Statistics 2001 Solutions and Scoring Guidelines The materials included in these files are intended for non-commercial use by AP teachers for course and exam preparation; permission for any other use

### Introduction to Statistics and Quantitative Research Methods

Introduction to Statistics and Quantitative Research Methods Purpose of Presentation To aid in the understanding of basic statistics, including terminology, common terms, and common statistical methods.

### COMPASS Numerical Skills/Pre-Algebra Preparation Guide. Introduction Operations with Integers Absolute Value of Numbers 13

COMPASS Numerical Skills/Pre-Algebra Preparation Guide Please note that the guide is for reference only and that it does not represent an exact match with the assessment content. The Assessment Centre

### STATS8: Introduction to Biostatistics. Data Exploration. Babak Shahbaba Department of Statistics, UCI

STATS8: Introduction to Biostatistics Data Exploration Babak Shahbaba Department of Statistics, UCI Introduction After clearly defining the scientific problem, selecting a set of representative members

### T-TESTS: There are two versions of the t-test:

Research Skills, Graham Hole - February 009: Page 1: T-TESTS: When to use a t-test: The simplest experimental design is to have two conditions: an "experimental" condition in which subjects receive some