1-Inroduction Statistics and Queuing Theory
1-Inroduction Statistics and Queuing Theory
Queuing Theory
Course No: MAT0541202
Topic 1: Introduction
Variables
Element
Names Stock Annual Earn/
Company Exchange Sales($M) Share($)
Data Set
Statistical data
Types of Data:
Quantitative data are measurements that are recorded
on a naturally occurring numerical scale.
Qualitative data are measurements that cannot be
measured on a natural numerical scale; they can only be
classified into one of a group of categories.
Statistical data
Types of Data (cont.):
Quantitative data:
Measured on a numeric scale.
Number of defective items in a lot.
Salaries of CEOs of oil companies.
Ages of employees at a company.
12 4
943
52
120 21 8
71 3
Statistical data
Types of Data (cont.):
Qualitative data:
Classified into categories.
College major of each student in a class.
Gender of each employee at a company.
Method of payment (cash, check, credit card).
$ Credit
Variable and Constants
Variable:
A characteristic about each individual element of a
population or sample.
Vary from person to person,object to object
Example: A college dean is interested in learning
about the average age of faculty. Identify the basic
terms in this situation.
The population is the age of all faculty members at the college. A
sample is any subset of that population. For example, 10
faculty members.
The variable is the “age” of each faculty member.
One data would be the age of a specific faculty member.
Variable and Constants
Variable Types:
Nominal
Qualitative
Ordinal
Variable
Discrete
Quantitative
Continuous
Variable and Constants
Variable Types (cont.):
Numerical/Quantitative variable:
A variable that quantifies an element of a population.
accepts numerical values.
Arithmetic operations like addition, subtraction, average,
etc are meaningful.
Qualitative, or Attribute, or Categorical Variable:
A variable that categorizes or describes an element of a
population.
no arithmetic operation
categories may be represented by numbers Like, fmale = 0,
female = 1.
Variable and Constants
Variable Types (cont.):
Example:
The residence hall for each student in a statistics class.
(Categorical)
The amount of gasoline pumped by the next 10
customers at the local Unimart. (Numerical)
The amount of radon in the basement of each of 25
homes in a new development. (Numerical)
The color of the baseball cap worn by each of 20
students. (Categorical)
The length of time to complete a mathematics homework
assignment. (Numerical)
Variable and Constants
Numerical/Quantitative Variable Types:
Discrete Variable:
possible to count/enumerate all possible values e.g.
number of rooms in a house.
in general, countable data is an example of discrete
variable e.g. population in each division in Bangladesh.
non-negative whole numbers.
Continuous Variable:
A quantitative variable that can assume an uncountable
number of values
are usually associated with measurements e.g. height.
can accept any number of infinite values within a given range.
Variable and Constants
Qualitative, or Attribute, or Categorical variable
Types:
Nominal Variable:
categories do not have an inherent ordering.
e.g. do you prefer to write early in the morning or before
going to bed at night? The answers can be {morning,
night}.
Ordinal Variable:
categories have an inherent ordering.
e.g. how satisfied you are with a customer service? The
answers can be {very satisfied, satisfied, neutral,
unsatisfied}.
Data
Level/scale of Measurement
The scale determines the amount of information
contained in the data.
To measure a variable there are various ways. We
classify the ways into four scales of measurement
Nominal scale
Ordinal scale
Interval scale
Ratio scale
Data
Level/scale of Measurement (cont.)
IQ score
Data
Level/scale of Measurement (cont.)
Ratio scale data have all the properties of interval
data and the ratio of two values is meaningful and also
has a clear definition of 0.0.
Ratio scale has absolute zero
Variables like height, weight, enzyme activity are ratio
variables.
Population Sample
a b cd b c
ef gh i jk l m n gi n
o p q rs t u v w o r u
x y z y
Population vs. Sample
Why Sample?
Example:
-Testing a new vaccine on entire population would be risky.
Instead trials are conducted on a sample group
-The daily users of a website keep changing, so web analysts
take a sample from a specific period
Sample
3 factors that influence sample representativeness
Sampling procedure
Sample size
Participation (response)
When might you sample the entire population?
When your population is very small
When you have extensive resources
When you don’t expect a very high response
Sample
What is Good Sample?
The sample must be:
1. representative of the population;
2. appropriately sized (the larger the better);
3. unbiased;
4. random (selections occur by chance);
Sample
income histogram
right skewed (long right tail).
uni-modal.
Graphical Presentation of Data
Histogram (cont.)
can be individual
or a group of
cases. Make
sure they are not
data entry errors.
Graphical Presentation of Data
Dot plot
is a one variable scatter plot.
useful if you want to investigate each variable
separately.
stacked version
Graphical Presentation of Data
Bar charts
The data presented is categorical
Data is presented in the form of rectangular bar of
equal breadth.
Each bar represent one variant /attribute.
Suitable scale should be indicated and scale starts
from zero.
The width of the bar and the gaps between the bars
should be equal throughout.
The length of the bar is proportional to the
magnitude/frequency of the variable.
The bars may be vertical or horizontal.
Graphical Presentation of Data
Bar charts (cont.)
Graphical Presentation of Data
Multiple Bar charts
Also called compound bar charts
More then one sub-attribute of variable can be
expressed
Graphical Presentation of Data
Pie Charts
Most common way of presenting data
The value of each category is divided by the total
values and then multiplied by 360 and then each
category is allocated the respective angle to present
the proportion it has.
It is often necessary to indicate percentages in the
segment as it may not be sometimes very easy
virtually, to compare the areas of segments.
Graphical Presentation of Data
Pie Charts (cont.)
Example
Graphical Presentation of Data
Map Diagram
When statistical data refers to geographic or administrative
areas, it is presented either as statistical map or dot map.
useful for highlighting the spatial distribution.
life expectancy and income are lower in Africa but both are higher in Europe.