Rational Decision Making

Similar documents
DATA SUMMARIZATION AND VISUALIZATION

CHAPTER 2 Describing Data: Numerical

Math 2311 Bekki George Office Hours: MW 11am to 12:45pm in 639 PGH Online Thursdays 4-5:30pm And by appointment

DATA HANDLING Five-Number Summary

CSC Advanced Scientific Programming, Spring Descriptive Statistics

MAS187/AEF258. University of Newcastle upon Tyne

Descriptive Statistics (Devore Chapter One)

AP STATISTICS FALL SEMESTSER FINAL EXAM STUDY GUIDE

2 Exploring Univariate Data

Dot Plot: A graph for displaying a set of data. Each numerical value is represented by a dot placed above a horizontal number line.

Frequency Distribution and Summary Statistics

PSYCHOLOGICAL STATISTICS

9/17/2015. Basic Statistics for the Healthcare Professional. Relax.it won t be that bad! Purpose of Statistic. Objectives

Diploma in Financial Management with Public Finance

CABARRUS COUNTY 2008 APPRAISAL MANUAL

appstats5.notebook September 07, 2016 Chapter 5

MAS187/AEF258. University of Newcastle upon Tyne

1 Describing Distributions with numbers

Contents. An Overview of Statistical Applications CHAPTER 1. Contents (ix) Preface... (vii)

Week 1 Variables: Exploration, Familiarisation and Description. Descriptive Statistics.

Categorical. A general name for non-numerical data; the data is separated into categories of some kind.

Chapter 6 Simple Correlation and

Basic Procedure for Histograms

STATISTICAL DISTRIBUTIONS AND THE CALCULATOR

Stat 101 Exam 1 - Embers Important Formulas and Concepts 1

A.REPRESENTATION OF DATA

Measures of Dispersion (Range, standard deviation, standard error) Introduction

MBEJ 1023 Dr. Mehdi Moeinaddini Dept. of Urban & Regional Planning Faculty of Built Environment

DESCRIPTIVE STATISTICS

1 Exercise One. 1.1 Calculate the mean ROI. Note that the data is not grouped! Below you find the raw data in tabular form:

3.1 Measures of Central Tendency

Summarising Data. Summarising Data. Examples of Types of Data. Types of Data

Fundamentals of Statistics

Lecture 1: Review and Exploratory Data Analysis (EDA)

Exploring Data and Graphics

3. Probability Distributions and Sampling

Edexcel past paper questions

STATISTICS 4040/23 Paper 2 October/November 2014

SAMPLE. HSC formula sheet. Sphere V = 4 πr. Volume. A area of base

Chapter 3. Numerical Descriptive Measures. Copyright 2016 Pearson Education, Ltd. Chapter 3, Slide 1

Data that can be any numerical value are called continuous. These are usually things that are measured, such as height, length, time, speed, etc.

KARACHI UNIVERSITY BUSINESS SCHOOL UNIVERSITY OF KARACHI BS (BBA) VI

Data Analysis. BCF106 Fundamentals of Cost Analysis

Master of Science in Strategic Management Degree Master of Science in Strategic Supply Chain Management Degree

Descriptive Statistics

STAB22 section 1.3 and Chapter 1 exercises

Statistics (This summary is for chapters 17, 28, 29 and section G of chapter 19)

M249 Diagnostic Quiz

Model Paper Statistics Objective. Paper Code Time Allowed: 20 minutes

St. Xavier s College Autonomous Mumbai STATISTICS. F.Y.B.Sc. Syllabus For 1 st Semester Courses in Statistics (June 2015 onwards)

Exam 1 Review. 1) Identify the population being studied. The heights of 14 out of the 31 cucumber plants at Mr. Lonardo's greenhouse.

2 DESCRIPTIVE STATISTICS

Project Management Chapter 13

Probability. An intro for calculus students P= Figure 1: A normal integral

MEASURES OF CENTRAL TENDENCY & VARIABILITY + NORMAL DISTRIBUTION

Description of Data I

A probability distribution shows the possible outcomes of an experiment and the probability of each of these outcomes.

the display, exploration and transformation of the data are demonstrated and biases typically encountered are highlighted.

The following content is provided under a Creative Commons license. Your support

MEASURES OF DISPERSION, RELATIVE STANDING AND SHAPE. Dr. Bijaya Bhusan Nanda,

Contents Part I Descriptive Statistics 1 Introduction and Framework Population, Sample, and Observations Variables Quali

Probability distributions

starting on 5/1/1953 up until 2/1/2017.

Biostatistics and Design of Experiments Prof. Mukesh Doble Department of Biotechnology Indian Institute of Technology, Madras

32.S [F] SU 02 June All Syllabus Science Faculty B.A. I Yr. Stat. [Opt.] [Sem.I & II] 1

Graphical and Tabular Methods in Descriptive Statistics. Descriptive Statistics

34.S-[F] SU-02 June All Syllabus Science Faculty B.Sc. I Yr. Stat. [Opt.] [Sem.I & II] - 1 -

NOTES: Chapter 4 Describing Data

Module Tag PSY_P2_M 7. PAPER No.2: QUANTITATIVE METHODS MODULE No.7: NORMAL DISTRIBUTION

Numerical Descriptions of Data

Lecture Week 4 Inspecting Data: Distributions

Introduction. Introduction. Six Steps of PERT/CPM. Six Steps of PERT/CPM LEARNING OBJECTIVES

Optimization Prof. A. Goswami Department of Mathematics Indian Institute of Technology, Kharagpur. Lecture - 18 PERT

Subject CS1 Actuarial Statistics 1 Core Principles. Syllabus. for the 2019 exams. 1 June 2018

Random variables The binomial distribution The normal distribution Sampling distributions. Distributions. Patrick Breheny.

FACULTY OF SCIENCE DEPARTMENT OF STATISTICS

Overview/Outline. Moving beyond raw data. PSY 464 Advanced Experimental Design. Describing and Exploring Data The Normal Distribution

Lecture 2 Describing Data

MATHEMATICS APPLIED TO BIOLOGICAL SCIENCES MVE PA 07. LP07 DESCRIPTIVE STATISTICS - Calculating of statistical indicators (1)

1. A is a decision support tool that uses a tree-like graph or model of decisions and their possible consequences, including chance event outcomes,

STAT 157 HW1 Solutions

A LEVEL MATHEMATICS ANSWERS AND MARKSCHEMES SUMMARY STATISTICS AND DIAGRAMS. 1. a) 45 B1 [1] b) 7 th value 37 M1 A1 [2]

