Probability and Statistics Final-3
Probability and Statistics Final-3
Chapter One
1. Introduction
This chapter introduces the subject matter of statistics, the art of learning from data. It describes the two
branches of statistics, descriptive and inferential. The idea of learning about a population by sampling
and studying certain of its members is described. It is reasonable to start by thinking about this question,
relating it to your own experiences, and talking it over with friends. However, if you want to convince
others and obtain a consensus, it is then necessary to gather some objective information. We are using it
to indicate the modern approach to learning about a complicated question. Namely, one must collect
relevant information, or data, and these data must then be described and analyzed in such a way that
valid conclusion is made. This is the subject matter of statistics.
The common usage of the word “statistics” has, therefore, two meanings. In one sense “statistics” is the
plural form which refers to the numerical facts and figures collected for a certain purposes. Statistics as
a numerical data: In this sense statistics is defined as aggregates of numerical expressed facts (figures)
collected in a systematic manner for a predetermined purpose.(in plural sense)
In the other sense;” statistics” refers to a field of study or to a body of knowledge or to a subject that is
concerned with systematic collection and interpretation of numerical data to make a decision. In this
sense the word statistics is singular. Statistics as a subject (field of study): in this sense statistics is
defined as the science of collecting, organizing, presenting, analyzing and interpreting numerical data to
make decision on the bases of such analysis.(in singular sense)
In this course, we shall be mainly concerned with statistics as a subject, that is, as a field of study.
Classification of statistics
Anyone can apply statistical techniques to, virtually, every branch of science and art. These techniques
are so diverse that statisticians commonly classify them into the following two broad categories
(Descriptive statistics and inferential statistics)
1
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
Descriptive Statistics: it is an area of statistics which is mainly concerned with the methods and
techniques used in collection, organization, presentation, and analysis of a set of data without
making any conclusions or inferences. According to this definition the activities in the area of
Descriptive Statistics include:
Recording a students‟ grades throughout the semester and then finding the average of
these grades.
Drawing graphs that show the difference in the scores of males and females.
All the above examples simply summarize and describe a given data. Nothing is inferred or
concluded on the basis of the above description.
Inferential Statistics: Inferential statistics is an area of statistics which deals with the method
of inferring or drawing conclusion about the characteristics of the population based upon the
results of a sample. Statistics is concerned not only with collection , organization , presentation
and analysis of data but also with the inferences which can be made after the analysis is
completed. In collecting data concerning the characteristics of a set of elements, or the element
can even be infinite. Instead of observing the entire set of objects, called the population, one observes
a subset of the population called a sample.Inferential statistics utilizes sample data to make decision for
entire data set based on sample. Examples of inferential Statistics are:-
1. “There is a definitive relationship between smoking and lung cancer”. This statement is the
result of continuous research of many samples taken and studied. Therefore, it is an
inference made from sample results.
2. As a result of recent survey of public opinion, most Americans are in favor of building
additional nuclear power plant.
1.2 Definition of Some Basic Statistical Terms
2
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
In this section, we will define those terms which will be used frequently.
Data: Data as a collection of related facts and figures from which conclusions may be drawn.In other
words data is simply a scientific term for facts, figures, information and measurement.
Parameter: It is a descriptive measure (value) computed from the population. It is the population
measurement used to describe the population. Example: population mean and standard deviation.
Sampling frame:-A list of people, items or units from which the sample is taken.
Variable: A certain characteristic whose value changes from object to object and time to time.
Survey: is an investigation of certain population to access its characteristics when no special control is
exerted over any factors influence the population characteristics.
Experiment: is the collection of data when special control is made over one or more factors influencing
the population characteristics.
Censes survey (studying the whole population without considering samples) requires a great deal of
time, money and energy. Trying to study the entire population is in most cases technically and
3
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
economically not feasible. To solve this problem, we take a representative sample out of the population
on the basis of which we draw conclusions about the entire population.
Before we deal with statistical investigation, let us see what statistical data mean. Each and every
numerical data can‟t be considered as statistical data unless it possesses the following criteria.
Problem Formulation: problem of study is identified and objective of the study could be defined.
Data Collection: This is a stage where we gather information for our purpose
o If data are needed and if not readily available, then they have to be collected.
o Data may be collected by the investigator directly using methods like interview,
questionnaire, and observation or may be available from published or unpublished sources.
o Data gathering is the basis (foundation) of any statistical work.
o Valid conclusions can only result from properly collected data.
Data Organization: It is a stage where we edit our data .A large mass of figures that are collected from
surveys frequently need organization. The collected data involve irrelevant figures, incorrect facts,
omission and mistakes. Errors that may have been included during collection will have to be edited.
After editing, we may classify (arrange) according to their common characteristics. Classification or
arrangement of data in some suitable order makes the information easer for presentation.
4
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
Data Presentation: The organized data can now be presented in the form of tables, diagram and graphs.
At this stage, large data will be presented in tables in a very summarized and condensed manner. The
main purpose of data presentation is to facilitate statistical analysis. Graphs and diagrams may also be
used to give the data a bright meaning and make the presentation attractive.
Data Analysis: This is the stage where we critically study the data to draw conclusions about the
population parameter. The purpose of data analysis is to dig out information useful for decision making.
Analysis usually involves highly complex and sophisticated mathematical techniques. However, in this
course only the most commonly used methods of statistical analysis are included in next chapters. Such
as the calculations of averages, the computation of majors of dispersion, regression and correlation
analysis are covered.
Data Interpretation: This is the stage where one draw valid conclusions from the results obtained
through data analysis. Interpretation means drawing conclusions from the data which form the basis for
decision making. The interpretation of data is a difficult task and requires a high degree of skill and
experience. If data that have been analyzed are not properly interpreted, the whole purpose of the
investigation may be defected and fallacious conclusion be drawn. So that great care is needed.
The scope of statistics is indeed very vast; and applicable in almost all fields of human endeavor. Apart
from helping elicit an intelligent assessment from a body of figures and facts, statistics is indispensable
tool for any scientific enquiry-right from the stage of planning enquiry to the stage of conclusion. It
applies almost all sciences: pure and applied, physical, natural, biological, medical, agricultural,
engineering, and others. It also finds applications in social and management sciences, in commerce,
business and industry, applicable in some process e.g. invention of certain drugs, extent of
environmental pollution and industries especially in quality control area etc.
Uses of statistics
Today the field of statistics is recognized as a highly useful tool to making decision process by managers
of modern business, industry, frequently changing technology. It has a lot of functions in everyday
activities. The following are some of the most important uses of statistics.
5
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
Statistics condenses and summarizes complex data. The original set of data (raw data) is normally
voluminous and disorganized unless it is summarized and expressed in few numerical values.
Statistics facilitates comparison of data. Measures obtained from different set of data can be
compared to draw conclusion about those sets. Statistical values such as averages, percentages,
ratios, etc, are the tools that can be used for the purpose of comparing sets of data.
Statistics helps in predicting future trends. Statistics is extremely useful for analyzing the past and
present data and predicting some future trends.
Statistics influences the policies of government. Statistical study results in the areas of taxation, on
unemployment rate, on the performance of every sort of military equipment, family planning, etc,
may convince a government to review its policies and plans with the view to meet national needs.
Statistical methods are very helpful in formulating and testing hypothesis and to develop new
theories.
Limitations of Statistics
Even though, statistics is widely used in various fields of natural and social sciences, which closely
related with human inhabitant. It has its own limitations as far as its application is concerned. Some of
these limitations are:
Statistics doesn’t deal with single (individual) values. Statistics deals only with aggregate values.
But in some cases single individual is highly important to consider in some situations. Example,
the sun, a deriver of bus, president, etc.
Statistics can’t deal with qualitative characteristics. It only deals with data which can be
quantified. Example, it does not deal with marital status (married, single, divorced, widowed) but
it deal with number of married, number of single, number of divorced.
Statistical conclusions are not universally true. Statistical conclusions are true only under certain
condition or true only on average. The conclusions drawn from the analysis of the sample may,
perhaps, differ from the conclusions that would be drawn from the entire population. Statistical
interpretations require a high degree of skill and understanding of the subject. It requires
extensive training to read and interpret statistics in its proper context. It may lead to wrong
conclusions if inexperienced people try to interpret statistical results.
6
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
Statistics can be misused. Sometimes statistical figures can be misleading unless they are
carefully interpreted. Example: The report of head of the minister about Ethio-Somalia terrorist
attack mission dismissed terrorists 25% at first day, 50% at second day, 75% at third day.
However, we doubt about the mechanisms how the mission is measured and quantified. This
leads miss use of statistical figures.
Variables and Attributes: A variable in statistics is any characteristic, which can take on different
values for different elements when data are collected. A quantitative or qualitative characteristic that
varies from observation to observation in the same group is called a variable. In case of quantitative
variables, observations are made using interval scales whereas in case qualitative variables nominal
scales are used. Conventionally, the quantitative variables are termed as variables and qualitative
variables are termed as attributes. Example: attributes like gender, religion, marital status, coding etc.
are attributes.
Types of Variables
A. Continuous Variables: - are usually obtained by measurement not by counting. These are variables
which assume or take any decimal value when collected. The variables like age, time, height,
income, price, temperature, length, volume, rate, time, amount of rainfall and etc are all continuous
since the data collected from such variables can take decimal values.
B. Discrete Variables: - are obtained by counting. A discrete variable takes always whole number
values that are counted. Example: Variables such as number of students, number of errors per page,
number of accidents on traffic line, number of defective or non-defectives in production, etc.
Scales of Measurements: Normally, when one hears the term measurement, they may think in terms of
measuring the length of something (i.e. the length of a piece of wood) or measuring a quantity of
something (i.e. a cup of flour). This represents a limited use of the term measurement. In statistics, the
term measurement is used more broadly and is more appropriately termed scales of measurement. A
scale of measurement refers to ways in which variables or numbers are defined and categorized and/or is
the assignment of numbers to objects or events in a systematic fashion. Each scale of measurement has certain
properties which in turn determine the appropriateness for use of certain statistical analyses. The various
measurement scales results from the facts that measurement may be carried out under different sets of
7
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
rules. Four levels of measurement scales are commonly distinguished: nominal, ordinal, interval, and ratio; and
each possessed different properties of measurement systems.
i. Nominal Scale:-Consists of „naming‟ observations or classifying them into various mutually exclusive
categories. Sometimes the variable under study is classified by some quality it possesses rather than by
an amount or quantity. In such cases, the variable is called attribute. Example Religion (Christianity,
Islam, Hinduism, etc), Sex (Male, Female), Eye color (brown, black, etc.), Blood type (A, B, AB and
O), Departments (HWRE, IWRE, WSEE, etc), etc.
ii. Ordinal Scale: -Whenever observations are not only different from category to category, but can be
ranked according to some criterion. The variables deal with their relative difference rather than with
quantitative differences. Ordinal data are data which can have meaningful inequalities. The inequality
signs < or > may assume any meaning like „stronger, softer, weaker, better than‟, etc. Example:
Patients may be characterized as (unimproved, improved & much improved), Individuals may be
classified according to socio-economic as (low, medium & high), Letter for grading system (A, B, C,
D, F), speed of certain machine, authority, career, etc.
Note: Qualitative variables can be either Nominal or Ordinal scales of measurements.
iii. Interval Scale: With this scale it is not only possible to order measurements, but also the distance
between any two measurements is known but not meaningful quotients. There is no true zero point but
arbitrary zero point. Interval data are the types of information in which an increase from one level to
the next always reflects the same increase. Possible to add or subtract interval data but they may not be
multiplied or divided. Example: Temperature of zero degrees does not indicate lack of heat. The two
common temperature scales; Celsius (C) and Fahrenheit (F). We can see that the same difference
exists between 10oC (50oF) and 20oC (68OF) as between 25oc (77oF) and 35oc (95oF) i.e. the
measurement scale is composed of equal-sized interval. But we cannot say that a temperature of 20oc
is twice as hot as a temperature of 10oc because the zero point is arbitrary.
iv. Ratio Scale: - Characterized by the fact that equality of ratios as well as equality of intervals may be
determined. Fundamental to ratio scales is a true zero point. All arithmetic operations are used to
calculate values of ratio scale. Most statistical data analysis procedures do not distinguish between the
interval and ratio properties of the measurement scales. Example: Variables such as age, height,
length, volume, rate, time, amount of rainfall, etc. are require ratio scale.
Note: Quantitative variables can be either Interval or Ratio scales of measurements.
8
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
Chapter Two
Before one deal with methods of data collection it is necessary to see sources of data from which data
are collected, there are two sources of data that pervades the nature of data. These are Primary sources
and Secondary sources. The primary sources of data are objects or persons from which we collect the
figures used for firsthand information. The data obtained from sources are measurements observed or
recorded as a part of an original study or surveys being conducted are called primary data, or data
measured or collect by the investigator or the user directly from the source. The key point here is that the
data you collect is unique to you and your research and, until you publish, no one else has access to it.
Examples of primary data are weight, feeling, current air pressure, etc.
The secondary sources are either published or unpublished materials or records. Secondary data can be
literally defined as second-hand information and data or information that was either gathered by
someone else (e.g., researchers, institutions, other NGOs, etc.) or for some other purpose than the one
currently being considered, or often a combination of the two. Some of the sources of secondary data are
government document, official statistics, technical report, scholarly journals, trade journals, review
articles, reference books, research institutes, universities, hospitals, libraries, library search engines,
computerized data base and world wide web ( ). Examples of secondary data are age, birth date,
vital statistics from reports, etc.
9
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
Planning to data collection requires: identify source and elements of the data, decide whether to consider
sample or census, if sampling is preferred, decide on sample size, selection method, etc, decide
measurement procedure, and set up the necessary organizational structure. Then, data can be collected
by one of the following methods based on nature of items of information, objectives of the enquiry,
operational feasibility and cost. In primary data collection, you collect the data yourself using methods
such as interviews, observations, laboratory experiments and questionnaires.
1) Observation: It involves recording the behavioral patterns of people, objects and events in a
systematic manner. The technique ranges from single visual observation to those requiring special
skills like direct observation/examination. Example: measuring height, weight, temperature,
chemical component in water, etc. And it may include laboratory experiment; conducting laboratory
experiments on fields of chemical, biological sciences and so on.
2) Questionnaire: It is a popular means of collecting data, but is difficult to design and often require
many rewrites before an acceptable questionnaire is produced. In this method a set of questions are
administered (provided) to respondent either physically or through mail (Email, Postal, etc).
Schedule through enumerations is the method in which investigator approach to the informant with
prepared questionnaire and got replies to the questions.
Advantages:
Can be used as a method in its own right or as a basis for interviewing or a telephone survey.
Can be posted, e-mailed or faxed.
Can cover a large number of people or organizations and wide geographic coverage.
Relatively cheap and avoids embarrassment on the part of the respondent.
Respondent can consider responses, and there is no interviewer bias.
Disadvantages:
Historically low response rate (although inducements may help).
Time delay whilst waiting for responses to be returned
Several reminders may be required and it assumes no literacy problems.
No control over who completes, and it is not possible to give assistance if required.
Respondent can read all questions beforehand and then decide whether to complete or not.
10
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
Advantages:
Serious approach by respondent resulting in accurate information and good response rate.
Characteristics (motives and feelings) of respondent assessed – tone of voice, facial expression,
hesitation, etc.
Disadvantages:
Geographic limitations.
Need to set up interviews.
Can be expensive.
If many interviewers, training required.
Normally need a set of questions.
Time consuming.
Respondent bias – tendency to please or impress, create false personal image, or end interview
quickly, Embarrassment possible if personal questions.
Secondary data may help to clarify or redefine the definition of the problem as part of the
exploratory research process.
Provides a larger database as compared to primary data
11
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
So far you know how to collect data. So what do we do with the collected data next? Now you have to
present the data you have collected so that they can be of use. Thus, the collected data also known as
„raw data‟ are always in an unorganized form and need to be organized and presented in a meaningful
and readily comprehensible form in order to facilitate further statistical analysis. Raw data: recorded
information in its original collected form, whether it is counts or measurements, is referred to as raw
data. Classification is a preliminary and it prepares the ground for proper presentation of data.
After collecting and organize data the next important task is effective presentation of bulk volume data.
The major objectives of data presentation are:-
To presenting data in visual display and more understandable
To have great attraction about the data
To facilitate quick comparisons using measures of location and dispersion.
To enable the reader to determine the shape and nature of distribution to make statistical
inference, and to facilitate further statistical analysis.
Methods of data presentation, namely: Tables, Diagrams, and Graphs are commonly used to summarize
both qualitative and quantitative data.
12
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
Tables are important to summarize large volume of data in more understandable way. Based on the
characteristics they present tables are:
i. Simple (one way table): table which present one characteristics for example age distribution.
ii. Two way table: it presents two characteristics in columns and rows for example age versus sex.
iii. A higher order table: table which presents two or more characteristics in one table.
In statistics usually we use frequency distribution table for different type of data, however sometimes we
use the above tables to summarize raw data and to present results of statistical analysis.
Frequency Distribution: is the table that shows data classified in to a number of classes according to
some criteria with corresponding frequencies; in other words a frequency distribution is the organization
of raw data in table form, using classes and frequencies. Where, Frequency is the number of values in a
specific class of the distribution.
There are three basic types of frequency distributions, and there are specific procedures for constructing
each type. The three types are categorical, ungrouped and grouped frequency distributions.
The categorical frequency distribution is used for data which can be placed in specific categories such
as nominal or ordinal level data. For example, for data such as political affiliation, religious affiliation,
blood type, or major field of study categorical frequency distribution is appropriate.
The major components of categorical frequency distribution are class, tally and frequency (or
proportion).
1. You have to identify that the data is in nominal or ordinal scale of measurement
13
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
Example 2.1: Twenty-five army inductees were given a blood test to determine their blood type.
The data set is given as follows:
A B B AB O
O O B AB B
B B O A O
A O O O AB
AB A O B A
14
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
It is a table of all the potential raw values that could possible occurs in the data along with the number
of times each actually occurred. In other words ungrouped frequency distribution is the distribution that
use individual data values along with their frequencies. It is often constructed for small set of data on
discrete variable (when data are numerical), and when the range of the data is small. However,
sometimes it is complicate to use ungrouped frequency distribution for large mass of data, as result we
use grouped frequency distribution.The major components of this type of frequency distributions are
class, tally, frequency, and cumulative frequency.
Cumulative frequencies (CF):- are used to show how many values are accumulated up to and including a
specific class. We have less than and more than cumulative frequencies.
Less than Cumulative Frequency (LCF):-is the total sum of observations below specified class including
that class
More than Cumulative frequency (MCF):- is the total sum of observations above specified class
including that class.
The steps are almost similar with that of categorical frequency distribution
First find the smallest and largest raw score in the collected data.
Put respective frequency, relative frequency, and cumulative frequency along each ordered data.
Example 2.2 A demographer is interested in the number of children a family may have, he/she took
sample of 30 families and obtained the following observations.
4 2 4 3 2 8
3 4 4 2 2 8
5 3 4 5 4 5
4 3 5 2 7 3
3 6 7 3 8 4
15
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
Solution
These individual observations can be arranged in ascending or descending order of magnitude in which
case the series is called array. Array of the number of children in 30 families is:
2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 7, 7, 8, 8, 8
And the variable” number of children in a family” can assume only the values 0, 1, 2, 3, . . . which are
discrete; therefore, we construct ungrouped frequency distribution consists of individual data,
frequencies, and cumulative frequencies.
No of children No of family
(Class) (Frequency) LCF MCF
2 5 5 30
3 7 12 25
4 8 20 18
5 4 24 10
6 1 25 6
7 2 27 5
8 3 30 3
Each individual value is presented separately, that is why it is named ungrouped frequency distribution
It is a frequency distribution when several numbers are grouped in one class; the data must be grouped
in which each class has more than one unit in width. We use this type of frequency distribution when the
range of the data is large, and for data from continuous variable. But, sometimes for large volume of
discrete we use grouped frequency distribution.
Some of basic terms that are most frequently used while we deal with grouped frequency distribution are
Lower Class Limits are the smallest number that can belong to the different class.
Upper Class Limits are the largest number that can belong to the different classes.
16
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
Class Boundaries (true class limits) are the number used to separate classes, but without the gaps
created by class limits.
Class midpoints are the midpoints of the classes. Each class midpoint can be found by adding the
lower class limit/boundary to the upper class limit boundary and dividing the sum by 2.
Class width is the difference between two consecutive lower class limits or two consecutive
lower class boundaries.
When we choose the number of classes, we have to think about the following criteria
The classes must be mutually exclusive. Mutually exclusive classes have non overlapping class
limits so that values can‟t be placed in to two classes.
The classes must be continuous. Even if there are no values in a class, the class must be included
in the frequency distribution. There should be no gaps in a frequency distribution. The only
exception occurs when the class with a zero frequency is the first or last. A class width with a
zero frequency at either end can be omitted without affecting the distribution.
The classes must be equal in width. The reason for having classes with equal width is so that
there is not a distorted view of the data. One exception occurs when a distribution is open-ended.
i.e., it has no specific beginning or end values.
4. Find the class width (W) by dividing the range by the number of classes
17
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
Note that: Round the value of W up to the nearest whole number if there is a reminder. For
instance, and
5. Select the starting point as the lowest class limit. This is usually the lowest score (observation). Add
the width to that score to get the lower class limit of the next class. Keep adding until you achieve
the number of desired classes calculated in step 3.
6. Find the upper class limit; subtract unit of measurement from the lower class limit of the second
class in order to get the upper class limit of the first class. Then add the width to each upper class
limit to get all upper class limits. Take care of the last class to include the maximum value of data.
Unit of measurement: Is the smallest value of difference between consecutive observations or
sometimes it is next value. For instance, 28, 23, 52, and then the unit of measurement of this data
set is one. Because take one datum arbitrarily, say 23, then the next value will be 24.
Therefore, . If the data set is 24.12, 30, 21.2, then give priority to the datum
with more decimal place. Take 24.12 and guess the next possible value. It is 24.13.
Therefore, U = 24.12 - 24.13 = 0.01
Note that: U=1 is the maximum value of unit of measurement and is the value when we
don‟t have a clue about the data.
U
7. Find the class boundaries. Lower Class Boundary Lower Class Limit and
2
U
Upper Class Boundary Upper Class Limit .
2
U U
In short, LCB = LCL - and UCB = UCL .
2 2
8. Tally the data and write the numerical values for tallies in the frequency column.
9. Find cumulative frequency. We have two type of cumulative frequency namely less than cumulative
frequency and more than cumulative frequency. Less than cumulative frequency is obtained by
adding successively the frequencies of all the previous classes including the class against which it is
written. The cumulate is started from the lowest to the highest size. More than cumulative frequency
is obtained by finding the cumulate total of frequencies starting from the highest to the lowest class.
For example, the following frequency distribution table gives the marks obtained by 40 students:
18
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
The above table shows how to find less than cumulative frequency and the table shown below
shows how to find more than cumulative frequency.
Example 2.3: Consider the following set of data and construct the frequency distribution.
11 29 6 33 14 21 18 17 22 38
31 22 27 19 22 23 26 39 34 27
Solution:
R 33
4. W 5.5 6
K 6
19
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
5. Select starting point. Take the minimum which is 6 then add width 6 on it to get the next class
LCL.
6. Upper class limit. Since unit of measurement is one. 12 1 11 . So 11 is the UCL of the first
class. Therefore, 6 11 is the first class
7. Find the class boundaries. Take the formula in step 7. LCBi = LCL i - 0.5 and
UCBi UCLi 0.5
20
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
Example 2.4 The following data are percentage coverage of forest in countries in Africa. Construct
frequency distribution by using sturge‟s rule.
30, 25, 23, 41, 39, 27, 41, 24, 32, 29, 35, 31, 36, 33, 36, 42, 35, 37, 41, and 29
Solution
20
K = 1 + 3.32 log 10 5 , where k is number of classes.
highestvalue lowestvalue 42 23
2. Class width( W) = 4
k 5
Classes Class boundary Class mark Frequency
23 - 26 22.5 –26.5 24.5 3
27 - 30 26.5 – 30.5 28.5 4
31 - 34 30.5 – 34.5 32.5 3
35 - 38 34.5 – 38.5 36.5 5
39 - 42 38.5 – 42.5 40.5 5
Total 20
An important variation of the basic frequency distribution uses relative frequencies, which are easily
found by dividing each class frequency by the total of all frequencies. A relative frequency distribution
includes the same class limits as a frequency distribution, but relative frequencies are used instead of
actual frequencies. The relative frequencies are sometimes expressed as percents.
Class Frequency
Relative Frequency =
Sum of all frequencie s
Relative frequency distribution enables us to understand the distribution of the data and to compare
different sets of data.
21
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
It may be noted that at times the use of relative frequencies is more appropriate than absolute
frequencies. Whatever two or more sets of data contain different number of observation, a comparison
with absolute frequencies will be incorrect. In such cases, it is necessary to use the relative frequency
We have discussed the techniques of classification and tabulation that help us in organizing the collected
data in a meaningful fashion. However, this way of presentation of statistical data does not always prove
to be interesting to a layman. Too many figures are often confusing and fail to convey the massage
effectively.One of the most effective and interesting alternative way in which a statistical data may be
presented is through diagrams and graphs. There are several ways in which statistical data may be
displayed pictorially such as different types of graphs and diagrams.
22
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
3. Represent the class boundaries for the histogram or Ogive or the midpoint for the frequency polygon
on the x axis.
4. Plot the points, and draw the bars or lines
Most of time we use diagram form of presentation for categorical and numerical data, some of the
diagrams are as follow:
A. Pie Chart
Pie chart can used to compare the relation between the whole and its components. Pie chart is a circular
diagram and the area of the sector of a circle is used in pie chart. Circles are drawn with radii
proportional to the square root of the quantities because the area of a circle is r 2 .
To construct a pie chart (sector diagram), we draw a circle with radius (square root of the total). The
total angle of the circle is 360 0 .
Component Part
Angle of Sector x360 0 These angles are made in the circle by mean of a protractor to
Total
show different components. The arrangement of the sectors is usually anti-clock wise.
Example2.6: The following table gives the details of monthly budget of a family. Represent
these figures by a suitable diagram.
23
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
Draw two perpendicular lines one horizontally and the other vertically at an appropriate place of
the paper.
24
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
Take the basis of classification along horizontal line (X-axis) and the observed variable along
vertical line (Y-axis) or vice versa.
Marks signs of equal width for each class and leave equal or not less than half width in between
two classes.
Finally, marks the values of the given variable to prepare required bars.
Example 2.7: Draw simple bar diagram to represent the profits of a bank for 5 years.
When two or more interrelated series of data are depicted by a bar diagram, then such a diagram is
known as a multiple-bar diagram. Suppose we have export and import figures for a few years. We can
display by two bars close to each other, one representing exports while the other representing imports
figure shows such a diagram based on hypothetical data.
25
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
Multiple bar chart should be noted that multiple bar diagrams are particularly suitable where some
comparison is involved.
iii. Stratified (Stacked) Bar Chartis used to represent data in which the total magnitude is divided into
different or components. In this diagram, first we make simple bars for each class taking total
magnitude in that class and then divide these simple bars into parts in the ratio of various components.
This type of diagram shows the variation in different components within each class as well as between
different classes. Stratified bar diagram is also known as component bar chart.
Example 2.8: The table below shows the quantity in hundred Kgs of Wheat, Barley and Oats
produced on a certain farm during the years 1991 to 1994. Draw stratified bar
chart.
26
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
Solution: to make the component bar chart, first of all we have to take year wise total
production.The required diagram is given below:
When the data contains both positive and negative values such as data on net profit, net expense, percent
change etc.
Example 2.9:Suppose we have the following data relating to net profit (percent) of commodity.
27
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
A. Histogram
Histogram is a special type of bar graph in which the horizontal scale represents classes of data values
and the vertical scale represents frequencies. The height of the bars correspond to the frequency values,
and the drawn adjacent to each other (without gaps).
We can construct a histogram after we have first completed a frequency distribution table for a data set.
TheX axis is reserved for the class boundaries.
7.0
6.0
Frequency
5.0
4. 0
3.0
2.0
1.0
0.0 35.5
5.5 11.5 17.5 23.5 29.5 41.5
Class boundaries
28
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
Relative frequency histogram has the same shape and horizontal ( ) scale as a histogram, but the
vertical ( ) scale is marked with relative frequencies instead of actual frequencies.
B. Frequency Polygon
A frequency polygon uses line segment connected to points located directly above class midpoint values.
The heights of the points correspond to the class frequencies, and the line segments are extended to the
left and right so that the graph begins and ends on the horizontal axis with the same distance that the
previous and next midpoint would be located.
Example 2.10:The frequency polygon for the data in example 2.4 is given as follow.
7.0
Frequency
6.0
polygon
5.0
4.0
3.0
2.0
C. Ogive Graph
An Ogive (pronounced as “oh-jive”) is a line that depicts cumulative frequencies, just as the cumulative
frequency distribution lists cumulative frequencies. Note that the Ogive uses class boundaries along the
horizontal scale, and graph begins with the lower boundary of the first class and ends with the upper
boundary of the last class. Ogive is useful for determining the number of values below some particular
value. There are two type of Ogive namely less than Ogive and more than Ogive. The difference is that
less than Ogive uses less than cumulative frequency and more than Ogive uses more than cumulative
frequency on axis.
Example 2.10: Take the data in example 2.4 and draw less than and more than Ogive curve.
29
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
Chapter Three
It should be clear to you that the concept of a measure of central tendency is concerned only with
quantitative variables and is undefined for qualitative variables as these are immeasurable on a scale.
n
2.
i 1
x i x1 x2 x3 . . . . xn
n
3.
i 1
xi yi x1 y1 x2 y2 . . xn yn
n n n
4. x
i 1
i yi x1 y1 x2 y2 . . . xn yn =
i 1
xi
i 1
yi
30
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
n n
5. CXi CX 1 CX 2 CX 3 .. . CX n =C (X1 +X2 + X3 + . . .+ Xn) = C Xi
i 1 i 1
n
6.
i 1
C C C C . . . . C nc
n
7. x
i 1
i c x1 c x2 c ... xn c
= x1 + x2 +. . . + xn + c + . . . + c
n n n
=
i 1
xi
i 1
C =
i 1
xi nc
2
n
x yi x y
n
N.B xi 2
xi
i 1 and i i i
i 1
31
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
In statistics, we have various types of measures of central tendencies. The most commonly used types of
MCT includes:-
-Mean - Mode
- Median -Quantiles (Quartiles, Decilies, Percentiles)
3.4.1. Mean
Mean is obtained for sample and population data. There are four type of mean which is suitable for a
particular type of data.
i. Arithmetic Mean ( )
In classification and presentation of data, we observed that the values of the variable or observations
could be put in the form of raw data (individual data), simple (ungrouped) frequency distribution, and
grouped frequency distribution.
Let X be a variable which takes valuesx1 ,x2 ,x3 ,…………….,xn, in a sample size of n from a
population of size N for n < N then A.M of a set of observations is the sum of all values in a series
divided by the number of items in the series.
X1 X 2 . . . X n 1
X
n
n
X i for sample data
x i
X i 1
= (10 + 15 + 30+ 7 + 42 + 79 + 83) / 7 = 266 / 7 = 38
n
32
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
Example 3.2: The following data are on age of 20 household heads which are obtained during water
distribution survey in certain town. Find the average age of household heads.
30, 25, 23, 41, 39, 27, 41, 24, 32, 29, 35, 31, 36, 33, 36, 42, 35, 37, 41, and 29
X1 X 2 . . . X n 1 n
30 25 ... 29 666
X
n
n
X
i 1
i
20
20
33.3
X1 X 2 . . . X N 1 N
N
N
X
i 1
i
In discrete frequency distribution we multiply the values of the variable (X) by their respective
frequencies (f) and get the sum of the products ( fX i ). The sum of the products is then divided by the
fi x f i i
Thus, according to this method, the formula for calculating arithmetic mean for simple /discrete/
33
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
Example 3.3:Following table gives the wages paid to 125 workers in a factory. Calculate the arithmetic
mean of the wages.
Wages (in birr): 200 210 220 230 240 250 260
No. of workers: 5 15 32 42 15 12 4
200 5 1000
210 15 3150
220 32 7040
230 42 9660
240 15 3600
250 12 3000
260 4 1040
Solution:using above results in the table we substitute into formula and obtain
X
fx 28490 227.92birr
N 125
Interpretation: the average wage paid to 125 workers in the factory is 227.92 birr
1 n
X fi mi , where mi = midpoint of each ith class interval, k is no. of class
k i 1
i 1
fi
34
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
Example 3.4:The following table gives the marks of 58 students in probability and Statistics.
0-10 5 4 20
10-20 15 8 120
20-30 25 11 275
30-40 35 15 525
40-50 45 12 540
50-60 55 6 330
fi 58 f m i i 1940
1 n
So, Arithmetic mean will be X f i mi = 1940/58 = 33.45.
n i 1
i 1
fi
35
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
9. The sum of the squares of deviation of the given set of observations is minimum when taken
group k , then the combined mean ,denoted by x c , of all observations taken together is given by
12. If a wrong figure has been used in calculating the mean, we can correct if we know the correct figure
that should have been used. Let
denote the wrong figure used in calculating the mean
be the wrong mean calculated using , then the correct mean,then , is given by
36
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
Example 3.5: Last year there were three sections taking Stat 1044 course in Arba Minch University. At
the end of the semester, the three sections got average marks of 80, 83 and 76. If there were 28, 32 and
35 students in each section respectively. Find the mean mark for the entire students.
Example 3.6: An average weight of 10 students was calculated to be 65 kg, but latter, it was discovered
that one measurement was misread as 40 kg instead of 80 kg. Calculate the corrected average weight.
Solution:
Exercise: The average score on the mid-term examination of 25 students was 75.8 out of 100. After the
mid-term exam, however, a student whose score was 41 out of 100 dropped the course. What is the
average/mean score among the 24 students?
The geometric mean is usually used in average rates of change, ratios, percentage distribution, and
logarithmical distribution.
The geometric mean is the nth root of the product of n positive values.
When the observed values x1,x2,……….xn have the corresponding frequencies f1.f2………fn
respectively then geometric mean is obtained by
f
G. M = n
x1 1 , x f 2 2 . . . . x f n n
n n
1
=
n
i 1
f i log xi where, n=
i 1
fi
37
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
Whenever the frequency distributions are grouped (continuous), class marks of the class interval are
considered as Xi, and the above formula can be used as:
n f f2 fn
G. M = m1 1 , m2 . . . . mn
n n
1
=
n
i 1
fi log mi where n=
i 1
fi and mi is class mark of ithclass.
Note: in case of number of observation is more than two it may be tedious taking out from square root,
in that case calculation can be simplified by taking natural logarithm with base 10.
x1 . . . . xn n
1
G.M = n x1 , x2 . . . . xn G . M= take log in both sides.
n
log ( G . M) =
1
log x1 , . . . xn =
1
log x1 log x2 . . . log xn = 1 log xi
n n n i 1
1 n
G. M = Antilog log x i
n i 1
This shows that the logarithm of G. M is the mean of the logarithms of individual observations. In
similar manner we compute for ungrouped and grouped frequency distributions.
Example3.7: The ratios of prices in 1999 to those in 2000 for 4 commodities were 0.9, 1.25, 1.75 and
0.85. Find the average price ratio.
This is quite different from the geometric mean in case of ratio data.
38
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
The harmonic mean is used to average rates rather than simple values. It is usually appropriate in
averaging kilometers per hour, speed, and rates at time. The Harmonic mean is the reciprocal of the
arithmetic mean of the reciprocal of the single values
n n
H .M
1 1 1 1
X1 X 2
...
Xn
X
i
3 3 3 6
H.M = = = =3
1/ 2 1/ 3 1/ 6 3 2 1 6
6
39
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
Example 3.9: A driver covers the 300km distance at an average speed of 60 km/hr makes the return trip
at an average speed of 50km/hr. What is his average speed for total distance?
2
Using harmonic formula it is H.M= =600/110=54.55km/hr.
1 / 60 1 / 50
60 50
Note that A.M= =55km/hr G.M= 60 50 =54.7km/hr.
2
40
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
In finding arithmetic mean and others type of mean for series of data, all items were assumed to be of
equally importance (each value in the data set has equal weight). But, when the observations have
different weight, we use weighted average. Weights are assigned to each item in proportion to its
relative importance.
If x1 , x2 , ..., xk represent values of the items and w1 , w2 , ... , wk are the corresponding weights, then the
Example 3.10: A student‟s final mark in Mathematics, Physics, Chemistry and Biology are respectively
82, 80, 90 and 70.If the respective credits received for these courses are 3, 5, 3 and 1, determine the
approximate average mark the student has got for one course.
Solution: We use a weighted arithmetic mean, weight associated with each course being taken as the
number of credits received for the corresponding course.
xi 82 80 90 70
wi 3 5 3 1
Therefore, x w
w x i i
(3 82) (5 80) (3 90) (1 70)
82.17
w i 3 5 3 1
3.4.2 Median (
Median is defined as the value of the middle item (or the mean of the values of the two middle items)
when the data are arranged in an ascending or descending order of magnitude.
If the n values are arranged in ascending or descending order of magnitude, the median is the middle
value if n is odd. When n is even, the median is the mean of the two middle values.
41
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
n 1
th
th th
n n
1
= 2 2 element if n is even.
2
Example 3.11: Suppose we have the following series: 15, 19, 21, 7, 33, 25, 18 and 5. We have to first
arrange it in either ascending or descending order. These figures are arranged in an ascending order as
follows: 5, 7, 10, 15, 18, 19, 21, 25, and 33.
Now as the series consists of odd number of items, to find out the value of the middle item, we use the
n 1
th
That is the size of the 5th item is the median which is 18.
Suppose the series consists of one more item, 23. We may, therefore, have to include 23 in the above
series at an appropriate place, that is, between 21 and 25. Thus, the series is now 5, 7, 10, 15, 18, 19, 21,
23, 25, and 33. Applying the above formula, the median is the size of 5.5th item. Here, we have to take
the average of the values of 5th and 6th item. This means an average of 18 and 19, which gives the
median as 18.5.
Here median is obtained by using less than cumulative frequency distribution; the median is the value of
k
1
the variable for which the cumulative frequency is just greater than or equal to N , where N f i
2 i 1
42
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
In the case of a continuous frequency distribution, we first locate the median class by procedures under
b. In such a way thatclass for which the cumulative frequency is just greater than or equal
k
1
to N , where N f i Then, the median is calculated by:
2 i 1
n
2 fc o wm
LCL
~
Median ( X )
fm
Where, fco is less than cumulative frequency of the class preceding (one before) the median class, fm is
frequency of the median class, LCL is lower class limit of median class and wm width of the median
k
class and n
i 1
fi
Note: We may use Lower class boundary (LCb) of the median class instead of LCL.
Example 3.13:consider age data of 20 household heads which are obtained during water distribution
survey in certain town:30, 25, 23, 41, 39, 27, 41, 24, 32, 29, 35, 31, 36, 33, 36, 42, 35, 37, 41, and
29.Find median from grouped data.
n
~
Median ( X )
2
LCL
fc o wm
31 2
n 7 4
35
fm 3
43
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
Properties of median
- Unlike mode it is unique that is like mean there is only one median for a given set of data.
- Easy to calculate and understand.
- It is not affected by extreme value.
- It‟s especially used for open ended frequency distribution when median is not found in that class.
- It is not based on all observations.
- It is not suitable for further mathematical treatment.
3.4.3 Mode
The mode is another measure of central tendency. It is the value at the point around which the items are
most heavily concentrated or the mode is the measurement that occurs in greatest frequency in data set.
A given set of data may have
For simple series of data mode is the most frequent value in a certain data set.
Example 3.14: Consider the following series: 8, 9, 11, 15, 16, 12, 15, 3, 7, 15
There are ten observations in the series where 15 occurs maximum number of times. Thus, mode is 15.
In case of discrete frequency distribution, mode is the value of the variable corresponding to the
maximum frequency. This method can be used conveniently if there is only one value with the highest
concentration of observation.
44
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
Example 3.15:Consider the following distribution, and then determine modal value of the distribution.
X 1 2 3 4 5 6 7 8 9
f 3 1 18 25 40 30 22 10 6
First modal class (a class with maximum frequency) could be found, and then mode for grouped
frequency distribution is determined by the following formula:
f 1 f0
Mode (X̂) l o w
f1 f 0 f1 f 2
Where: lo = is the lower value of the class in which the mode lies.
While applying the above formula, we should ensure that the class-intervals are uniform throughout. If
the class-intervals are not uniform, then they should be made uniform on the assumption that the
frequencies are evenly distributed throughout the class. In the case of unequal class-intervals, the
application of the above formula will give misleading results.
Example 3.15:Consider Example 3.13, find mode for the frequency distribution.
Here we have two modal classes, the last two class with frequencies of 5. Therefore, we called the
distribution is bimodal.
Case 1;
Case 2;
45
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
Median is the value of the middle item which divide the data in to two equal parts and found by
arranging the data in an increasing or decreasing order of magnitude, where quintiles are measures
which divides a given set of data in to equal subdivision and are obtained by the same procedure to that
of median but data must be arranged only in an increasing order. The most commonly used ones include
quartiles, deciles and percentiles.
i. Quartiles
Quartiles are measure which divided the ordered data in to four equal parts and usually denoted by
Q1,Q2, Q3, and are obtained after arranging the data in an increasing order. Q1: is first(lower) quartile or
value for which 25% of the observation lies below it, Q2: is second quartile or value for which 50%of
the observation lies below or above it, and Q3: is third (upper) quartile or value for which 75% of the
arranged item lies below it or 25% lies above it.
n 1
th
n 1
th
n 1
th
n 1
th
n 1
th
Example 3.16:Find the value for which 25% of the wages of 7 workers lies below it, second and upper
quartiles for the data on the wage distribution of 7 workers.
Arranging the data on ascending order, we have 1080, 1100, 1120, 1150, 1160, 1200, and 1400
46
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
7 1
th
Q1 is the value of position item in the ordered observation, 2 position item =1100. Q2 is the
nd
4
7 1
th
7 1
th
value of 2* position item 4 position item=1150, Q3 is the value of 3* position item
th
4 4
= 6th position item=1200.
k
n
than or equal to i * where, n f i
4 i 1
Example 3.17: Consider example 3.12, then compute the first, second and third quartile of the fd.
n 30
Solution:we have n=30. The i * i * for i 1,2,3 , Q1= the value corresponding to LCF greater or
4 4
equal to 7.5 which is 15, Q2= the value corresponding to LCF greater or equal to 15 which is 20, Q3 =
the value corresponding to LCF greater or equal to 22.5 which is 25. i.e. (Q1=15,Q1=20, and Q1=25)
c) Quartiles for grouped frequency distribution
In case of grouped (continuous) frequency distribution quartiles obtained first by obtaining quartile class
by the procedure we have applied under ungrouped frequency distribution above,To find ithquartile class
i*n
compute and search for the minimum less than cumulative frequency greater than or equal to
4
this value, then the class corresponding to this cumulative frequency is ith quartile class. Then to
determine unique value of ith quartile applies the formula given by:
Q i Lo
i * n 4 cf w
f
47
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
Example 3.18:Consider example 3.13, find the value for which 75% of the age lies above and/or below
it from raw data and grouped dada, and second quartiles.
n
Solution:To find 1st quartile class, compute 1 * 20 / 4 5
4
Then Q1 lies in the class 27-30, then Lo = 26.5, cf = 3, f = 4 and w = 4. The unique value of Q1 is
computed by Q1 L o 4
n cf w
= 26.5
20 / 4 3 4 28.5
f 4
The value of Q1 shows that only 25 % of 20 household headsare with age 28.5 or less.
2*n
Similarly, to find 2nd quartile class compute
20 10 , The class for Q is 31--34, then
= 2 2
4 4
Lo= 30.5, cf = 7, f = 3 and w=4, the unique value of Q2 is computed by:
2 2
n cf w 20 7
Lo 30.5 4 34.5 X~
4 4
Q2
f 3
Deciles are measures which divide a given ordered data in to ten equal parts and each part contains equal
no of elements. It has nine points known as 1st, 2nd,…, 9th deciles, denoted by D1, D2,… D9respectively.
n 1
th
th
For series of data set the i deciles is the value of the item which is at the i * position item
10
n 1
th
The ithdecile (Di) for the discrete frequency distribution data is the value corresponding to cumulative
k
n
frequency greater or equal to i * where, n f i . Or the value whose cumulative frequency is greater
10 i 1
k
n
than or equal to i * where, n f i and i 1, 2, 3, ..., 9
10 i 1
48
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
For grouped (continuous) data deciles can be obtained first by obtaining the ith deciles classbysearch for
n
the minimum less than cumulative frequency greater than or equal to i * , then the class
10
corresponding to this cumulative frequency is ith deciles class. Then, determine the unique decile by the
following formula:
D i Lo
i n10 cf w
, for i=1, 2, 3…, 9.
f
iii. Percentiles
Percentiles are measures having 99 points which divide a given ordered data in to 100 equal parts and
each part consists of equal number of elements. It is denoted by P1, P2... P99 and known as 1st , 2nd …99th
percentiles respectively.
a) Percentile for individual data
n 1
th
th
For a series of data the i percentiles is the value of item at the i * position
100
n 1
th
k
n
frequency is greater than or equal to i * where, n f i and i 1, 2, 3, ..., 99
100 i 1
49
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
i*n
First percentile class is obtained; to find ith percentile class compute and search less than
100
cumulative frequency less than or equal to this value, then the class corresponding to this cumulative
frequency is ith percentile class. Then, for grouped (continuous) frequency distribution data percentile
can be obtained by:
P i Lo
i n100 cf w
, for i=1, 2, 3…, 99.
f
50
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
Chapter Four
Measures of Dispersion
4.1 Introduction
In this unit we shall discus the most commonly used measure of dispersion like Range, Quartile
Deviation, Mean Deviation, Standard Deviation, coefficient of variation. And measure shapes such as
skewness and kurtosis. We have seen that averages are representatives of a frequency distribution. They
do not tell anything about the scatterness of observations within the distribution. Suppose that we have
the distribution of the yields (kg per plot) of two paddy varieties from 5 plots each.
Variety 1: 45 42 42 41 40
Variety 2: 54 48 42 33 30
The mean yield for both varieties is 42kg. But we cannot say that the yield of the two varieties are the
same. The first variety may be preferred since it is more consistent in yield performance. From the
above example, it is obvious that a measure of central tendency alone is not sufficient to describe a
frequency distribution. In addition to it we should have a measure of scatterness of observations. The
scatterness or variation of observations from their average is called dispersion.
1. To determine the reliability of an average: The measures of dispersion help in determining the
reliability of an average. It points out how far an average is representative of a statistical series.
If the dispersion or variation is small, the average will closely represent the individual values
and it is highly representative. On the other hand, if the dispersion or variation is large, the
average will be quite unreliable.
2. To compare the variability of two or more series: The measures of dispersion help in
comparing the variability of two or more series. It is also useful to determine the uniformity or
consistency of two or more series. A high degree of variation would mean less consistency or
less uniformity as compared to the data having less variation.
3. For facilitating the use of other statistical measures: Measures of dispersion serve the basis of
many other statistical measures such as correlation, regression, testing of hypothesis etc.
51
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
4. Basis of statistical quality control: The measure of dispersion is the basis of statistical quality
control. The extent of the dispersion gives indication to the management as to whether the
variation in the quality of the product is due to random factors or there is some defect in the
manufacturing process.
Desirable Properties of Measures of Dispersion
Range: The simplest measure of dispersion is the range. The range is the difference between the two
extreme values (highest and lowest value) of data. Range takes only maximum and minimum values into
account and not all the values. Hence it is a very unstable or unreliable indicator of the amount of
deviation.
-The major area in which range is applied is statistical quality control.
-It is also applicable in the cases where extreme values are important like maximum rainfall,
temperature, etc Range =R = Xmax - Xmin
Example 4.1 Consider the following data on weight of 7 individuals.
For a grouped data, range is the difference between the upper class boundary of the last class interval
and lower class boundary of the first class interval.
52
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
Properties of range
Quartile Deviation (semi – inter quartile Range) is a half of inter quartile range
Q3 Q2 Q2 Q1 Q3 Q1
QD = =
2 2
Coefficient of quartile Deviation The relative measure of quartile deviation also called the coefficient
of quartile deviation is defined as:
i) The size of quartile deviation gives an indication about the uniformity. If QD is small, it
denotes large uniformity. Thus, a coefficient of quartile deviation is used for comparing
uniformity or variation in different distribution.
53
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
ii) Quartile deviation is not a measure of dispersion in the sense that it doesn‟t show the
scatter around an average but only a distance on scale. As result it is regarded as a measure
of partition.
iii) It can be computed when the distribution has an open-ended class. it is quite suitable in the
case of open – ended distribution
iv) As compared to range, it is considered a superior measure of dispersion.
v) Since it not influenced by the extreme values in a distribution. It is particularly suitable in
highly skewed or irregular distribution.
.
Examples 4.2 For the following frequency distribution find
21 – 22 10
23 – 24 22
25 – 26 20
27 – 28 14
29 – 30 14___
Q1 LC b
n 4 cf w 22.5
20 10 2
23.4
f 22
n 80
Q2 2 2 40, Q2 is 40 th obeservation
4 4
54
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
Q2 L C b Q 2
2 n 4 cf w = 24.5
40 3 x2
= 25.3
f 20
n
And Q3 3 60, Q3 is 60th position observation.
4
Q3 L C bQ 3
3 n 4 cf w 26.5
60 52
27.84
f 14
b) Q . D 1
2
Q3 Q1 4.23 / 2 2.115
c) CQD =4.23/51.24
The quartile deviation is more stable than the range as it defenses on two intermediate values. This is
not affected by extreme values since the extreme values are already removed. However, quartile
deviation also fails to take the values of all deviations.
Mean Deviation: Mean deviation is the mean of the deviations of individual values from their average.
The average may be either mean or median.
M.D=
XA for raw data. M.D =
f XA for grouped data.
n f
Where A is either mean or median.
Example 4.3 Consider the following data and compute mean deviation from mean 53, 56, 57, 59, 63,
6
and 66 X Xi 59
i 1
6
55
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
Xi 53 56 57 59 63 66
Xi X
22
Mean deviation = = 3.67
n 6
Example 4.4 Calculate the mean deviation for the following data using both mean & median.
Xi :- 14 , 15 , 26 , 20 , 10 , Median 15 , mean = 17
Mean deviation = 10 15 14 15 15 15 20 15 26 15 22 / 5
Xi 10 14 15 20 26 Total
/di / = /xi - / 5 1 0 5 11 22
M. D from median =
xi median
22
4.4 Mean Deviation from median is 4.4. M.
n 5
D from mean
xi mean
24
4 .8
n 5
Example 4.5 Calculate the mean deviation from mean and median
Xi 6 7 8 9 10 11 12
fi 3 6 9 13 8 5 4
Xi fi 18 42 72 117 80 55 48
Mean=
f x i i
432 / 48 9
f i
56
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
th th
n n
1
24th 25th 9 9
Median= 2
2
9
2 2 2
Xi 6 7 8 9 10 11 12 Total
fi 3 6 9 13 8 5 4 48
3 2 1 0 1 2 3
9 12 9 0 8 10 12 60
x x
n 2
2
- s = i an unbiased estimator for population variance
i 1
n 1
57
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
X
1
- 2 = 2
; puplation var iance The computing formula for variance is can be
N 1 .
n
xi xi 2 n
2
simplified as given S2 = i 1 ,
n 1
Since xi x x
2
i 2 xi x x
2
= X i
2
2 x. xi x
2
x x x
2 2 2 2 2
2.n x n x 2n x n x nx
2
= i2 = i = i
xi
2
x 2
x n x
2 2
= i = i i
n n
x 2
x
2 i
i
S2 = n
n 1
xi x1 x2 . . xk
.
fi f1 f2 . . fk
.
f x
n
2
i i x
f
i 1
S2 = where n
n 1 i
f i mi x
2
s2 i 1
Where mi is mid value of class
(n 1)
58
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
frequency 4 1 2 3
Properties of Variance
x x / n 1
2 2
Old x1 , x2 , . . . ., xn S old i
cx cx
2
n 1
new
c x x c x x c 2 xi x
2 2 2 2
i i
= = = = C 2 Sold
2
n 1 n 1 n 1
3. When a constant c is added to all measurement of the distribution, the variance doesn‟t change
xi (old) = xi , x2 , . . . . , xn
xi (new) = x1 + c1 , x2 + c , . . . . , xn + c
X new
x i c
x i c =
x i
nc
= X c
n n n n
x c x c x x
2
S 2
i
i
S 2 old
n 1
new
n 1
Example 4.6 If the mean & variance of x are 10 & 5 , respectively. Find the mean and variance of y,
where y = 10x - 5
y
i 1
i
10 x 5 10 x 5 = 10x
y 5 = 10 (10) – 5 = 100 – 5 = 95
n n n
59
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
i
var (y) = = = = 102
n 1 n 1 n 1 n 1
Standard Deviation
The standard deviation is defined as the square root of the mean of the squared deviations of individual
values from their mean.
X X
2
S.D =
n 1
- Its advantage over variance is that it is in the same unit as the variable under consideration.
- It is a measure of average variation in the set of data.
Example 4.7 Compute the variance & S.D. for the data given below.
xi 32 36 40 44 48 Total
frequency 2 5 8 4 1 20
Xi : 32 36 40 44 48 Total
Fi: 2 5 8 4 1 20
f i xi
2
x f 2 n 31376
i i 788 2 20
S 2
= = 328.8/19 = 17.31
f i 1 19
60
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
S S2 = 17.31 = 4.16
- If the s .d of set of data is small then the values are scattered widely about the mean.
S2 11 , S S2 11 3.316
Example 4.8 Calculate the S.D for the following grouped frequency distribution.
f i mi 2
f i mi 2
n = 7016 800 100 =6.2 S
2
S 2
S 2 6. 22 2.49
f i 1 99
Coefficient of variation (CV): The CV is a unit free measure. It is always expressed as percentage.
SD
CV = 100%
Mean
The CV will be small if the variation is small. Of the two groups, the one with less CV is said to be more
consistent. The coefficient of variation is unreliable if the mean is near zero. Also it is unstable if the
61
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
measurement scale used is not ratio scale. The CV is informative if it is given along with the mean and
standard deviation. Otherwise, it may be misleading.
Example 4.9 Consider the distribution of the yields (per plot) of two paddy varieties. For the first
variety, the mean and standard deviation are 60kg & 10kg, respectively. For the second variety, the
mean and standard deviation are 50kg & 9kg, respectively. Then we have,
It is apparent that the variability in first variety is less as compared to that in the second variety.
Coefficient of Mean Deviation: The coefficient of mean deviation is founded by dividing the mean
deviation by the measure of central tendency about which the deviation is computed.
Example 4.10 Coefficient of the mean deviation from mean & median for above example 4.4 is
24
Mean Deviation from median is 4.4, M. D from mean = 4.8
5
xi x
The standard Score: The standard score is denoted by Z and defined as Z Where
S
S – Standard deviation of the distribution, Xi each observation value. This measures the deviation of
individual observation from the mean of the total observation in the unit of standard deviation and
termed as Z – Score. The Z – scores of individuals in different groups are then added to give a true
Measure of relative performance.
62
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
A 84 75 159
B 74 85 159
Average mark for Accounting is 50 with standard deviation of 11 and average marks for Economics is
60 with standard deviation 13.Whose performance is better A or B?
Z score for A
Z score for B
Since B‟s Z – score is higher; student B had good performance than student A.
We have seen that averages and measure of dispersion can help in describing the frequency distribution.
However, they are not sufficient to describe the nature of the distribution. For this purpose, we use the
other concepts known as Skewness and Kurtosis.
63
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
Skewness: Skewness means lack of symmetry. When the values are uniformly distributed around the
mean a distribution is said to be symmetrical. For example, the following distribution is symmetrical
about its mean 3.
Xi : 1 2 3 4 5
fi : 5 9 12 9 5
~
In a symmetrical distribution the mean, median and mode coincide, that is, X = X = X̂ .
~
X = X Xˆ Symmetrical distribution
When a distribution is skewed to the right; mean > median > mode. If we take income distribution for
different number of families; Income distribution is skewed to the right mean that a large number of
families have relatively have low income and a small number of families have extremely high income.
In such a case, the mean is pulled up by the extreme high incomes and the relation among these three
measures is as shown in figure. Here, we find that mean > median > mode. When a distribution is
skewed to the left, then mode > median > mean. This is because here mean is pulled down below the
median by extremely low values.
64
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
Left(-)skewedDistribution
For distribution which are bell shaped and are moderately skewed, we have an approximate relationship
between the A.M, Median and mode.
For a symmetrical distribution Sk= 0. If the distribution negatively skewed, then the value of S k is
negative, and if it is positively skewed then Sk is positive. The range for values of Sk is from -3 to 3. The
other measure uses the β (beta) coefficient which is given by, β1 = µ32/µ23. Where µ2 & µ3 are the
second and the third central moments.
The second central moment is nothing but the variance. The sample estimate of this coefficient is b1 =
m32 /m23 where m2& m3 are sample central moments given by,
X X f X X X X f X X
2 2 3 3
m2 = or , m3 = or
n 1 n 1 n 1 n 1
For a symmetrical distribution b1 is zero. And also Skewness is positive or negative depending upon
whether m3 is positive or negative.
65
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
Example 4.12 The first four moments about mean of the distribution are 0, 2.5, 0.7, and 18.75. Test the
Skewness of distribution
The sample estimate of this coefficient is b2 = m4/m22, where m4 is the 4th central moment given by
X X
4
Example 4.13 The measure of skewness and kurtosis are given below for data in table.
Value(xi) 3 4 5 6 7 8 9 10
Frequency(f) 4 6 10 26 24 15 10 5
66
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
f X X
2
2 i 275
m2=s = = =2.7777
n 1 99
f X X f X X
4 3
2074.13 43.8
20.9508, m3=
i i
m4 = = = -0.4424
n 1 99 n 1 99
b1 =
m3
2
0.4424
2
0.0091 b2 =
m4
20.9508
2.7153
m2
3
2.77773 , m2
2
2.77772
It is negatively skewed since m3 is negative. The value of b2 is 2.7153 which is less than 3. Hence the
distribution is platykurtic.
67
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
CHAPTER FIVE
An experiment is any activity that generates outcome(s).If an experiment is conducted under homogeneous
and similar conditions, we come across two types of situations or phenomena. The results or the
outcome is unique or certain which are called as deterministic phenomena by which the result can be
predicted certainly from an experiment performed. For instance, in case of ohm‟s law voltage, V =
I*R, Force, F = m *a , the distance (S) covered by a particle after a time t is given by
1
S= Vt at 2 ,…, etc are deterministic phenomena because if we know the right hand side, we certainly
2
determine the left hand side.
The results or the outcomes of an experiment are not unique, but can be one of the several possible
outcomes; this type of model is called probabilistic or non-deterministic (random) phenomena.
Example -In random tossing of a coin, we are not sure of getting head or tail.
- A sex of new born baby may be male or female
- A manufacturer cannot be ascertained (sure) of the future demand of his product with certainty.
As everybody knows our world is a full of uncertainty ,even ,no one knows exactly what comes after a minute,
an hour…etc. but we can guess the chance that something will happen. The word probability or chance is very
commonly used in day-to-day conversation, and generally, people have some idea what it means. Terms like
possible, probable, or likely and so on, have all similar meanings.
Probability: can be defined as a measure of the likelihood that a particular event will occur or it is a
science of decision making with calculated risk in face of uncertainty. It is a numerical measure with a
value between 0 and 1 of such likelihood. Where the probability of zero indicates that the given event
cannot occur and the Probability of one assures certainty of such an occurrence.
68
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
to be mutually exclusive events if there is no sample point in common to both events E 1 and E 2 .
For example, if we roll a fair dice, then the experiment is rolling the die and sample space (S) is
S = 1,2,3,4,5,6 If we are interested the outcome of event E 1 getting even numbers and E 2 odd
exclusive events.
69
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
8. Independent Events: Two events A and B are said to be independent events if the occurrence of
event A has no influence (bearing) on the occurrence of event B. For example, if two fair coins are
tossed, then the result of one toss is totally independent of the result of the other toss. The
probability that a head will be the outcome of any one toss will always be ½, irrespective of
whatever the outcome is of the other toss. Hence, these two events are independent. On the other
hand, consider drawing two cards from a pack of 52 playing cards. The probability that the second
card will be an ace would depend up on whether the first card was an ace or not. Hence these two
events are not independent events.
Another example a bag contains balls of two different colours say yellow and white. Two balls are
drawn successively .First ball is drawn from a bag and replaced after notes its colour. Let us assume that
it is yellow and denote this event by A. Another ball is drawn from the same bag and its colour is noted
let this event denoted by B. Clearly, the result of first draw has no effect on the result of the second
draw. Hence, the events A and B are independent events.
9. Equally likely outcomes: In a certain experiment, if each outcome in the sample space has the same
chance to occur, then we say that the outcomes are equally likely outcomes.
If the number of possible outcomes in an experiment is small, it is relatively easy to list and count all
possible events. When there are large numbers of possible outcomes an enumeration of cases is often
difficult, tedious, or both. Therefore, to overcome such problems one can use various counting
techniques or rules.
i. Addition rule: Suppose that a procedure designated by 1, can be performed in n 1 ways. Assume that
second procedure designated by 2 can be performed in n 2 ways. Suppose furthermore that it is not
possible both procedures 1 and 2 are performed together. The number of ways in which we can
perform 1 or 2 procedures is n 1 + n 2 ways. This can be generalized as follows if there are k
procedures and i th procedure may be performed in n i ways, i=1, 2, …, k , then the number of ways in
k
which we perform procedure 1 or 2 or … or k is given by n 1 +n 2 +…+ n k = ni , assuming that no
i 1
70
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
Example 5.1:Suppose that we are planning a trip and deciding between bus and train transportation. If
there are 3 bus routes and 2 train routes to go from A to B, find the available routes for the trip.There are
3+2 = 5 possible routes for someone to go from A to B.
ii. Multiplication Rule:Suppose that procedure 1 can be performed in n 1 ways. Let us assume procedure
2 can be performed in n 2 ways. Suppose also that each way of doing procedure 2 may be followed
by any way of doing procedure 1, then the procedure consisting of n1 followed by n2 may be
performed by n 1 * n 2 ways. We also generalize to k procedures.
Example 5.2:An airline has 6 flights from A to B, and 7 flights from B to C per day. If the flights are to
be made on separate days, in how many different ways can the airline offer from A to C?In operation 1
there are 6 flights from A to B, 7 flights are available to make flight from B to C. Altogether there are
6*7 = 42 possible flights from A to C.
Example5.3:Suppose that in a medical study patients are classified according to their blood type as A,
B , AB, and O; according to their RH factors as (+) or (-) and according to their blood pressure as
high, normal or low, then in how many different ways can a patient be classified ?
The1st classification has done in 4 ways; the 2nd in 2 ways, and the 3rd in 3 ways. Thus patient can be
classified in 4*2*3 = 24 different ways.
iii. Permutations: Permutation is an arrangement of all or parts of a set of objects with regard to order.
n! n!
nPn = = n!. In definition 0! = 1! = 1.
n n! 0!
Example 5.4:In how many ways 4 people are lined up to get on a bus (or to sit for photo graph)?
In 4! = 4*3*2*1 = 24 Ways.
71
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
Rule-2: A permutation of n different objects taken r at a time is an arrangement of r out of the n objects,
with attention given to the order of arrangement. The number of permutations of n objects taken r at a
time is denoted by nPr, or P (n,r) and is given by
n!
nPr = n(n-1)(n-2)…(n-r+1) =
n r !
3
P2 = 6. These are ab, ba, ac, ca, bc & cb.
Rule-3: The number of permutation of n objects taken all at a time, when n1 objects are alike of one
kind, n2 objects are alike of second kind, …, nk objects are alike of kth kind is given by:
k
ni !
ki 1
n!
ni !
n1! n2 ! n3!...nk !
i 1
Example 5.6 The total number of arrangement of the letters of the word STATISTICS taken all at a time
10!
is given by = 50,400 since there are 3s‟s, 3t‟s, 1a, 2i‟s and 1c.
3!3!1!2!1!
Note:-The number of arrangements of n distinct objects around circular object (table) is (n-1)! and when
the method of selection or arrangement of r objects from n objects with repetition the
possible numbers of arrangements are nr.
Example5.7:Arba Minch University Registrar Office wants to give identity number for students by
using 4 digits. The number should be considered by the following numbers only: {0, 1, 2, 3, 4, 5, and 6}.
Hence, how many different ID Numbers could be preferred by the Registrar
72
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
We have 7 possible numbers for 4 digits. But the required number of digits for ID number is 4.Hence n
= 7 & r = 4.The possible number of ID numbers given for students without repeating the digit is nPr, =
n! 7!
= 7*6*5*4 = 840.
n r ! 7 4!
The possible number of ID numbers given for students with repeating the digit is
nr = 74 = 7*7*7*7 = 2401
iv. Combinations: Combination is the selection of objects without regarding order of arrangement. A
combination of n different objects taken r at a time is a selection of r out of n objects, with no
attention given to the order of arrangement. The number of combinations of n objects taken r at a
3!
Example 5.8:The number of combinations of letters a, b& c taken two at a time is 3C2= = 3.
2!1!
These are ab, ac and bc. Note that ab is the same combination as ba, but not the same in permutation.
Example 5.9: Suppose in the box 3 red, 3 white and 5 black equal sized balls are there. We want to
draw 3 balls at a time. How many ways do we have from each type?
3 3 5
→ Solution = 3(3)5 = 45 ways.
1 1 1
73
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
Example 5.10:In a given basket there is 3 yellow, 4 black and 3 white balls. What is the probability of
selection of one black ball?
favorable cases to A 4
Let event A drawing of black ball, P (A) = = = 0.4
exhaustiveNo. of cases 10
The classic definition of probability has a disadvantage in that of the words equally likely is vague. In
fact, since these words seem to be synonymous with “equally probable”, the definition is circular
because we are essentially defining probability in terms of itself. For this reason, a statistical definition
of probability has been advocated by some people. According to this the estimated probability, or
empirical probability, of an event is taken to be the relative frequency of occurrence of the event when
the number of observations is very large. The probability itself is the limit of the relative frequency as
the number of observations increases indefinitely.
Example 5.11:If 1000 tosses of a coin result in 529 heads, the relative frequency of heads is 529/1000 =
0.529. If another 1000 tosses results in 493 heads, the relative frequency in the total of 2000 tosses is
529 493
=0.511.
2000
According to the statistical definition, by counting in this manner we should ultimately get closer and
closer to a number that represents the probability of a head in a single toss of the coin. From the results
so far presented, this should be 0.5 to one significant figure.
Both the classical and frequency approaches have serious drawbacks, the first because the words equally
likely are vague and the second because the large number involved is vague. Because of these
difficulties, statisticians have been led to an axiomatic approach of probability.
Given a sample space of a random experiment S, the probability of the occurrence of any event A is
defined as a set function P (A) satisfying the following axioms:
k k
P U Ai P( Ai )
i 1 i 1
Results of Axioms
P (A B) = P (A) P (B)
A probability derived from an individual's personal judgment about whether a specific outcome is likely
to occur. Subjective probabilities contain no formal calculations and only reflect the subject's opinions
and past experience. Subjective probabilities differ from person to person. Because the probability is
subjective, it contains a high degree of personal bias. An example of subjective probability could be
asking Arsenal fan, before the football season starts, the chances of Arsenal winning the world
champions. While there is no absolute mathematical proof behind the answer to the example, fans might
still reply in actual percentage terms, such as the Arsenal having the 95% chance of winning the world
champions.
Events as a Set
75
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
The probability of occurrence of at least one of the two events A and B is given by:
P (A B) P( A) P( B) P( A B)
P (A B) P( A) P( B)
76
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
Example 5.13: A jar contains black and white marbles. Two marbles are chosen without replacement.
The probability of selecting a black marble and a white marble is 0.34, and the probability of selecting a
black marble on the first draw is 0.47. What is the probability of selecting white marble on the second
draw, given that the first marble drawn is black?
PWhite | Black
P( Black and White ) 0.34
0.72
P( Black ) 0.47
Example 5.14:The probability that it is Friday and that a student is absent is 0.03. Since there are 5
schooldays in a week, the probability that it is Friday is 0.2. What is the probability that a student is
absent given that today is Friday?
P Absent | Friday
P( Friday and Absent ) 0.03
0.15
P( Firday ) 0.2
It often happens that the knowledge that a certain event A has occurred has no effect on the probability
that some other event B has occurred, that is, P( A | B) P( A) . One would expect that in this case, the
equation P( B | A) P( B) would also be true. If these equations are true, we may say B is independent
of A. In another words two events A and B are said to be independent if
P( A | B) P( A) P( B | A) P( B) and P (A B) = P (A) P (B)
A variable whose value is determined by random experiment is called random variable. Mathematically
a random variable is defined as a function from the sample space S to the line of real numbers R. In
other words random variable is a function that assigns a real number to each outcome in the sample
space of a random experiment. i.e. X: SR
A random variable takes a possible outcome and assigns a number to it.
Example: Flip a coin three times, let X be the number of heads in three tosses.
S= {(HHH),(HHT), (HTH), (HTT), (THH), (THT), (TTH), (TTT)}
X (HHH) =3,
X (HHT) =X (HTH) =X (THH) =2
77
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
Probability Distributions
Probability distribution of a random variable is the formula, table or graph that gives the possible value
of a random variable X with their associated probability P(X). A probability distribution consists of
possible values of the random and the corresponding probabilities of the values. It can be classified as
discrete or continuous depending on the nature of the random variable.Discrete probability distributions
are commonly called probability mass function (pmf) and denoted by P(X) = P(X=x). Similarly,
continuous probability distributions are known as probability density function (pdf) denoted by
f (X ) f ( x)dx
Example: Consider the experiment of tossing a coin three times. Let X be the number of heads.
Construct the probability distribution of X.
Solution:First identify the possible value that X can assume then calculate the probability of each
possible distinct value of X and express X in the form of frequency distribution.
X=x 0 1 2 3
P(X=x) 1/8 3/8 3/8 1/8
Properties of Probability Distribution
78
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
The probability distribution of a random variable should satisfy the following conditions.
1.
2.
∫ f (x)dx 1 , if X is continuous.
Note:
1. If X is a continuous random variable then
The probability distribution can be represented graphically by plotting P(X) against X, just as relative
frequency distributions. By cumulating probabilities, we obtain cumulative probability distributions,
which are analogous to cumulative relative frequency distributions.The cumulative distribution
P( X x) if X is discrete
X x
is: F ( X ) P( X x) x
f (t )dt if X is continous
Expected Value
1. Let a discrete random variable X assume the values X1, X2, ….,Xn with the probabilities P(X1),
P(X2), ….,P(Xn) respectively. Then the expected value of X , denoted as E(X) is defined as:
E( X ) X1P( X1) X 2 P( X 2).... X n P( X n) =
2. Let X be a continuous random variable assuming the values in the interval (a, b)
such that
79
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
Let X be given random variable with expected value (mean) of E(x), then the variance of X is given by:
( x E ( X )) 2 P( X x) if X is discrete
x
Var ( X ) E ( x E ( X ))
( x E ( X ) 2 ) f ( x)dx if X is continous
In the form of expectation variance of X is Var(X ) E(X 2)−[E(X )]2 or
Var(X) = E(X(X-1)) + E(X) – (E(X))2
Where:
Example 1: Compute the mean and variance of the random variable X, which denotes the number
showing up when a single die is rolled.
X=xi 1 2 3 4 5 6
P(X=xi) 1/6 1/6 1/6 1/6 1/6 1/6
= 2.9167
Example 2: Compute the mean and variance of the following probability distribution.
80
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
In practice we have use some of both discrete and continuous probability models.
i. Binomial Distribution
It is used to represent the probability distribution of discrete random variables. Binomial means two
categories. The successive repetition of an observation (trial) may result in an outcome which possesses
or which does not possess a specified character. Our primary interest will be either of these possibilities.
Conventionally, the outcome of primary interest is termed as success. The alternative outcome is termed
as failure. These terminologies are used irrespective of the nature of the outcome. For example, non-
germination of a seed may be termed as success.
81
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
The variable X which represents the count of the number of successes in Bernoulli trials will be a
discrete random variable. The probability distribution of such discrete random variable X is called the
binomial distribution. The binomial distribution is given by the probability mass function (pmf):
n
P(X=x) = p x q n x for all possible values of X.
x
where, n= number of trials, x= number of successes in a trial, n-x = number of failures in a trial, p =
n
probability of success (= x/n), q = 1 - p = probability of failure, and = the possible number of
x
ways in which x successes can occur.
The binomial distribution is determined by two parameters n and p.
The expected value of the binomial distribution is np and the variance of it is npq.
Example 1:A given mid-exam contains 10 multiple choice questions, and each question has four
alternatives with one exact answer. Find the probability that the student exactly answered
n
P(X = x) = p x q n x
x
10
i. P(X = 3) = (0.25)3(0.75)7 = 0.250
3
10
ii. P(X = 8) = (0.25)8 (0.75)2 = 0.00386
8
iii. P(X >= x) = 1 - P(X < x). Hence P(X >= 3) = 1 – P(X < 3)
= 1 – {P(X = 0) + P(X = 1) + P(X = 2)}
82
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
10
P(X = 0) = (0.25)0(0.75)10 = 0.0563
0
10
P(X = 1) = (0.25)1(0.75)9 = 0.1877
1
10
P(X = 2) = (0.25)2(0.75)8 = 0.2816
2
Example 2:Suppose that a population of size N = 500 consists of 300 dominants and 200 recessive. For
a sample of size n = 10, calculate the probabilities:-
10
a) P[X=2] = 2 / 5 3 / 5 0.1210
2 8
2
10
b) P[X 2] 1 P[ X 0] P[ X 1] , but P[X=0] = q10 0.006047
0
10
P[X=1] = pq 9 0.040320 .
1
Hence, P[X 2] = 1 - (0.006047 + 0.040320) = 0.9536
The binomial distribution approaches normal distribution as the number of trials n tends to large (n→ )
for any fixed value of p. A rule of thumb is that for p < 0.5, the normal approximation is adequate if np
83
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
>5. Departures from the given conditions result in less accurate approximations. When n is very large
and p is very small (n→∞ &p→0) the binomial distribution approaches Poisson distribution.
The Poisson distribution is also used to represent the probability distribution of a discrete random
variable. It is employed in describing random events that occur rarely over a continuum of time or space,
such as number of car accident in certain road corr-section, number of errors in digital communication,
number of type fill errors, etc. The Poisson distribution bears a close similarity to the binomial
distribution. Suppose that we are interested in the number of occurrences of an event E in a time period
of length t. This time period can be split into n equal intervals, each of length t/n. These n intervals can
be treated as n trials by Bernoulli process. But there is difficult. Since the event occurs at various points
of time, it can occur twice or more in one of the trials of length t/n. In case of binomial distribution the
event is dichotomous, and hence there is no possibility of such multiple occurrences within a single trial.
In order to overcome this difficulty we make n larger and larger. When n is large, the trials are shorter in
terms of length of time. As a result, the probability of occurrence of an event in a single trial would be
smaller. It is equivalent of saying that it is a rare event. The binomial distribution can still be used to
represent the distribution of such random events. However, the computations become tedious since n is
very large. This can be explained by example.
Suppose that the number of insects caught in a trap is being studied and that the data are collected on the
number of insects caught per hour. Assume that the probability that an insect will be caught in any
single minute is 0.06. Assume further that the events of insects being trapped are mutually independent
and the probability p = 0.06 remains same for all the minutes. We may use the binomial distribution to
calculate the number of insects caught per hour by considering each minute as a separate Bernoulli trial.
60
If x is the number of insects caught in a minute then we have: P[X=x] = 0.06 0.94
x 60 x
x
Instead of dividing the hour into minutes the seconds may be used as basic units. Then the value of p
would be reduced to, p=0.06/60=0.001. Considering each second as a Bernoulli trial, we would have a
sample size 60 60=3600 for a period of one hour. The binomial distribution would now be:
3600
0.001 0.999
3600 x
P[X=x] =
x
x
84
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
Thus when n becomes larger and larger the computations using binomial become tedious. Fortunately, it
n
has been shown by Poisson that the value of p x q n x approaches the value of
np X e n p , when n
x x!
becomes large and p becomes small in such a way that the equality, np = is maintained.
e x
P[X=x] = . Where, = np = mean number of times an event occurs.
x!
The value of e can be obtained directly from mathematical tables. In case of Poisson distribution the
counts of alternative events, i.e., failures are not of interest. This is a contrast between binomial and
Poisson distributions. For Poisson distribution all that we need is np, the mean number of successes. We
need not know about n and p individually. Thus, the Poisson distribution is determined by the parameter
. The special property of Poisson distribution is that its mean and variance are same to .
Example 3:In Black Lion Hospital, the average new born female baby in every 24 hour is 7. What is the
probability that
e 7 7 0
No female baby born in a day P(X = 0) = = e-7 = 0.0138189
0!
e 7 7 3
Only three female babies are born P(X = 3) = = 0.78998
3!
Two female babies are born in 12 hours → in this case = 7⁄2 = 3.5
e 3.5 (3.5) 2
P(X = 2) = = 0.184959
2!
85
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
Example 4:In some experiments it was observed that the incidence of stem fly in black gram was 6
percent. Suppose we examine 50 black gram plants in a field at random. What is probability that at most
3 plants will be found to be affected by stem fly?
The probability that a plant is affected by stem fly is given as 0.06. The number of plants observed (n =
50). Hence, = np = 3. The required probability is
e x e 3 30
P[X = x] = P[X = 0] = = e-3
x! 0!
e 3 31
P[X = 1] = = 3e-3
1!
e 3 3 2
P[X = 2] = = 4.5e-3
2!
e 3 33 27e 3
P[X = 3] = 4.5e 3
3! 6
P[X 3 ] = 13e-3. From mathematical table it can found that e-3 = 0.0498.
i. Normal Distribution
The most important and widely used probability distribution is normal distribution. It is also known as
Gaussian distribution. Most of the distributions occurring in practice, for instance, binomial, Poisson,
etc., can be approximated by normal distribution. Further, many of the sampling distributions like
Student‟s t, F, & χ2 distributions tend to normality for large samples. Therefore, the normal distribution
finds an important place in statistical inference.
The normal distribution is used to represent the probability distribution of a continuous random variable
like life expectancies of some product, the volume of shipping container, etc.
86
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
1 X
2
e 2
1
f (X )
2
Where: = a constant equaling 22/7, e = Naperian base equaling 2.718, = population mean, =
population standard deviation, x = a given value of the rv in the range - x .
For a normal distribution the frequency curve will be symmetrical or bell shaped. However, not all
symmetrical curves are normal. The shape of the normal curve is completely determined by two
parameters & . For any given , there can be a number of normal curves each with a different .
Likewise, for any given , there can be a number of normal curves each with a different . In order to
make such all distributions readily comparable with each other, their individuality as expressed by their
mean and standard deviation has to be suppressed. This is done by transforming the normal variable into
standard normal variable.
X
The standard normal variable is denoted by Z and is given by Z = .
The distribution of the standard normal variable is known as standard normal distribution and given by:
1 1 2
f(x) = e z , in the range - z .
2 2
For standard normal distribution, 0 and 1. Tables are readily available for different values
of Z. Because of the symmetrical nature of the normal distribution the tables are presented only for the
positive values of Z.
Note:Area under curve is equal to one. But area above or below z = 0 is 0.5
Example 5:On a final examination in mathematics, the mean was 72 and the standard deviation was 15.
87
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
iii) Find the probability that any student score between 60 & 93. i.e. P[ 60< X < 93]
Solution: Where X is mark of student
X X 60 72
ia) Z = 0.8
S 15
93 72
ib) Z = 1.4
15
ic) Z = 0
iia) X = X + ZS = 72 + -1(15) = 57
iib) X = X + ZS = 72 + 1.6(15) = 96
60 X X X 93 X
iii) P [60 X 93] = P [ ] = P [-0.8 Z 1.4 ] =
S S S
P [-0.8 Z 0] P[0 Z 1.4] P[0 Z 0.8] P[0 Z 1.4] 0.2881 0.4192 = 0.7073 (This
is from standard normal table).
From the table of Normal curves it can be seen that 68.26% of the area lies within the range of ,
95.46% within the range of 2 , and 99.74% within the range of 3 . This is an important
property of normal distribution which is frequently used in statistical inference.
88
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
The normality of a distribution can be tested using several methods. Three important methods can be
mentioned. They are graphic methods, Pearson‟s test and goodness of fit. On the basis of Pearson‟s
coefficients, 1 & 2 we can say whether a distribution is normal or not. If 1 0 & 2 = 3, the
distribution is said to be normal. (See chapter four about skewness and kurtosis)
The square of a standard normal variable is called a chi-square variate with one degree of freedom. Thus
if is a random variable following normal distribution with mean and standard deviation , then
square of independent standard normal variates, follows chi-square distribution with degree of
freedom.
In probability and statistics Student's t-distribution (or simply the t-distribution) is a probability
distribution that arises in the problem of estimating the mean of a normally distributed population when
the sample size is small. It is the basis of the popular Student's t-tests for the statistical significance of
the difference between two sample means, and for confidence intervals for the difference between two
population means. The Student's t-distribution is a special case of the generalized hyperbolic
distribution.
Suppose X1, ..., Xn are independent random variables that are normally distributed with expected value μ
and varianceζ2. Let the sample mean and sample variances are:
89
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
The quantity has a chi-square distribution with n − 1 degrees of freedom. It is readily shown that the
quantity
Z is normally distributed with mean 0 and variance 1, since the sample mean is normally distributed
with mean μ and standard error . Moreover, it is possible to show that these two random variables
the normally distributed one and the chi-square-distributed one are independent. Consequently the
pivotal quantity,
which differs from Z in that the exact standard deviation σ is replaced by the random variable , has a
Student's t-distribution as defined above. The distribution of T is now called the t-distribution.
90
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
CHAPTER SIX
When secondary data are not available for the problem under study, a decision may be taken to collect
primary data by using any of the methods of data collection discussed in the chapter one. The required
information may be obtained by following either the census method or the sample method.
Under the census or complete enumeration survey method, data are collected for each and every unit
(person, household, field, shop, factory etc.), as the case may be of the population or universe, which is
the complete set of items, which are of interest in any particular situation. If it is not essential to conduct
the complete enumeration, then a sample of some suitable size is selected from the population and the
study is carried out on the sample. This study is called sample survey. Most of the research work is done
through sample surveys.
Sampling is the process or method of selecting sample from the population (universe)
To easily follow sampling remind the terms such as population, sample, statistic, parameter, target
population, sampling unit, sampling frame, sample size, etc.
Essentials of Sampling
1. Saves Time, Energy and Cost: As the size of the sample is small as compared to the population, the
time and cost involved on sample study are much less than the complete counts. For complete count
huge funds are required. There is always the problem of finances. A small sample can be studied in a
limited time and total cost of sample study is very small. Thus the sample study requires less time
and less cost.
2. Reliability:If we collect the information about all the units of population, the collected information
may be true. But we are never sure about it. We do not know whether the information is true or
completely false. Thus we cannot say anything with confidence about the quality of information. We
say that the reliability is not possible. This is a very important advantage of sampling. The inference
about the population parameters is possible only when the sample data is collected from the selected
sample. Sample data is also used to check the accuracy of the census data.
91
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
3. Representativeness: A sample should be so selected that it truly represents the universe otherwise
the results obtained may be misleading. To ensure representativeness the random method of
selection should be used.
4. Adequacy: The size of sample should be adequate; otherwise it may not represent the characteristics
of the universe.
5. Independence: All items of the sample should be selected independently of one another and all
items of the universe should have the same chance of being selected in the sample. By independence
of selection we mean that the selection of a particular item in one draw has no influence on the
probabilities of selection in any other draw.
6. Homogeneity: When we talk of homogeneity we mean that there is no basic difference in the nature
of units of the universe and that of the sample. If two samples from the same universe are taken, they
should give more or less the same unit.
The various methods of sampling can be grouped under two broad heads:
1. Probability sampling (also known as random sampling) and
2. Non-probability (or non-random) sampling.
Probability sampling methods are those in which every item in the population has a known chance, or
probability, of being chosen for sample. This implies that the selection of sample items is independent of
the person making the study-that is, the sampling operation is controlled so objectively that the items
will be chosen strictly at random. It may be noted that the term random sample is not used to describe
the data in the sample but the process employed to select the sample. Randomness is thus a property of
the sampling procedure instead of an individual sample. As such, randomness can enter processed
sampling in a number of ways and hence random samples may be of kinds.In other words, there is no
personal bias regarding the selection. Five common random sampling techniques are:
92
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
Non-random sampling is a process of sample selection without the use of randomization. In other words,
a non-random sample is selected basis other than the probability consideration such as convenience,
judgment, voluntary, quota, etc. In non-probability sampling techniques all elements of a population
have no known chance of inclusion or some outcomes have a zero chance of being selected as a sample.
The most familiar examples of non-random sampling techniques are:
Simple random sampling refers to that sampling technique in which each and every unit of the
population has an equal opportunity of being selected in the sample. In simple random sampling which
items get selected in the sample is just a matter of chance-personal bias of the investigator does not
influence the selection. It should be noted that the word random does not mean „haphazard‟ or „hit-or-
miss‟-it rather means that the selection process is such that chance only determines which items shall be
included in the sample. As pointed out by Chou, when a sample of size n is drawn from a population
with N elements, the sample is a simple random sample if any of the following is true. And, if any, the
following are true:
All n items of the sample are selected independently of one another and all N items in the
population have the same chance of being included in the sample. By independence of selection
we mean that the selection of a particular item in one draw has no influence on the probabilities
of selection in any other draw.
At each selection, all-remaining, items in the population have the same chance of being drawn. If
sampling is made with replacement, i.e. when each unit drawn from the population is returned
prior to drawing the next unit each item has a probability of 1/ N of being drawn at each
selection.
93
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
If sampling is without replacement, i.e. when each unit drawn from the population is not returned
prior to drawing the next unit, the probability of selection of each item remaining in the population at
the first draw is 1/N, at the second draw is 1/(N-1),at the third draw is 1 / (N-2), and so on. It should
be noted that sampling with replacement has very limited and special use in statistics-we are mostly
concerned with sampling without replacement.
All the possible samples of a given size n are equally likely to be selected.
To ensure randomness of selection one may adopt either the lottery method or table of random numbers.
Lottery Method: This is a very popular method of taking a random sample. Under this method, all
items of the universe are numbered or named on separate slips of paper of identical size and shape.
These slips are then folded and mixed up in a container or drum. A blindfold selection then made of the
number of slips required to constitute the desired sample size. The selection of items thus depends
entirely on chance. This method would be quite clear with the help of an example. If we want to take a
sample of 10 persons out of a population of 100, the procedure is to write the names of the 100 persons
on separate slips of paper, fold these slips, mix them thoroughly and then make a blindfold selection of
10 slips. The above method is very popular in lottery draws where a decision about prizes is to be made.
However, while adopting lottery method it is absolutely essential to see that the slips are of identical
size, shape and color, otherwise there is a lot of possibility of personal prejudice and bias affecting the
results.
The remaining both random Sampling methods (systematic, stratified, cluster, and multi-stage sampling)
and non-random sampling methods (Judgment, Quota, Convenience, and Volunteer sampling) are left
for you as reading assignment.
94
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
A sampling distribution of the sample mean is a distribution obtained by using the means computed
from random samples of a specific size taken from a population. To illustrate the basic idea of sampling
distribution, we will consider very small hypothetical populations of 5 farmers, who use fertilizer in
their farming. Suppose the amount of fertilizer used (in ) by each of the farmer is 70, 78, 80, 80, and
95. Then, we obtain the following characteristics of the population
This population characteristics are mostly unknown and should be estimated from the sample
95
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
The sample mean ( ) is obtained by dividing the sum of the three weights of fertilizer in that sample by
3. For example, the mean of the first sample is Using the value of as given above,
we record the frequency distribution of . Then, we obtain the probabilities of the random variable
by dividing the frequency of by the sum of the frequencies. These are listed below
This table gives the sampling distribution of . If we draw just one sample of three framers from the
population of five farmers, we may draw any one of the 10 possible farmers. Hence, the sample mean
can assume any of the values listed above with the corresponding probabilities. For example, the
probability of the mean 81.67 is . Therefore, the sample average, , is a random
variable that depends on which sample is selected. The value varies from 76.00 to 85 which are lower or
higher than the population mean . The average of the estimates of all possible samples for any
sample size is the true population value. That is, the expected value of , denoted by , taken over
An important decision that has to be taken in adopting a sampling technique is about the size of the
sample. Size of sample means the number of sampling units selected from the population for
investigation. Experts have expressed different opinions on this point. For example, some have
96
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
suggested that the sample size should be 5 per cent of the size of population while others are of the
opinion that sample size should be at least 10 per cent. However, these views are of little use in practice
because no hard and fast rule can be laid down that sample size should be 5 per cent, 10 per cent or 25
per cent of the universe size. It may point out that more size alone does not ensure representativeness. A
smaller sample, but well selected sample, may be superior to a larger but badly selected sample.
If the size of the sample is small it may not represent the universe and the inference drawn about the
population may be misleading. On the other hand, if the size of sample is very large, it may be too
burdensome financially, require a lot of time and may have serious problems of managing it. Hence the
sample size should neither be too small nor too large. It should be „optimum‟. Optimum size, according
to Parten, is one that fulfills the requirements of efficiency, representativeness, reliability and flexibility.
The following factors should be considered while deciding the sample size: the size of the universe,the
resources available, the degree of accuracy or precision desired, homogeneity or heterogeneity of the
universe, nature of study, and method of sampling adopted, nature of respondents.
To determine sample size a number of formulae have been devised for determining the sample size
depending upon the availability of information. A few formulae are given below:
2
zs
n=
d
Where: n = Sample size, z= Value at a specified level of confidence or desired degree of precision, s=
Standard deviation of the population, d= Difference between population mean and sample mean.
Example: Determine the sample size if s = 6, population mean = 25, sample mean = 23 and the desired
degree of precision is 99 percent.
2
ZS
n= , s= 6, d= 25-23 = 2, z = 2.576 (at 1% level the z value is 2.576)
d
2.576 6
2
97
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
CHAPTER SEVEN
REGRESSION ANDCORRELATION ANALYSIS
7.1 Introduction
Regression analysis, in the general sense, means the estimation or prediction of the unknown values of
one variable from known values of the other variable .In regression analysis there are two types of
variables. The variable whose value is influenced or to be predicted is called dependent (regressed or
explained) variable, and the variable which influences the values or is used for prediction is called
independent variable (regressor or predictor or explanatory). If the Regression curve is a straight line,
we say that there is linear relationship between the variables under study, non-linear elsewhere.
When only two variables are involved, the functional relationship is known as simple regression. If the
relationship between the two variables is a straight line, it is known as simple linear regression;
otherwise it is called as simple non-linear regression. When there are more than two variables and one of
them is assumed dependent upon the other, the functional relationship between the variables is known as
multiple regressions. Moreover, correlation analysis is concerned with mathematical measure of the
extent or degree of relationship between two variables.
a) Income –consumption
b) Sales of ice-cream –with temperature of the day
c) Industrial production and consumption of electricity
d) The yield of crops, amount of rainfall, type of fertilizer, humidity.
e) Weight and height, age and strength, blood pressure and time of
exercise.
Simple linear regression is refers to the linear relationship between two quantitative variables in such
way that one of them influences the other. The simple linear regression of Y on X in the population is
given by Y= X
98
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
= slope of the line or regression coefficient (change in Y for unit change of value of X)
The y-intercept and the slope are the population parameters. We generally obtain the estimates of
and from the sample. The estimator of and are denoted by a and b, respectively. Thus the
fitted regression line is
ŷ = a+ bx
The values of a and b are obtained using the method of least squares. According to the principle of least
squares, one should select a and b such that e 2
will be as small as possible, that is, we minimize
e = S= y a bx
2 2
SSE=
To minimize this function, first we take the partial derivatives of SSE with respect to a and b. Then the
partial derivatives are equal to zero separately. These will result in the equations known as normal
equations.
y na bx
xy a x b x 2
By solving these normal equations, we can get the values of a and b as follow.
99
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
xy n
x y
n xy x y
b
x n x 2 x
x
2 2
2
a y bx
The regression line indicates the average value of the dependent variable Y associated with a particular
value of the independent variable X. The slope b, hereafter referred to as regression coefficient which
indicates the change in Y with a unit change in X.
Example 7.1 The following table gives the ages and blood pressure of 10 women
Age(x) 56 42 36 47 49 42 60 72 63 55
Blood pressure(y) 147 125 118 128 145 140 155 160 149 150
a) Determine the least square regression equation of blood pressure on age of women
b) Estimate the blood pressure of a women whose age is 45 years.
Solution
x 2
= 28348 y 2
= 202493 y 141.7
100
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
a) The least square regression equation of blood pressure on age of women is given by
=83.76+1.11x
ŷ =a + bx
=83.76+1.11*45=133.71
Example 7.2: From the following data obtain the regression equation of Y on X
Solution
1 n n
1
a y bx ( yi b xi ) (700 0.61 900) 15.1
n i i 1 10
101
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
y 15.1 0.61x
Correlation analysis is concerned with measuring the strength (degree) of the relationship between two
or more variables. Some of correlations are simple correlation, partial correlation, and autocorrelation.
Simple correlation is used if we are interested in knowing the extent of interdependence between two
variables or to measure degree of linear relation between two variables.
The Karl Pearson correlation coefficient denoted by r ( x, y) or rxy or simply r, is defined as the ratio of
r
cov( x, y )
( x x)( y y)
i i
x y
( x x) ( y y )
i
2
i
2
xy n
x y
n xy x y
r
x y (n x 2 ( x) 2 )(n y 2 ( y ) 2 )
x n y n
2 2
2 2
An increase in one variable may cause an increase in the other variable, or a decrease in one variable
may cause decrease in the other variable. When the variables move in the same direction like this they
are said to be positively correlated. The positive correlation may be termed as direct correlation. If a
decrease in one variable causes an increase in the other variable or visa versa, the variables are said to be
negatively correlated. The negative correlation may be termed as inverse correlation. In case the two
variables are not at all related they are said to be independent or uncorrelated.
Example
102
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
The strength of correlation does not depend on the positiveness and negativeness of r.
The slope of simple linear regression (coefficient of regression) and correlation coefficient
should be the same in sign.
The correlation between two variables is linear if a unit changes in one variable result in a constant
change in the other variable. Correlation can be studied through plotting scattered diagrams
103
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
Example 7.3 Calculate simple correlation coefficient (r) for the data on advertising and sales
expenditure and interpret it.
Advertising(x): 39 65 62 90 82 75 25 98 36 78
Sales (y) : 47 53 58 86 62 68 60 91 51 84
There is strong positive (direct) linear relationship between sales and advertisement since simple
correlation coefficient approaches to 1
Example 7.4:Calculate and interpret simple correlation coefficient for data on blood pressure and age of
10 women
Age(x) 56 42 36 47 49 42 60 72 63 55
Blood 147 125 118 128 145 140 155 160 149 150
pressure(y)
x 2
= 28348 y 2
= 202493 y 141.7
104
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
There is strong direct linear relationship between blood pressure and age of women, since
correlation coefficient approaches to +1.
Coefficient of Determination (R2)
It is defined as the proportion of the variation in the dependent variable Y that is explained, or accounted
for, by the variation of the independent variable X. Its value is the square of the coefficient of
correlation, thus we denote it by r2 and it is usually expressed in the form of percentage.Example
compute and interpret coefficient of determination for above example on age and blood pressure.
Given that simple correlation coefficient between blood pressure and age is 0.89, hence coefficient of
determination is square of the coefficient of correlation (r2)=(0.89)2=79.21% which implies that 79.21%
variation in the blood pressure of women is accounted for, by the variation of the age of women.
Rank Correlation
Sometimes we come across statistical series in which the variables under consideration are not capable
of quantitative measurement, but can be arranged in serial order. This happens when we dealing with
qualitative characteristics(attributes ) such as beauty, efficient ,honest ,intelligence ,….etc., in such
case one may rank the different items and apply the spearman method of rank difference for finding
out the degree of relationship. The greatest use of this method(rank correlation) lies in the fact that
one could use it to find correlation of qualitative variables, but since the method reduces the
amount of labor of calculation ,it is sometimes used also where quantitative data is available. It is
used when statistical series are ranked according to their magnitude and the exact size of individual item
is not known. Spearman‟s correlation coefficient is denoted by rs. If the ranks are given, denote the
difference R1i - R2i by di and obtain the total of di. Then the following formula is applied
6 d 2
rs 1
n n 1
2
If the actual data is given, rank it in ascending or descending order and follow the above procedures.
Note that the values of rank correlation (rs),.also lies between -1 and +1 inclusive.
Example 7.5 Ten competitors in a beauty contest are ranked by two judges in the following order.
Compute and interpret opinion of two judges with regard to beauty out looking.
105
Arba Minch University Department of Statistics
College of Natural Sciences Probability and Statistics for Engineers
1st judge(x) 1 6 5 10 3 2 4 9 7 7
2nd judge(y) 3 5 8 4 7 10 2 1 6 9
d=(x-y) -2 1 -3 6 -4 -8 2 8 1 -2
d2 4 1 9 36 16 64 4 64 1 4
d 2
203
6d2 6 * 203
rs 1 1 0.2303
n n 1 2
10 10 2 1
Hence the pair of judges has opposite (divergent) tastes for beauty since rank correlation
coefficient is negative.
Example 7.6 Calculate rank correlation coefficient between advertisement cost and sales from the
following data and interpret it.
Advertisement(x): 39 65 62 90 82 75 25 98 36 78
Sales (y) : 47 53 58 86 62 68 60 91 51 84
Solution
Rank of X : 8 6 7 2 3 5 10 1 9 4
Rank of Y : 10 8 7 2 5 4 6 1 9 3
d = x - y :-2 -2 0 0 -2 1 4 0 0 1
d2 :- 4 4 0 0 4 1 16 0 0 1
d 2
30
6 d 2 6 x 30 2 9
n 10 rs 1 1 1 0.82
n n 1 2
10 10 1
2
11 11 rs = 0.82
It implies that there is strong positive linear relationship between advertisement cost and sales since
correlation coefficient approaches to +1.
106