
































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

































Data/Data set – Set of values collected or obtained when gathering information on some issue of interest.
Examples
The monthly sales of a certain vehicle collected over a period.
The number of passengers using a certain airline on various routes.
Rating (on a scale from 1 to 5) of a new product by customers.
The yields of a certain crop obtained after applying different types of fertilizer.
Statistics – Collection of methods for planning experiments, obtaining data, and then organizing, summarizing, presenting, analyzing, interpreting the data and drawing conclusions from it.
Statistics in the above sense refers to the methodology used in drawing meaningful information from a data set. This use of the term should not be confused with statistics (referring to a set of numerical values ) or statistics (referring to measures of description obtained from a data set).
Descriptive Statistics – Collection, organization, summarization and presentation of data. To be discussed in chapter 2.
Population – All subjects possessing a common characteristic that is being studied.
Examples
The population of people inhabiting a certain country.
The collection of all cars of a certain type manufactured during a particular month.
All patients in a certain area suffering from AIDS.
Exam marks obtained by all students studying a certain statistics course.
Census – A study where every member (element) of the population is included.
Qualitative variables – Variables that assume non-numerical values.
Examples
Nominal scale – Level of measurement which classifies data into categories in which no order or ranking can be imposed on the data.
A variable can be treated as nominal when its values represent categories with no intrinsic ranking. For example, the department of the company in which an employee works. Examples of nominal variables include region, postal code, or religious affiliation.
Ordinal scale – Level of measurement which classifies data into categories that can be ordered or ranked. Differences between the ranks do not exist.
A variable can be treated as ordinal when its values represent categories with some intrinsic order or ranking.
Examples
Quantitative variables – Variables which assume numerical values.
Examples Discrete and continuous variables examples given above.
Interval scale – Level of measurement which classifies data that can be ordered and ranked and where differences are meaningful. However, there is no meaningful zero and ratios are meaningless.
Examples
The difference between a temperature of 100 degrees and 90 degrees is the same difference as that between 90 degrees and 80 degrees. Taking ratios in such a case does not make sense.
When referring to dates (years) or temperatures measured (degrees Fahrenheit or Celsius) there is no natural zero point.
Ratio scale – Level of measurement where differences and ratios are meaningful and there is a natural zero. This is the “highest” level of measurement in terms of possible operations that can be performed on the data.
Examples
Variables like height, weight, mark (in test) and speed are ratio variables. These variables have a natural zero and ratios make sense when doing calculations e.g. a weight of 80 kilograms is twice as heavy as one of 40 kilograms.
Summary of 4 measurement scales
Measurement scale
examples Meaningful calculations
Nominal Types of music University faculties Vehicle makes
Put into categories
Ordinal Motion picture ratings: G- General audiences PG-Parental guidance PG-13 – Parents cautioned R - Restricted NC 17 – No under 17
Put into categories Put into order
Interval Years: 2009,2010, 2011 Months: 1,2,... , 12
Put into categories Put into order Differences between values are meaningfull Ratio rainfall humidity income
Put into categories Put into order Differences between values are meaningfull Ratios are meaningfull
Experiment – The process of observing some phenomenon that occurs.
An experiment can be observational or designed.
A designed experiment can be controlled to a certain extent by the experimenter. Consider a study of 4 fuel additives on the reduction in oxides of nitrogen. You may have 4 drivers and 4 cars at your disposal. You are not particularly interested in any effects of particular cars or drivers on the resultant oxide reduction. However, you do not want the results for the fuel additives to be influenced by the driver or car. An appropriate design of the experiment (way of performing the experiment) will allow you to estimate effects of all factors of interest without these outside factors influencing the results.
An observational study is not controlled by the experimenter. The characteristic of interest is simply observed and the results recorded. For example
2.1) Collecting data that compares reckless driving of female and male drivers. 2.2) Collecting data on smoking and lung cancer.
The sampling frame in this case definitely differs from the population. For example, it under-represents the categories which either have no telephone (e.g. the most poor), have an unlisted number, and who were not at home at the time of calls (e.g. employed people), who don't like to participate in telephone interviews (e.g. more busy and active people). Such differences between the sampling frame and the population of interest is a main cause of bias when drawing conclusions based on the sample.
Probability samples – Samples drawn according to the laws of chance. These include simple random sampling, systematic sampling and stratified random sampling.
Simple random sampling – Sampling in which each sample of a given size that can be drawn will have the same chance of being drawn. Most of the theory in statistical inference is based on random sampling being used.
Examples
The 6 winning numbers (drawn from 49 numbers) in a Lotto draw. Each potential sample of 6 winning numbers has the same chance of being drawn.
Each name in a telephone directory could be numbered sequentially. If the sample size was to include 2 000 people, then 2 000 numbers could be randomly generated by computer or numbers could be picked out of a hat. These numbers could then be matched to names in the telephone directory, thereby providing a list of 2 000 people.
We can use Excel to create a random sample of data. We can create many types of random samples using the formula: RANDBETWEEN
Example
Using the functions in Excel, select the 6 wining numbers in a Lotto draw.
We will start with an empty spreadsheet in Excel. To randomly select 6 lotto numbers numbered from 1 to 49, we click in cell A2 and type =RANDBETWEEN(1;49). Press Enter. Fill the other 5 numbers by dragging down.
The results will be displayed as below. Note: Your results will be different from those below.
The advantage of simple random sampling is that it is simple and easy to apply when small populations are involved. However, because every person or item in a population has to be listed before the corresponding random numbers can be read, this method is very cumbersome to use for large populations and cannot be used if no list of the population items is available. It can also be very time consuming to try and locate every person included in the sample. There is also a possibility that some of the persons in the sample cannot be contacted at all.
Systematic sampling – Sampling in which data is obtained by selecting every k th object,
where k is approximately n
Examples
A manufacturer might decide to select every 20th item on a production line to test for defects and quality. This technique requires the first item to be selected at random as a starting point for testing and, thereafter, every 20th item is chosen.
A market researcher might select every 10th person who enters a particular store, after selecting a person at random as a starting point; or interview occupants of every 5th house in a street, after selecting a house at random as a starting point.
A systematic sample of 500 students is to be selected from a university with an enrolled population of 10 000. In this case the population size N=10 000 and the sample size n=500. Then every 500
(^10000) = 20 th (^) student will be included in the sample.
The first student in the sample can be randomly selected from an alphabetical list of students and thereafter every 20 th^ student can be selected until 500 names have been obtained.
Stratified random sampling – Sampling in which the population is divided into groups (called strata) according to some characteristic. Each of these strata is then sampled using random sampling.
A general problem with random sampling is that you could, by chance, miss out a particular group in the sample. However, if you subdivide the population into groups, and sample from each group, you can make sure the sample is representative. Some examples of strata commonly used are those according to province, age and gender. Other strata may be according to religion, academic ability or marital status.
Example
A company is marketing a new product and needs to know how potential customers might react to the product.
Stage 1 : It is decided that age (the 3 groups under 20, 20-40, over 40) and gender (male, female) are the characteristics that will determine the sample.
Stage 2 : The 6 categories to be sampled from are (male under 20), (male 20-40), (male over 40), (female under 20), (female 20-40) and (female over 40).
Stage 3 : The numbers (sub-quotas) to be sampled are (male under 20) - 40, (male 20-40) - 60, (male over 40) - 25, (female under 20) - 35, (female 20-40) - 65 and (female over 40) -30. The total quota is the total of all the sub-quotas i.e. 255.
Stage 4 : Visit a place where individuals to be interviewed are readily available e.g. a large shopping center and interview people until all the quotas are filled.
Quota sampling is a cheap and convenient way of obtaining a sample in a short space of time. However, this method of sampling is not based on the laws of chance and cannot guarantee a sample that is representative of the population from which it is drawn.
When obtaining a quota sample, interviewers often choose who they like (within criteria specifications) and may therefore select those who are easiest to interview. Therefore, sampling bias can result. It is also impossible to estimate the accuracy of quota sampling (because sampling is not random).
All the data sets used in this chapter will be regarded as samples drawn from some population. One of the main purposes of studying a sample is to get information about the population. The main focus here is on summarizing and describing some features of the data.
Line graph – A line graph is a graph used to present some characteristic recorded over time. Example
The graph above shows how a person's weight varied from the beginning of 1991 to the beginning of 1995.
Bar charts
A bar chart or bar graph is a chart consisting of rectangular bars with heights proportional to the values that they represent. Bar charts are used for comparing two or more values that are taken over time or under different conditions.
Simple Bar Chart
In a simple bar chart the figures used to make comparisons are represented by bars. These are either drawn vertically or horizontally. Only totals are represented. The height or length of the bar is drawn in proportion to the size of the figure being presented. An example is shown below.
Pareto chart A Pareto chart is a special type of bar chart where the values being plotted are arranged in descending order. The graph is accompanied by a line graph which shows the cumulative totals of each category, left to right.
The graph below is a Pareto chart that shows the percentage of late arrivals at a place of work organized according to cause of late arrival (from the most common to the least common cause). The line shows the accumulated percentages.
Dot Plot
This is diagram where a line is drawn according to a scale that is appropriate for the data set and the values (in the data set) plotted at their positions on the scale. If the same value occurs more than once, the multiple values are plotted on top of each other at the same point on the scale. For small data sets (few values) this plot can provide useful information regarding data patterns.
reason
traffic child care transport weather overslept emergency
percent
100
80
60
40
20
0
Percent
100%
80%
60%
40%
20%
0%
Example Imagine that a medium-sized retailer, thinking of expanding into a new region identifies a business that it considers as being ready for takeover. It finds the following annual profit figures (in tens of thousands of pounds) for the target retailer's last ten years trading:
To draw a dot plot we can begin by drawing a horizontal line across the page to represent the range of values of all the numbers; then we can mark an 'x' above the appropriate value along the line as follows:
Pie Chart
A Pie chart is a diagram that shows the subdivision of some entity/total into subgroups. The diagram is in the form of a circle which is divided into slices with each slice having an area according to the proportion that it makes up of the total.
Example The pie chart below shows the ingredients used to make a sausage and mushroom pizza.
The degrees needed for each slice is found by calculating the appropriate percentage of 360 e.g. for sausage the degrees are 0.125×360 = 45 and for cheese 0.25×360 =90 etc.
As an example, suppose the fat contents (in grams) for eating English breakfasts and cold meat sandwiches are to be compared. The fat contents are shown below.
Sandwiches: 6, 7, 12, 13, 17, 18, 20, 21, 21, 24, 26, 28, 30, 34
Breakfasts: 12, 14, 15, 16, 18, 23, 25, 25, 36, 36, 38, 41, 44, 45
A back-to-back stem-and-leaf plot is shown below.
Breakfasts Sandwiches | 0 | 6 7 2 4 5 6 8 | 1 | 2 3 7 8 3 5 5 | 2 | 0 1 1 4 6 8 6 6 8 | 3 | 0 4 1 4 5 | 4 |
key: 2|4=24 for sandwiches and 2|4=42 for breakfasts leaf unit: 1. stem unit: 10.
Conclusion: The fat content in English breakfasts appears to be higher than that in sandwiches.
2.2 Sigma and subscript notation
The symbol sigma ∑ (Capital S in Greek alphabet) is used to denote “the sum of” values.
Suppose the symbol x is used to denote some variable of interest in a study. In order to distinguish between values of this variable, subscripts are used.
x 1 – first value in the data set which has a subscript 1. x 2 – second value in the data set which has a subscript 2. . . xn – nth value in the data set which has a subscript n.
The sum of these values is written in shorthand notation as
n
i
xi 1
If it is understood that the range of subscript indices over which the summation is taken involves all the x values, the summation can be written as just
x 1 + x2 +... + xn = (^) ∑ x.
Example 1: Suppose x 1 = 70, x 2 = 74, x3 = 66, x 4 = 68, x 5 = 71. Then
5
i 1
xi = x^1 +x2 +... + x^5 = 70+74+66+68+71 = 349.
The sum of the squares of a set of values are written as
n
i
xi 1
2
2 x 1 (^) + x + + xn or^ 2 ∑ x^ for short.
Example 2: For the data set in example 1,
5
1
2 i
n
i
1
2 ≠ ( 2 1
n
i
xi
5
1
2 i
xi = 24397 ≠ 349 2 = 121801.
The summation notation can also be used to write the sum of products of corresponding values for 2 different sets of values.
i
n
i
∑ xi y = 1
Example: Consider the following values.
i 1 2 3 4 5 6 xi 11 13 7 12 10 8 yi 8 5 7 6 9 11
For this data
6
i 1
xi yi = (11×8) + (13×5) + (7×7) + (12×6) + (10×9) + (8×11)
= 88 + 65 + 49 + 72 + 90 + 88 = 452.
Note that (^) i
n
i
∑ xi y = 1
1
n
i
n
i
yi 1
6
i 1
x (^) i = 61 and
6
i 1
6
i 1
6
i 1
y (^) i ) = 2806 ≠ (^) i i
6
1
The summation notation is used extensively in specifying calculations in statistical formulae.
Constructing a frequency distribution The classes into which the above values can be sorted can be found by following the steps shown below.
range = maximum – minimum = 64 – 39 = 25.
No. of classes = k = the rounded up value of (1 + 1.44 ln n ) = 1 + 1.44 × ln(50) = 6. i.e. k = 7.
i.e. 7× class width > 25.
This suggests a class width of 4.
lower value of the second class = 38 + 4 = 42.
lower value of the third class = 42 + 4 = 46 etc.
The frequency distribution below shows the data values sorted into the classes
38 – 41, 42 – 45, 46 – 49, 50 – 53, 54 – 57, 58 – 61, 62 – 65
The table below shows the classes and their frequencies for the temperatures data set.
class limits f 38 – 41 4 42 – 45 10 46 – 49 8 50 – 53 15 54 – 57 9 58 – 61 3 62 – 65 1 Total 50
The values in the above example that define the classes of the frequency distribution are called class limits. The classes of the type 38 – 41, 42 – 45,… in which both the upper and lower limits are included are called “ inclusive classes”. For example, the class 38 – 41 includes all the values from 38 to 41.
In spite of great importance of classification in statistical analysis, no hard and fast rules can be laid down for it.
The following points must be kept in mind for classification:
If we deal with a continuous variable, it is not possible to arrange the data in the class intervals of above type. Let us consider the distribution of age in years. If class intervals are 15 – 19, 20 – 24 then persons with ages between 19 and 20 years are not taken into consideration. In such a case we form the class intervals as 0 – 5, 5 – 10, 10 – 15, 15 – 20,…. Here all the persons with any fraction of age are included in one group or the other. In the above classes, the upper limits of each class are excluded from the respective classes and are included in the immediate next class and are known as ‘exclusive classes’. The upper and lower class limits of the new exclusive type classes are known as class boundaries.
If d is the gap between the upper limit of any class and the lower limit of the succeeding class, the class boundaries for any class are then given by:
Upper class boundary = upper class limit + (d/2) Lower class boundary = Lower class limit – (d/2)