Chapter 6 Confidence Intervals

Textbook: pp Chapter 11: Project Management

CH 5 Normal Probability Distributions Properties of the Normal Distribution

Numerical Descriptive Measures. Measures of Center: Mean and Median

Time allowed : 3 hours Maximum marks : 100. Total number of questions : 8 Total number of printed pages : 7 PART A

STA1510 (BASIC STATISTICS) AND STA1610 (INTRODUCTION TO STATISTICS) NOTES PART 1

Key Objectives. Module 2: The Logic of Statistical Inference. Z-scores. SGSB Workshop: Using Statistical Data to Make Decisions

Lecture Slides. Elementary Statistics Tenth Edition. by Mario F. Triola. and the Triola Statistics Series. Slide 1

Edexcel past paper questions

2CORE. Summarising numerical data: the median, range, IQR and box plots

2011 Pearson Education, Inc

Diploma in Business Administration Part 2. Quantitative Methods. Examiner s Suggested Answers

Standardized Data Percentiles, Quartiles and Box Plots Grouped Data Skewness and Kurtosis

4.1 Probability Distributions

Basic Data Analysis. Stephen Turnbull Business Administration and Public Policy Lecture 3: April 25, Abstract

Appendix A. Selecting and Using Probability Distributions. In this appendix

Measures of Central tendency

Example: Histogram for US household incomes from 2015 Table:

Transcription:

Department of Decision Sciences Rational Decision Making Only study guide for DSC2602 University of South Africa Pretoria

c 2010 University of South Africa All rights reserved. Printed and published by the University of South Africa, Muckleneuk, Pretoria. DSC2602/1/2011 Cover: Eastern Transvaal, Lowveld (1928) J. H. Pierneef J. H. Pierneef is one of South Africa s best known artists. Permission for the use of this work was kindly granted by the Schweickerdt family. The tree structure is a recurring theme in various branches of the decision sciences.

Preface Everyday life is full of decisions. What should I wear today? What should I eat? Should I buy the red or blue shirt? Should I buy a specific house or buy a piece of land? What is the shortest route from my house to work?... And many more. Some of these decisions can be made without thinking or by guesswork. Some can be solved by reasoning or emotions. Some are a bit more difficult and may need additional information. People have been using mathematical tools to aid decision making for decades. During World War II many techniques were developed to assists the military in decision making. These developments were so successful that after World War II many companies used similar techniques in managerial decision making and planning. The decision making task of modern management is more demanding and more important than ever. Many organisations employ operations research or management science personnel or consultants to apply the principles of scientific management to problems and decision making. In this module we focus on a number of useful models and techniques that can be used in the decision making process. Two important themes run through the study guide: data analysis and decision making techniques. Firstly we look at data analysis. This approach starts with data that are manipulated or processed into information that is valuable to decision making. The processing and manipulation of raw data into meaningful information are the heart of data analysis. Data analysis includes data description, data inference, the search for relationships in data and dealing with uncertainty which in turn includes measuring uncertainty and modelling uncertainty explicitly. In addition to data analysis, other decision making techniques are discussed. These techniques include decision analysis, project scheduling and network models. Chapter 1 illustrates a number of ways to summarise the information in data sets, also known as descriptive statistics. It includes graphical and tabular summaries, as well as summary measures such as means, medians and standard deviations. Uncertainty is a key aspect of most business problems. To deal with uncertainty, we need a basic understanding of probability. Chapter 2 covers basic rules of probability and in Chapter 3 we discuss the important concept of probability distributions in some generality. In Chapter 4 we discuss statistical inference (estimation), where the basic problem is to estimate one or more characteristics of a population. Since it is too expensive to obtain the population information, we instead select a sample from the population and then use the information in the sample to infer the characteristics of the population. In Chapter 5 we look at the topic of regression analysis which is used to study relationships between variables. In Chapter 6 we study another type of decision making called decision analysis where costs and profits are considered to be important. The problem is not whether to accept or reject a statement but to select the best alternative from a list of several possible decisions. Usually no statistical data are available. Decision analysis is the study of how people make decisions, particularly when faced with imperfect information or uncertainty.

Chapter 7 deals with project management. Project management consists of planning projects, acquiring resources, scheduling activities and evaluating complete projects. Managers are responsible for project management. They must know how long a specific project will take to finish, what the critical tasks are, and very often, what the probability is of completing the project within a given time span. In Chapter 8 the subject of network models is discussed. Network models consist of nodes and arcs. Many real-world problems have a network structure or can be modelled in network form. These include problems in areas such as production, distribution, project planning, facilities location, resource management and financial planning. The graphical network representation of problems provides a powerful visual and conceptual aid to indicate the relationship between components of a system.

v DSC2602/1/2010 Contents 1 Descriptive statistics 1 1.1 Introduction......................................... 1 1.2 Data collection........................................ 1 1.3 Sampling methods..................................... 2 1.3.1 Simple random sampling............................. 2 1.3.2 Stratified random sampling............................ 4 1.3.3 Systematic sampling................................ 5 1.4 Presentation of data..................................... 6 1.4.1 Types of data.................................... 6 1.4.2 The frequency table and histogram........................ 7 1.4.3 The pie chart.................................... 11 1.4.4 The cumulative frequency polygon....................... 12 1.4.5 The stem-and-leaf diagram............................ 13 1.5 Descriptive measures.................................... 14 1.5.1 Measures of locality................................ 14 1.5.1.1 The mean................................. 14 1.5.1.2 The median................................ 18 1.5.1.3 The mode................................. 19 1.5.2 Measures of dispersion.............................. 20 1.5.2.1 The variance of a data set........................ 20 1.5.2.2 The standard deviation of a data set.................. 22 1.5.2.3 The quartile deviation.......................... 22 1.5.2.4 The coefficient of variation....................... 24

