Presentation is loading. Please wait.

Presentation is loading. Please wait.

SESSION 5 & 6 Last Update 23 rd February 2011 Introduction to Statistics.

Similar presentations


Presentation on theme: "SESSION 5 & 6 Last Update 23 rd February 2011 Introduction to Statistics."— Presentation transcript:

1 SESSION 5 & 6 Last Update 23 rd February 2011 Introduction to Statistics

2 Lecturer:Florian Boehlandt University:University of Stellenbosch Business School Domain:http://www.hedge-fund- analysis.net/pages/vega.php

3 Learning Objectives Part 1 1.Sampling (Random Sampling) 2.Sampling Error 3.Nonsampling Error

4 Sampling Why? Cost! The sample proportions are used as an estimate for the population proportions Examples: – Nielsen ratings (1,000 television viewers) – Quality Management (destroy items?)

5 Terminology Target Population: the population about which statisticians want to draw inferences Sampled Population: The actual population from which the sample is taken The sample statistic is a good estimator of the population parameter if target population = sampled population

6 Terminology Self-selected samples are always biased, because individuals who participate are more keenly interested in the issue than non- participants (SLOP = self-selected opinion poll)

7 Sampling Plan A simple random sample is a sample selected in such a way that every possible sample with the same number of observations is equally likely to be chosen. A stratified random sample is obtained by separating he population into mutually exclusive sets (strata), and then drawing simple random samples form each stratum.

8 Sampling Plan A cluster sample is a simple random sample of groups or cluster of elements

9 Simple Random Sampling Concept: Raffles  each element of the chosen population is assigned a unique number and then ‘drawn from a hat’ +Social security numbers +Student numbers – Telephone numbers A random number table / random number generator (Excel: RAND) can be used to select sample numbers.

10 Simple Random Sampling Example Tax Returns (Keller 2006: p. 148)

11 Stratified Random Sampling Concept: Increase the amount of information aboiut the population Examples of criteria separating the population into strata: – Gender – Age – Occupation – Household Income

12 Stratified Random Sampling Example Proposed Tax Increase: 1.Draw random samples form four income groups according to their proportions in the population 2.Make adjustments before making inferences about the entire population StratumIncome ‘000sPopulation %Sample 1Under 2525%250 225-4940%400 350-7530%300 4Over 755%50 Total1,000

13 Systematic Sampling Concept: sample members are chosen in a regular manner working progressively through the list Example Vega students: 500 students from Vega’s 8,500 enrolled students: 8,500 / 500 = 17. Thus, every 17 th student would be selected

14 Cluster Sampling Concept: Useful when it is difficult or costly to develop a complete list of population members (i.e. making it difficult to draw a simple random sample) or when the population elements are widely dispersed (geographically) Example: Each block within a city represents a cluster. A sample of clusters could then be selected and every household within these clusters is questioned (sampling error?  sample size)

15 Sampling Error Sampling error refers to the differences between the sample and the population that exist because of the observations that happened to be selected for the sample. The value of the sample mean will deviate from the population mean simply by chance The difference between the true (unknown) value of the population mean μ and its estimate (the sample mean x-bar) is the sampling error The only way to reduce the sampling error is to increase the sample size n

16 Nonsampling Error Nonsampling errors are due to mistakes made in the acquisition of data or due to the sample observations being selected improperly Nonsampling errors are more serious than sampling errors, because taking a larger sample won’t diminish the size, or possibilty of occurrence, of this error

17 Types of Nonsampling Error Errors in data acquisition: incorrect measurements/responses, inaccurate recording Nonresponse error: refers to bias introduced when responses are not obtained from some members of the sample (not representative of target population); self-administered surveys Selection bias: Some members of the target population cannot possibly be included in the sample (e.g. members have no phone)

18 Learning Objectives Part 2 4.Frequency Tables 5.Histograms 6.Class Intervals and Width

19 Frequency Tables – Data Types Interval DataOrdinal DataNominal Data CategoriesClass Intervals Count the number of times each category of the variable occurs Count the number of observations that fall into each of a series of intervals Frequency Distribution HistogramBar Chart

20 Frequency Tables – Data Types There are times when a data set contains a large number of values (even when the data type is nominal) that would result in a table with too many rows to be convenient. We can overcome this problem by grouping the data into fewer categories or classes and then compiling a grouped frequency distribution.

21 Frequency Tables – Data Types Ungrouped Data CategoriesClass Intervals Count the number of times each category of the variable occurs Count the number of observations that fall into each of a series of intervals Frequency Distribution HistogramBar Chart Grouped Data

22 Frequency Tables – Data Types Example 1: Coffee refills Data type nominal; Data ungrouped  Categories Example 2: Class marks out of 100 Data type nominal; BUT: Data may be grouped  Class intervals (approximately interval) Example 3: Waiting times at supermarket cashiers Data type interval  Class intervals

23 Number of Categories Nominal / not grouped: 1.Determine maximum and minimum observation 2.Define categories including all distinct (integer) observations in between Example tossing two dice: Min: 2 Max: 12 Other possible outcomes: 2 4 5 6 7 8 9 10 11 (all outcomes accounted for)

24 Number of Class Intervals Interval or grouped data: The more observations there are the larger the number of class intervals required. Sturges’ Formula Number of class intervals = 1 + 3.3 log 10 (n) OR Number of class intervals = 1 + 1.4 ln(n) Example n = 50: Number of class intervals = 1 + 3.3 log 10 (50) = 1 + 3.3 * 1.70 = 6.61 ≈ 7 Number of class intervals = 1 + 1.4 ln(50) = 1 + 1.4 * 3.91 = 6.48 ≈ 6

25 Excursion Logarithms The logarithm of a number to a given base is the exponent to which the base must be raised in order to produce that number. (Example: 10^1.70 = 50) The natural logarithm is the logarithm to the base e, where e is an irrational constant approximately equal to 2.718. The natural logarithm of a number x (written as ln(x)) is the power to which e would have to be raised to equal x. (Example: e^3.91 = 50) The mathematical constant e (Euler’s number) is the unique real number such that the value of the derivative d/dx (slope of the tangent line) of the function f(x) = e x at the point x = 0 is equal to 1. It is called the exponential function.

26 Class Interval Width Class width: 1.Subtract largest observation from smallest observation 2.Divide by number of classes (Sturges) 3.Round class width to convenient value 4.Select a lower limit so that the first class interval contains the smallest observation. Determine all other intervals consecutively by adding (multiples) of the class width

27 Definitions Class Mark or Class Midpoint: Adding the lower class limits to the upper class limits and dividing by two  frequency polygon Width of a class interval or class length: The difference between the upper class limit and the lower class limit. Usually, all classes are of equal width / length (Sturges) Class Boundaries: The class limits are stated in such a way that there is no overlap between classes

28 Definitions Class Boundaries: The class limits are stated in such a way that there is no overlap between classes. Limits are stated in this manner so that there cannot be any doubt as to which class a certain value (observation) is to be allocated. Since data is often rounded, the true class limits are not the same as the stated class limits. Example: Weights recorded to the nearest kilogram Stated class interval: 60 – 62 True class interval or class boundaries: 59.5 – 62.5


Download ppt "SESSION 5 & 6 Last Update 23 rd February 2011 Introduction to Statistics."

Similar presentations


Ads by Google