DSC2602/1/2010 vi 1.6 The box-and-whiskers diagram.............................. 25 1.7 Summary of descriptive measures............................ 28 1.7.1 Measures of locality................................ 28 1.7.2 Measures of dispersion.............................. 28 1.8 Exercises........................................... 29 2 Probability concepts 33 2.1 Introduction......................................... 33 2.2 Classical probability.................................... 33 2.3 Some rules in probability theory............................. 38 2.3.1 Conditional probability.............................. 40 2.3.2 Joint probabilities: multiplication law...................... 42 2.4 Summary of basic probability concepts.......................... 44 2.5 Exercises........................................... 45 3 Probability distributions 49 3.1 Introduction......................................... 49 3.2 Random variable...................................... 49 3.3 Discrete random variables................................. 50 3.3.1 The probability distribution of a discrete random variable.......... 50 3.3.2 Expected value of a discrete probability distribution.............. 52 3.3.3 Variance of a discrete probability distribution................. 53 3.3.4 Discrete distribution function........................... 54 3.4 Discrete random distributions............................... 56 3.4.1 The binomial distribution............................. 56 3.4.2 The Poisson distribution.............................. 61 3.5 Continuous random variables............................... 64 3.5.1 The probability distribution of a continuous random variable........ 64 3.5.2 Continuous distribution function......................... 65 3.6 Continuous distributions.................................. 66 3.6.1 The normal distribution.............................. 66 3.6.1.1 The Standard Normal distribution................... 67 3.6.2 The exponential distribution........................... 76 3.6.3 The uniform distribution............................. 77 3.7 Exercises........................................... 80

vii DSC2602/1/2010 4 Estimation 83 4.1 Introduction......................................... 83 4.2 Types of estimators..................................... 83 4.3 Point estimation....................................... 84 4.3.1 Estimating the mean................................ 84 4.3.2 Estimating the variance.............................. 84 4.3.3 Estimating proportions.............................. 84 4.4 Interval estimators..................................... 85 4.4.1 The standard error................................. 85 4.4.2 Confidence intervals for means.......................... 85 4.4.3 Confidence intervals for proportions....................... 90 4.5 Exercises........................................... 92 5 Correlation and regression 93 5.1 Introduction......................................... 93 5.2 Correlation analysis..................................... 93 5.2.1 The scatter diagram................................ 93 5.2.2 The correlation coefficient............................. 94 5.2.2.1 Pearson s correlation coefficient.................... 96 5.2.2.2 Spearman s rank correlation coefficient................ 97 5.3 Simple linear regression.................................. 98 5.3.1 The estimated regression line........................... 98 5.3.2 The method of least squares............................ 98 5.3.3 Rules and assumptions underlying regression analysis............ 100 5.3.4 Residual plot analysis............................... 101 5.3.5 The coefficient of determination......................... 101 5.3.6 The F-test for overall significance......................... 103 5.3.7 Forecasting accuracy................................ 105 5.4 Fitting nonlinear relationships............................... 105 5.5 The use of spreadsheets in simple linear regression................... 111 5.6 Exercises........................................... 113 6 Decision analysis 117 6.1 Introduction......................................... 117 6.2 Structuring decision problems............................... 118 6.2.1 The basic steps in decision making........................ 118

DSC2602/1/2010 viii 6.2.2 Payoff tables..................................... 119 6.2.3 Decision trees.................................... 120 6.3 Decision making without probabilities or under uncertainty............. 120 6.3.1 The optimistic approach - maximax criterion.................. 121 6.3.2 The conservative approach - maximim criterion................ 122 6.3.3 Minimax regret approach............................. 122 6.4 Decision making with probabilities or under risk.................... 124 6.4.1 The expected value approach........................... 124 6.4.2 Decision trees and the expected value approach................ 125 6.4.3 Sensitivity analysis................................. 129 6.4.4 Expected value of perfect information...................... 132 6.4.5 Decision analysis with sample information................... 134 6.5 Utility and decision making................................ 139 6.5.1 Obtaining utility values for payoffs....................... 141 6.5.2 Utility curve..................................... 142 6.5.3 The expected utility approach........................... 144 6.5.4 Utility functions................................... 145 6.6 Exercises........................................... 147 7 Project management 153 7.1 Introduction......................................... 153 7.2 PERT/CPM.......................................... 154 7.3 Project scheduling with certain activity durations single time estimates...... 155 7.3.1 Define the project.................................. 155 7.3.2 Project network diagrams............................. 156 7.3.2.1 Conventions for constructing network diagrams.......... 156 7.3.2.2 Drawing network diagrams...................... 160 7.3.3 Network calculations................................ 164 7.3.3.1 Calculating early and late event times................ 164 7.3.3.2 The duration of the project....................... 168 7.3.3.3 The critical path............................. 168 7.3.3.4 Total float................................. 169 7.3.3.5 Other measures of float......................... 170 7.3.4 Using linear programming to find a critical path................ 174 7.3.4.1 Formulating an LP model........................ 175

ix DSC2602/1/2010 7.3.4.2 Using LINDO or LINGO to solve the LP model........... 176 7.4 Project scheduling with uncertain activity durations multiple time estimates... 179 7.4.1 Probability of project completion time...................... 182 7.5 Project scheduling with time-cost tradeoffs....................... 183 7.5.1 Formulating an LP model to crash a project................... 186 7.5.2 Using LINGO to solve the LP model for crashing a project.......... 188 7.6 Exercises........................................... 190 8 Network models 193 8.1 Introduction......................................... 193 8.2 The shortest-route problem................................ 193 8.2.1 A shortest-route algorithm............................ 194 8.2.1.1 The labelling phase........................... 194 8.2.1.2 Backtracking phase........................... 199 8.2.2 Formulating the shortest-route problem as an LP model........... 209 8.2.3 Solving shortest-path problems with LINGO.................. 211 8.3 The maximum-flow problem............................... 213 8.4 The minimum-spanning tree problem.......................... 218 8.4.1 Minimum-spanning tree algorithm 1....................... 218 8.4.2 Minimum-spanning tree algorithm 2....................... 223 8.5 Exercises........................................... 227 A Solutions to exercises 231 A.1 Chapter 1: Descriptive statistics.............................. 231 A.2 Chapter 2: Probability concepts.............................. 236 A.3 Chapter 3: Probability distributions........................... 241 A.4 Chapter 4: Estimation................................... 246 A.5 Chapter 5: Correlation and regression.......................... 248 A.6 Chapter 6: Decision analysis................................ 250 A.7 Chapter 7: Project management.............................. 260 A.8 Chapter 8: Network models................................ 273 B Statistical tables 281 B.1 The cumulative Poisson distribution........................... 281 B.2 The standard normal distribution............................. 283 B.3 Student s t-distribution................................... 284

DSC2602/1/2010 x B.4 The F-distribution...................................... 285 B.5 The cumulative binomial distribution.......................... 289 C Bibliography 295

CHAPTER 1 Descriptive statistics 1.1 Introduction N O business can exist without the information given by numbers. Managing numbers is an important part of understanding and solving problems. Numbers provide a universal language that can easily be understood and supply a description of some aspects of most problems. The collection of numbers and other facts such as names, addresses, opinions etc. provides data. The data only becomes information when it informs the user. Statistics is about changing data to information by analysing the data. The Statistical analysis can be divided into two main branches namely descriptive statistics and inferential statistics. Descriptive statistics deals with methods of organising, summarising and representing data in a convenient and informative way by means of tabulation, graphical representation and calculation of descriptive measures. Inferential statistics is a body of methods used to draw conclusions or inferences about characteristics of populations based on sample data by using the descriptive measures calculated. In this chapter we discuss methods for collecting data and some descriptive statistics. 1.2 Data collection Data can come from existing sources or may need to be collected. Technology makes it possible to collect huge amounts of data. For example, retailers collect point-of-sale data on products and customers and credit agencies have all sorts of data on people who have or would like to obtain credit. In the case where data must be collected, data can be collected from a census where everybody or every item of interest is included or from a sample from the population of interest. 1

DSC2602 2 First we look at an example to clarify some definitions. A tyre company, Radial, advertises that its XXX tyres, generally known as Triple X, will complete at least 65 000 km before one of the four tyres will no longer meet the minimum safety requirements. Several complaints, however, have been received that the tyres completed only 50 000 km before the minimum requirements were exceeded. Radial sells directly to the public and it is company policy to keep a record of each customer. During the two years that XXX tyres have been manufactured, 2 600 sets have been sold. Radial feels that they just do not have the time, personnel or money to locate and question all 2 600 of their customers. They feel that if they question 100 customers, they will get a good idea of the actual situation. In other words, they will take a sample of 100 from a population of 2 600. Consider the following definitions: VARIABLE: Any property or characteristic that can be measured or observed, is called a variable. A variable can take on a range of different values. For example, the distance completed on a set of tyres differs for each customer and the observations therefore vary continually. In Radial s case, distance completed is a variable. SAMPLE UNIT: The sample unit is the item that is measured or counted with regard to the variable being studied. Radial s sample unit is a set of tyres measured for minimum safety requirements. POPULATION: A population is the set of all the elements or items being studied. In Radial s case, the 2 600 sets of XXX tyres that have been sold form the population. SAMPLE: A sample is a representative group or a subset of the population. The 100 sets of tyres that Radial will investigate, form the sample. Note: What is very important is that the sample must always be representative of the population. It should be designed and administrated in such a way as to minimise the chance of being biased (sample outcome does not represent the population of interest). If the sample is likely to leave out certain people or there is a relatively high level of non-response, it would probably not be representative of the population. 1.3 Sampling methods 1.3.1 Simple random sampling A good sample requires that every item in the population has an equal and independent chance of being included in the sample. A simple random sample of n elements is a sample that is chosen in such a way that every combination of n elements has an equal chance of being the sample selected. One method of drawing a simple random sample is to allocate a number to each item in the

3 DSC2602 population. A computer is used to generate a sequence of random numbers. These numbers are then used to identify items in the population to be included in the sample. Example 1.3.1 Printapage, a printing company, has 30 clients with outstanding balances (in Rand) as shown in Table 1.1. Account Account number Balance number Balance 1 25 16 0 2 0 17 102 3 605 18 215 4 1 010 19 429 5 527 20 197 6 34 21 159 7 245 22 279 8 59 23 115 9 667 24 27 10 403 25 27 11 918 26 291 12 801 27 16 13 227 28 0 14 0 29 402 15 47 30 570 Table 1.1: Outstanding balances (in rand) The following random numbers are available: 22; 17; 83; 57; 27; 54; 19; 51; 39; 59; 84 and 20. Use these numbers to draw a random sample of 5 from the 30 customer accounts. Solution Since the total number of elements in the population is 30, an account number larger than 30 will be of no use. The sample units are the numbers of the accounts to be drawn. These are The corresponding outstanding balances are 22; 17; 27; 19 and 20. 279; 102; 16; 429 and 197.

DSC2602 4 Example 1.3.2 A political candidate wishes to determine the opinions of the voters in his ward. He decides on a sample size of 20. Using random numbers, he chooses 20 telephone numbers from the directory for a telephonic survey. Is this procedure correct? Give a reason for your answer. Solution Not all residents will have telephones, and the numbers of those who do have telephones may not all be included in the telephone directory. Such a sample can therefore not be considered random. 1.3.2 Stratified random sampling Simple random sampling requires no prior (a priori) knowledge of the population and can therefore be done with relatively little effort. It could, however, happen that all the elements drawn for the sample, are nearly homogeneous or alike. This may cause the conclusions about the population to be biased. If, however, you have prior information about the population, you could rule out this problem to some degree and consider more correct information about the population by making use of stratified random sampling. The population is divided into mutually exclusive sets or strata. This means that a specific element may only belong to one group or stratum. The strata must be chosen in such a way that there will be large differences between the strata, but small differences between the elements within the same stratum. Now simple random samples are taken from each stratum. The number of elements taken from each is often proportional to the size of that stratum. Example 1.3.3 Divide Printapage s 30 customers into three strata as follows: Stratum Balance 1 < 200 2 200 600 3 > 600 A proportional sample of size 12 must be drawn from the population. How would you do it? Solution Printapage s customers are divided into three strata, as shown in Table 1.2.

5 DSC2602 Stratum 1 Stratum 2 Stratum 3 Account Balance Account Balance Account Balance number (< R200) number (R200 R600) number (> R600) 1 25 5 527 3 605 2 0 7 245 4 1 010 6 34 10 403 9 667 8 59 13 227 11 918 14 0 18 215 12 801 15 47 19 429 16 0 22 279 17 102 26 291 20 197 29 402 21 159 30 570 23 115 24 27 25 27 27 16 28 0 Frequency=15 Frequency=10 Frequency=5 Table 1.2: Dividing Printapage s data into 3 strata To draw a proportional sample of size 12, the following number of items must be drawn from each stratum: 15 12=6 elements from stratum 1, 30 10 12=4 elements from stratum 2, and 30 5 12=2 elements from stratum 3. 30 Lastly, a simple random sample as describe in the previous section is drawn from each stratum. 1.3.3 Systematic sampling Systematic sampling starts at a randomly selected starting point in the population. Each subsequent k-th element is then chosen. Example 1.3.4 A political candidate wishes to determine the opinions of the voters in his ward. He has a list of voters available. One way of obtaining a systematic sample would be to start with voter number 6 and then select every tenth voter to complete a questionnaire. What are the advantages and disadvantages of such a method?

DSC2602 6 Solution Advantage(s): Systematic sampling is convenient, especially when the size of the population is not known. Disadvantage(s): If the variable being considered is periodic in nature, systematic sampling could produce misleading results. For example, if we were to estimate a shop s sales using a 1-in-7 systematic sampling design, it could happen that only sales figures for Saturdays were selected. Sales would then be overestimated. 1.4 Presentation of data Once data has been collected either by you or by someone else, the initial task is to obtain some overall impression of the findings. This can be done by visually representing the data using frequency tables, charts and diagrams. But before we try to visualise the data, let us first consider the different types of data one might get. 1.4.1 Types of data There are two main groupings of data qualitative and quantitative. Qualitative data is characterised by categorical answers such as yes or no, male or female, etc. Quantitative data is characterised by numerical values. Quantitative data can further be divided into two groups, discrete data and continuous data. Discrete data include everything that can be considered as a separate unit because of its nature, for example, number of units sold, number of consumers, number of job opportunities, etc., that is everything that you can count on your fingers. Continuous data are usually the result of a measurement and do not consist of fixed, isolated points. There can be a whole range of values between any two values. Examples are length, mass, time and temperature measurements. Example 1.4.5 Classify the data in each of the following questions: (a) Do you own a TV set? Yes No (b) How many TV sets do you own? (c) How many kilometres did you drive on your set of Radial tyres? (d) What was your electricity bill last month?

7 DSC2602 Solution (a) Qualitative (b) Quantitative discrete (c) Quantitative continuous (d) Quantitative continuous Let s look at Radial s data again. Radial, the company introduced in Section 1.2, has taken a sample of 100 and is happy that it is representative. The sample elements (in thousands) are shown in Table 1.3. 61 42 59 98 61 82 45 51 14 32 38 24 72 64 77 16 62 32 54 46 19 77 46 64 29 78 45 86 51 22 58 70 50 72 26 34 58 40 54 30 66 46 37 59 62 70 90 62 67 61 64 69 78 88 80 50 86 70 64 74 72 45 66 75 22 69 62 40 69 74 66 46 75 67 83 54 50 67 51 62 64 59 66 45 53 78 56 80 48 64 75 16 67 61 51 77 58 66 72 75 Table 1.3: Sample elements for Radial We identified Radial s data as quantitative and continuous. Perhaps if we could picture the data, we would be able to form a better idea of what is going on. 1.4.2 The frequency table and histogram The histogram is one of the most common ways of visually representing data. It is a graphical representation of a frequency table. A frequency table is a table in which the data are grouped into intervals. To draw a histogram we must first set up a frequency table. The steps needed to set up a frequency table are as follows: Step 1 Find the range (R) of the data, where R= maximum value of data set minimum value of data set. Step 2 Decide on the number of intervals. If the number of intervals used are too few or too many, one cannot get a good idea of the distribution of the data. It is not always easy to decide how many intervals to use. R is a good number if R is large, but any number between 5 and 8 is acceptable. Do 10 not use fewer than 5.

DSC2602 8 Step 3 Determine the width of the intervals as R number of intervals. The width must be a whole number this will make it easier to determine the limits of the intervals. Step 4 Determine the interval limits. The limits should be such that there is no doubt into which interval a value falls. For example, when we are working with Radial s data, we cannot choose intervals such as 55 65 65 75 Why not? Well, where would you place a value of 65? For the mathematical manipulations that we will be doing with grouped data, it is also necessary that we do not work with intervals such as 55 just smaller than 65 65 just smaller than 75 What does just smaller than 65 mean? The rule that we will use is to take the lower limit of the first interval as half a unit less than the minimum value, so that there can be no confusion as to which interval a value belongs. The lower limit of the first class must be a value which is smaller than the minimum data value and the upper limit of each interval is the same as the lower limit of the succeeding interval. Step 5 Tabulate the data. Example 1.4.6 (a) Set up a frequency table for Radial s data shown in Table 1.3. (b) What percentage of customers were able to do 80 000 km or more on a set of tyres? (c) What percentage of customers were able to do 46 000 km or less on a set of tyres? (d) Draw a histogram of the data using the frequency table.

9 DSC2602 Solution (a) Set up the frequency table following these steps: Step 1 The range of the data: The minimum value is 14 and the maximum value is 98. The range is therefore R=98 14=84. Step 2 The number of intervals: The number of intervals is calculated as R 10 = 8,4. Therefore, use 8 intervals. Step 3 The interval width: The interval width is calculated as R 8 = 84 = 10,5. Therefore, use a width of 11. 8 Step 4 The interval limits: The interval limits are determined as follows: The minimum value is 14 so the lower limit of the first interval will start at half a unit less than the minimum, which is 13,5. The upper limit of the first interval is determined by adding the width to the lower limit, that is 13,5+11=24,5. The first interval is therefore 13,5 24,5. The second interval starts at 24,5 and also has a width of 11. Its upper limit is therefore 24,5+11=35,5. The last interval starts at 90,5 and its upper limit is 101,5, which is well above the largest element in the sample. The intervals are: =11 { }} { 13,5 24,5 Step 5 Tabulate the data: 24,5 35,5 35,5 46,5 46,5 57,5 57,5 68,5 68,5 79,5 79,5 90,5 90,5 101,5 The only remaining thing to do is to group the data into the intervals. Now go back to the data set and consider the first four sample elements in the first row, which are 61, 38, 19 and 58. Our aim is to find in which one of the following intervals they belong:

DSC2602 10 Interval 13,5 24,5 24,5 35,5 35,5 46,5 46,5 57,5 57,5 68,5 68,5 79,5 79,5 90,5 90,5 101,5 19 Fit in the first interval because it is greater than 13,5 and less than 24,5. 38 Fit in the third interval because it is greater than 35,5 and less than 46,5. 61 and 58 Fit in the fifth interval because they are greater than 57,5 and less than 68,5 Instead of writing 19; 38; 61 and 58 in their corresponding intervals, we represent them with a line,, as follows Interval 13,5 24,5 24,5 35,5 35,5 46,5 46,5 57,5 57,5 68,5 68,5 79,5 79,5 90,5 90,5 101,5 The fifth element in a group of lines is indicated by a line drawn across the group: represents a group of five. Note: The total number of elements falling into an interval is called the frequency. The complete frequency table for Radial is given in Table 1.4. Interval Frequency 3,5 24,5 7 24,5 35,5 6 35,5 46,5 13 46,5 57,5 13 57,5 68,5 30 68,5 79,5 22 79,5 90,5 8 90,5 101,5 1 Total 100 Table 1.4: The frequency table for Radial It is clear that the highest frequency occurs in the interval 57,5 68,5. This shows that most of the customers were able to do between 57,5 and 68,5 thousand kilometres on a set of tyres.

11 DSC2602 (b) The intervals 79,5 90,5 and 90,5 101,5 represent the number of customers who were able to drive 80 000 km or more on a set of tyres. The total number is thus the sum of the frequencies in these intervals, namely 8+1=9. The percentage of customers who were able to do 80 000 km or more on a set of tyres is 9 100 100%=9%. Note: The fraction 9 is called the relative frequency. 100 (c) The first three intervals account for the customers who were able to drive 46 000 km or less. The sum of the frequencies in these intervals, namely 7+6+13=26 is thus equal to the total number of customers. The percentage of customers who were only able to do 46 000 km or less on a set of tyres is 26 100 100%=26%. (d) Now we can graphically represent the frequency table by drawing the interval lengths on a horizontal axis and the frequencies on a vertical axis. This is called a histogram. The histogram for Radial is given in Figure 1.1. Frequency 35 30 25 20 15 10 5 0 13,5 24,5 35,5 46,5 57,5 68,5 79,5 90,5 101,5 Distance Figure 1.1: Histogram for Radial (Notice that the horizontal axis starts at 0 and that the zigzag line is there to break the line in order to prevent a huge space from appearing on the left of the actual graph.) 1.4.3 The pie chart Another way of representing data is by means of a pie chart. A pie chart is drawn as a circle and the slices of the circle represent the relative frequencies expressed as a percentage. It is often difficult to draw a pie chart by hand. In Radial s case one needs to divide the circle into 100 equal slices not an easy task! The pie chart for Radial is more or less as shown in Figure 1.2.

DSC2602 12! # # " $ # " #! # # $!! # " # % & ' # # % ' # ' # " $ # # % #!! $ & # % ' # # % # $ & # Figure 1.2: Pie chart representing Radial s data 1.4.4 The cumulative frequency polygon We calculated in Example 1.4.6 that 26% of the customers was only able to do 46 000 km or less on a set of tyres. Such information can be presented graphically if we first obtain the cumulative less than table. Such a table is set up from the frequency table, setting the upper limits to less than.... The cumulative frequency table for Radial is given in Table 1.5. Upper limit Frequency Cumulative frequency < 24,5 7 7 < 35,5 6 13 (7+6=13) < 46,5 13 26 (7+6+13=26) < 57,5 13 39 (7+6+13+13=39) < 68,5 30 69 (7+6+13+13+30=69) < 79,5 22 91 etc. < 90,5 8 99 < 101,5 1 100 Table 1.5: The cumulative frequency table for Radial You have probably realised that cumulative means added up. This information can now be represented by a cumulative frequency polygon as shown in Figure 1.3.

13 DSC2602 Cumulative frequency 100 90 80 70 60 50 40 30 20 10 0 24,5 35,5 46,5 57,5 68,5 79,5 90,5 101,5 Distance Figure 1.3: The cumulative frequency polygon for Radial 1.4.5 The stem-and-leaf diagram The stem-and-leaf diagram is also a useful diagram and is easy to set up. The first step is to decide how to separate each observation into two parts - the stem and the leaf. Radial s data can be separated in such a way that the first digit of each number is the stem and the second digit is the leaf. First we determine the biggest and smallest numbers in the data set and separate them into a stem and a leaf. The smallest number in the data, 14, has stem 1 and leaf 4. The largest number, 98, has stem 9 and leaf 8. Next we fill in the rest of the data. All the other numbers lie between these two. We can therefore set up the stem from 1 to 9, with the second digit of each number being written next to its stem, as shown in Table 1.6. Stem Leaf Frequency 1 9 6 6 4 4 2 4 9 6 2 2 5 3 8 7 4 2 2 0 6 4 2 6 5 6 6 5 5 5 0 0 8 6 12 5 8 9 9 0 9 3 1 0 4 8 0 6 8 1 4 1 4 1 18 6 1 6 4 6 4 9 6 6 7 4 4 7 1 1 2 9 2 2 2 7 6 7 4 9 1 2 4 27 7 2 5 7 0 2 8 5 2 5 7 8 0 8 7 0 2 4 4 5 19 8 8 0 3 2 6 6 0 7 9 8 0 2 Table 1.6: Stem-and-leaf diagram for Radial (unsorted) But every stem s leaf MUST be in ascending order (from the smallest value to the largest). Radial s sorted stem-and-leaf diagram is given in Table 1.7.

DSC2602 14 Stem Leaf Frequency 1 4 6 6 9 4 2 2 2 4 6 9 5 3 0 2 2 4 7 8 6 4 0 0 2 5 5 5 5 6 6 6 6 8 12 5 0 0 0 1 1 1 1 3 4 4 4 6 8 8 8 9 9 9 18 6 1 1 1 1 2 2 2 2 2 4 4 4 4 4 4 6 6 6 6 6 7 7 7 7 9 9 9 27 7 0 0 0 2 2 2 2 4 4 5 5 5 5 7 7 7 8 8 8 19 8 0 0 2 3 6 6 8 7 9 0 8 2 Table 1.7: Stem-and-leaf diagram for Radial Now turn the page on its side. It is easy to see that most of the customers drove between 60 000 and 70 000 thousand kilometres on a set of tyres. 1.5 Descriptive measures The presentation of charts and diagrams can be regarded as the first step in analysing data and is not sufficient for most purposes. They provide an overall picture of the data but give only an approximate indication of specific properties such as midpoint and spread of data. Proper analysis requires a summary of the data in the form of descriptive statistical measures. Descriptive measures are single numerical values that indicate the shape or distribution of the data set. There are descriptive measures of location, spread, symmetry and kurtosis. 1.5.1 Measures of locality A measure of location or position gives an indication of the midpoint or general size of the distribution. Examples are the mean, median and mode of a data set. 1.5.1.1 The mean Radial advertises that its XXX tyres will last for at least 65 000 km before one of the four tyres will no longer meet the minimum safety requirements. What is the mean number of kilometres that can be driven on a set of XXX tyres? Radial has only the sample of 100 observations available for estimating the mean. If we consider the sample as being representative of the population, we can use the sample mean as an estimator of the population mean. To obtain the sample mean we add up all the observations and divide the result by the number of observations. (This is called the arithmetic mean.) If we add up all the observations in Radial s sample and divide the sum by the number of observations, we get 5 828 100 = 58,28.

15 DSC2602 We can therefore expect a set of tyres to last 58,28 1 000=58 280 km on average. The formula for the mean is where x= 1 n x (read as x-bar) is the generally accepted symbol for the arithmetic mean, n is the number of observations, is the Greek letter for S and means sum, x i represents the i-th observation, and n x i is just another way of writing x 1 + x 2 +...+x n. i=1 Note: You may enter the data into the statistics mode of your calculator and find the value of the mean by pressing a button. This is much faster than doing the calculation by hand. See the manual of your calculator. When the raw data, that is the values in the original data set, are available, it is easy to calculate the mean. Sometimes, however, the data is given in the form of a frequency table and the actual values are not known. Let s look at Radial s data again. Assume that Radial s sample data is available in the following form only: (Distance in 1 000 km) n i=1 x i Interval Frequency ( f i ) 13,5 24,5 7 24,5 35,5 6 35,5 46,5 13 46,5 57,5 13 57,5 68,5 30 68,5 79,5 22 79,5 90,5 8 90,5 101,5 1 100 We do not know what the actual values in each interval are. For computational purposes we make the following assumption: All values in an interval are equal to the middle value of the interval. The middle value is calculated by adding the lower and the upper limits of the interval and dividing the result by two. The middle value of the first interval is: 13,5+24,5 2 = 19.

DSC2602 16 We thus assume that all the observations in the first interval are equal to 19. The contribution of these seven observations to the grand total is therefore: 7 19=133. The formula for the mean of a frequency distribution is x= k i=1 f ix i k i=1 f i where f i x i k = the frequency for the i-th interval, = the middle value of the i-th interval, and = number of intervals. Note: Data in a frequency table are often referred to as grouped data. Example 1.5.7 Calculate the mean distance travelled on a set of XXX tyres using the frequency distribution in Table 1.4. Solution In Table 1.8 the frequency, f i, the middle value, x i, and the product of these are given for each interval. Interval f i x i f i x i 13,5 24,5 7 19 133 24,5 35,5 6 30 180 35,5 46,5 13 41 533 46,5 57,5 13 52 676 57,5 68,5 30 63 1 890 68,5 79,5 22 74 1 628 79,5 90,5 8 85 680 90,5 101,5 1 96 96 100 5 816 Table 1.8: Calculating the mean from the frequency table The mean is calculated as x= k i=1 f ix i k i=1 f i = 5 816 100 = 58,16. The mean distance is therefore 58,16 1 000 = 58 160 km. Note: The intervals of the frequency distribution are all of equal width, that is 11. After you have calculated the middle value of the first interval, the successive middle values can be obtained by adding 11 to the previous middle value.

17 DSC2602 The calculation based on the above assumption resulted in a total that is different from the actual total. A mean calculated in this way will differ from the actual mean. For example, if the observations in the interval 79,5 90,5 are: 88; 80; 83; 82; 90; 86; 86; 80, their sum is 675. If we use the middle value and the frequency of each interval and then calculate the contribution to the total of the observations in the interval 79,5 90,5, their sum is 680. Interval Frequency Middle value f i x i f i x i 79,5 90,5 8 85 8 85=680 In our example the mean obtained using the original data values is 58 280 km, while the mean obtained using the frequency distribution is 58 160 km. The mean is the measure of locality that is used most often. It can, however, be misleading. For example, if we calculate the mean of 2; 3; 5; 71, we see that the mean will be x= 2+3+5+71 4 = 20,25. When a data set has a mean of 20, one intuitively expects most of the values to lie in the vicinity of 20. In this instance, however, most of the values are less than 6, while one value is an outlier of 71! The mean is rather sensitive to outliers and can often be misleading. On its own, without any additional information, it can often lead to incorrect conclusions. Another disadvantage of the mean is that it is a difficult task to calculate the mean for an open frequency distribution, as the following example will illustrate. Example 1.5.8 Table 1.9 gives the property value distribution for 15 420 000 ratepayers in the Steelcity Metropolitan Substructure. Property value Frequency (in Rands) (in thousands) Less than 25 000 5 518 25 000 50 000 3 372 50 000 100 000 4 010 100 000 200 000 1 846 200 000 500 000 576 500 000 1 000 000 76 More than 1 000 000 22 Table 1.9: Property value distribution

DSC2602 18 What assumptions will we have to make about the middle values of the first and the last interval? What is an acceptable lower limit for the first interval? What is an acceptable upper limit for the last interval? If we have access to the original data, we may be able to make a good guess, but this is not always possible. The use of the mean is therefore restricted when there are open distributions. A big advantage of the arithmetic mean is that it uses all the available data. Later we will see that this is not the case for the other measures of locality. Since the mean can be calculated exactly, it forms the basis for many advanced analyses and is not only descriptive in nature. 1.5.1.2 The median Since the mean is sensitive to extreme values (outliers), and may often result in misleading conclusions, the median is often preferred as a measure of locality. The median is the value that divides an ordered data set into two equal parts. If the data set is sorted in ascending order, 50% of the data values will lie below, or to the left, of the median, and 50% will lie above, or to the right of the median. The median is determined as follows: If a data set of size n is sorted in ascending sequence, then the median (me) is the n+1 -th value of the data set. 2 Example 1.5.9 Solution Determine the median of the following data sets: (a) 6, 9, 12, 12, 13, 15, 18, 24, 27 (b) 2, 3, 5, 71 (a) The data set is arranged in ascending order and n=9. The median (me) is the 9+1 = 5-th value, that is the median is 13. 2 (b) The data set is arranged in ascending order and n=4. The median (me) is the 4+1 2 = 2 1 -th value. 2 The 2 1 -th value is a value between the second and third values, that is halfway between 2 3 and 5 or 3+5 = 4. The median is therefore 4 and we can say that 50% of the data lie 2 to the left of 4 and 50% to the right of 4. The median may also be calculated for a frequency table. The cumulative frequency table is used to identify the median interval.

19 DSC2602 Let s use Radial s data once again, as shown in Table 1.10. Interval Frequency ( f i ) Cumulative frequency 13,5 24,5 7 7 24,5 35,5 6 13 35,5 46,5 13 26 46,5 57,5 13 39 57,5 68,5 30 69 68,5 79,5 22 91 79,5 90,5 8 99 90,5 101,5 1 100 Table 1.10: Cumulative frequency table for Radial To identify the median interval, find the interval within which the n+1 2 = 100+1 2 = 50,5th value occurs. The median interval is therefore 57,5 68,5. The biggest advantage of the median is that open intervals pose no problem and it is not affected by extreme values. However, it ignores the largest part of the data and cannot be manipulated mathematically. 1.5.1.3 The mode The mode of a data set is the value that occurs most often. Consider the following example: A survey was conducted amongst 1 000 married couples who were married eight years ago. Table 1.11 gives the frequency table of the data obtained. Number of children per couple x i Number of couples f i 0 364 Highest frequency 1 362 2 226 3 44 4 4 Table 1.11: Frequency table for number of children per couple It is clear that most couples have no children. The mode is therefore zero. The mode, however, is not a good measure of locality. Sometimes there is no value that occurs more than any other value, or there is more than one value with the same maximum number of occurrences. In addition, the mode has the same drawbacks as the median. The only thing in favour of the mode is that it is easy to understand. For grouped data the modal interval is the interval with the highest frequency.

DSC2602 20 1.5.2 Measures of dispersion 1.5.2.1 The variance of a data set In the previous section, we considered the problems that occur when working with a measure of locality only. Even though the arithmetic mean, uses all the values in a data set, it does not give much information about what the data set really looks like. We also need information on the spread of the data around the mean. Consider the data set 5; 3; 8; 4; 1; 5; 0; 6 with a mean of x= 32 8 = 4. Let s plot the data points around the mean: x=4...... 5 3...... 8 1 4...... 5 0... 6 Now calculate the distance from x=4 to each value and then calculate the mean of these distances. 1+1+4+0+3+1+4+2=16 and 16 8 = 2. When we work with Radial s sample it may be quite difficult to calculate the mean distance how long do you think it would take using 100 values? An alternative is to calculate the deviation from the mean for each observation, that is x x: 1; 1; 4; 0; 3; 1; 4; 2. When these are added, you get 0, which tells you nothing! However, the number crunchers of the old days did not become discouraged, and came up with the clever idea of using (x x), and squaring it. The square of any value is always a positive number. The mean of the squared deviations is called the variance. The positive square root of the variance is called the standard deviation, and we will use this measurement to give an indication of the spread of data around the mean. The variance of a sample is defined as s 2 = n i=1(x i x) 2. n 1 Notice that we divide by n 1 and not by n. The reason for this is that the sample variance (s 2 ) is used to estimate the population variance (σ 2 ). If we were to divide by n, it would give an

21 DSC2602 underestimation of the population variance. Division by n 1 therefore gives a better estimator. Calculators normally can calculate s 2 andσ 2. Make sure which one you should use on your calculator. The squared deviations of our sample are calculated in Table 1.12. x i (x i x) (x i x) 2 5 1 1 3 1 1 8 4 16 4 0 0 1 3 9 5 1 1 0 4 16 6 2 4 48 Table 1.12: Calculations to find the variance and the standard deviation The variance s 2 = 48 (8 1) = 6,86 and the standard deviation s= 6,86=2,62. An alternative formula for computing the variance is s 2 = n(σn i=1 x2 i ) (Σn i=1 x i) 2 n(n 1) Note: You may enter the data into the statistics mode of your calculator and find the value of the standard deviation by pressing a button. This is much faster than doing the calculation by hand. See the manual of your calculator. The variance can also be calculated for grouped data. For a frequency table the sample variance is defined as follows: where s 2 = k i=1 f ix 2 i n x 2 n 1 x= k i=1 f i x i k i=1 f i = k i=1 f i x i n ; Let s look at Radial s data again. x i = middle value of the i-th interval, and k n= f i. i=1 The variance of Radial s frequency table is calculated in Table 1.13. (Remember that we have already calculated the mean as x=58,16.) The variance s 2 = 371 490 100 58,162 100 1 = 33 231,44 99 = 335,67.

DSC2602 22 Interval f i x i f i x 2 i 13,5 24,5 7 19 2 527 24,5 35,5 6 30 5 400 35,5 46,5 13 41 21 853 46,5 57,5 13 52 35 152 57,5 68,5 30 63 119 070 68,5 79,5 22 74 120 472 79,5 90,5 8 85 57 800 90,5 101,5 1 96 9 216 100 371 490 Table 1.13: Calculations for the variance of Radial s frequency table 1.5.2.2 The standard deviation of a data set The standard deviation is defined as the square root of the variance. The standard deviation of a sample is defined as s= s 2 n i=1 = (x i x) 2. n 1 But what does this tell us? It tells us how far away the observations are from the mean. The larger the standard deviation, the further away the data points are from the mean. The following schematic representation shows how many of the data points lie between one standard deviation to the left and to the right of the mean, and between two standard deviations to the left and to the right of the mean. 95% 68% 2s s x +s +2s The standard deviation plays a important role in inferential statistics that is, the field where the problem of making scientifically based conclusions about populations, using sample data, is considered. 1.5.2.3 The quartile deviation The median is that value which separates a sorted data set into two equal parts.

23 DSC2602 50% 50% If we divide a sorted data set into four equal parts we get the following four quartiles: me 25% 25% 25% 25% me q 1 q 2 q 3 q 1 represents the value that indicates the end of the first 25% of the data values; q 2 represents the value that indicates the end of the second 25% (or the value which divides the data set into two equal parts, that is the median); and q 3 is the value indicating the end of the third 25%. The middle 50% of the data lies between q 1 and q 3. The quartile deviation is q D = q 3 q 1 2 and is the measurement of the dispersion of the data around the median. As with the median, the quartile deviation does not use all the observations. It ignores outliers since the top 25% and the bottom 25% of the data values are not taken into account. Example 1.5.10 The purchasing manager of a group of clothing shops has recorded the following 15 observations on the number of days that pass between reordering items from a new range of children s clothing. Reordering intervals (in days) 17 18 26 15 17 26 23 29 28 18 22 5 12 23 22 Solution Calculate and interpret the quartile deviation of the reordering intervals. The value of the median or q 2 is the value of the 1 (n+1)th observation in a ranked data set. 2 Similarly, the value of q 1 is the value of the 1(n+1)th observation and the value of q 4 3 is the value of the 3 (n+1)th observation in an ordered data set. 4 (An ordered data set is a data set that is arranged in ascending order.) The ordered data set is: 5; 12; 15; 17; 17; 18; 18; 22; 22; 23; 23; 26; 26; 28; 29.