Quantitative Reasoning
Quantitative Reasoning
Quantitative
Reasoning-I
Muhammad
Usman
M. Usman, Department of 1
Math & Stat
Number system and basic
arithmetic
operations
M. Usman, Department of 2
Math & Stat
Number
Systems
After completing this chapter, you will be able to:
M. Usman, Department of 3
Math & Stat
Decimal
System
Knowledge of different number systems and digital codes is quite useful
when working with almost any type of digital computer. This is true because
a basic requirement of these devices is to represent, store, and operate on
numbers. In general, computer work on binary numbers in one form or
another; these are used to represent various codes or quantities.
The decimal system, which is most common to us, has a base of 10. The
radix or base of a
number system determines the total number of different symbols or digits
used by that system. For instance, in the decimal system, 10 unique
numbers or digits—i.e., the digits 0 through 9—are used: the total number
of symbols is the same as the base, and the symbol with the largest value
is 1 less than the base.
M. Usman, Department of 4
Math & Stat
The value of a decimal number depends on the digits that make up the number
and the place value of each digit. A place (weight) value is assigned to each
position that a digit would hold from right to left. In the decimal system the first
position, starting from the rightmost position, is 0; the second is 1; the third is
2; and so on up to the last position. The weighted value of each position
can be expressed as the base (10 in this case) raised to the power of the
position. For the decimal system then, the position weights are 1, 10, 100,
1000, and so on. Figure 6.1 illustrates how the value of a decimal number can
be calculated by multiplying each digit
nd summing the by the weight of its position a
results.
M. Usman, Department of 5
Math & Stat
Binary
System
The binary system uses the number 2 as the base. The only allowable digits are
0 and 1. With digital circuits it is easy to distinguish between two voltage levels
(i.e., +5 V and 0 V), which can be related to the binary digits 1 and 0 (Figure 6.2).
Therefore, the binary system can be applied quite easily to computer systems.
Since the binary system uses only two digits, each position of a binary
number
tocan
the go through only
immediate left two changes, and then a 1 is carried
position.
M. Usman, Department of 6
Math & Stat
Table 6.1 shows a comparison among four common number systems: decimal
(base 10), octal (base 8), hexadecimal (base 16), and binary (base 2). Note that
all numbering systems start at
zero
. The decimal equivalent of a binary
number can be determined in a
manner similar to that used for a
decimal number. This time the
weighted values of the positions
are 1, 2, 4, 8, 16, 32, 64, and so on.
The weighted value, instead of
being 10 raised to the power of the
position, is 2 raised to the power of
the position.
M. Usman, Department of 7
Math & Stat
Figure 6.3 illustrates how the binary number 10101101 is converted
to its decimal equivalent: 173.
Each digit of a binary number is
known as a bit. In a
processor-memory element consists of
hundreds or thousands of locations. These
locations, or registers, are referred to as
words. Each word is capable of storing
data in the form of binary digits, or bits.
Bits can also be grouped within a
word into
bytes.
A group of 8 bits is a byte, and a group
of 2 or more bytes is a word.Figure 6.4
illustrates a 16- bit word made up of 2
bytes. The least significant bit (LSB) is
the digit that represents the smallest
value, and the most significant bit (MSB)
is theOFF)
0 (or digit that represents the largest
To convert a decimal number to its binary equivalent, we must perform a series
of divisions by
2. Figure 5.5 illustrates the conversion of the decimal number 47 to binary. We
start by dividing
the decimal number by 2.
If there is a remainder, it is
placed in the LSB of the binary
number. If there is no remainder,
a 0 is placed in the LSB. The
result of the division is brought
down and the process is
repeated until the result of
successive divisions has been
M. Usman, Department of Math 9
& Stat
Octa
Numbers
To express the number in the binary system requires many more
digits than in the decimal system. Too many binary digits can
become cumbersome to read or write. To solve this problem, other
related numbering systems are used. The octal numbering system, a
base 8 system, is used because 8 data bits make up a byte of
information that can be addressed. Octal is a convenient means of
handling large binary numbers
https://www.rapidtables.com/convert/number/octal-to-bina
ry.html
M. Usman, Department of Math 16
& Stat
6.5 Hexadecimal
System
The hexadecimal (hex) numbering system is used in programmable controllers
because a word of data consists of 16 data bits, or two 8-bit bytes. The
hexadecimal system is a base 16 system, with A to F used to represent decimal
numbers 10 to 15 (Table 6.5). The hexadecimal numbering system allows the
status of a large number of binary bits to be represented in a small space, such
as on a computer screen.
The first three conditions are easy because they are like adding decimals, but
the last condition is slightly different. In decimal, 1 + 1 = 2. In binary, a 2 is
written 10. Therefore, in binary, 1 + 1 = 0, with a carry of 1 to the next most
significant place value. When adding larger binary numbers, the resulting
1s
theare carried into higher-order
following columns, as shown in
M. Usman, Department of Math 2
& Stat 0
In arithmetic functions, the initial numeric
quantities that are to be
combined by subtraction are the
minuend
and The result of the
subtraction
subtrahend.
process is ference,
represented as:
called the dif
• Millilitre - 𝑚𝑙
will hold
• Centilitre - 𝑐𝑙
• Litre - 𝑙
M. Usman, Department of Math 29
& Stat
1 Write down which metric unit of length you would use
. to measure each of these items:
a) d) Width m
Length of a bedroom m
b) Length
M of a river pen nib
Height of a mountain Km
Km e)
c) Length of a needle Distance from Leeds to
2. Which metric unit would youYork
use km
to weigh each
Mm f)
item listed below?
a) Man k c) Delivery t
g van
b) Lette
r g
3. Which metric unit would you use to measure the
capacity of each container listed below?
a) Large bottle of pop cl c) Bottle of
m
shampoo ml M. Usman,
l
Department of Math
& Stat
30
Metric
conversions
10mm = 1cm
100cm = 1m
1000m = 1km
1000g = 1kg
1000kg = 1
tonne
1000ml = 1
litre
100cl = 1 litre
M. Usman, Department of Math 31
& Stat
Converting between
units
X X X
c 10 mm 100 c 1000
m
km
m ÷ m ÷ m ÷
10 100
1000
X X
k 1000 g l 1000
m
g ÷
1000
÷
1000
l
Proportions
Inference
Population Sample
(have Parameters) (have Statistic)
Descripti Inferenti
ve al
Descriptive statistics are brief
descriptive coefficients that Using sample
information such
as 𝑿ഥ, S, r, p to draw
summarize a given data set, which
can be either a representation of the
entire or a sample of a population.
Descriptive statistics are broken Inference about
down into measures of central
M. Usman, Department of Math
Unknown Population 64
tendency and measures of variability& Stat Parameters.
Variabl Any Characteristics that varies from Object to
Object, Place to Place or Over time is known as
e Variable. e.g., marks, age, height, sex, temperature,
sales, revenue, time etc.
Variabl
e
Ǫualitativ Ǫuantitativ
e e
Characteristic Continuo
which
varies in quality Discret
us
numerically)
(not e
e.g., Eye No. of Height
colour, students No. Weight
Education of chairs No. Marks
level, of deaths Time
Behaviour, No. of births Distanc
Ǫuality, in a hospital e
Exercise of type of
variables
•A school is conducting a survey to understand
students' academic performance, interests,
and demographic information. They collect
data on the following variables:
1.Age of students
2.Favorite subject (Math, Science, English,
History) 3.Number of classes attended per
week 4.Student's grade level (e.g., Grade
1, Grade 2, etc.) 5.Average test score
6.Participation in extracurricular activities
(Yes/No)
Identifying the Types of
Variables M. Usman, Department of Math 66
& Stat
Another
exercise
A software company is conducting a study on the usage patterns and
specifications of employees' computers to optimize performance. They
collect data on the following variables:
1.Computer brand (e.g., Dell, HP, Apple, Lenovo)
2.Processor speed (in GHz)
3.Amount of RAM (in GB)
4.Operating system (e.g., Windows, macOS, Linux)
5.Hours of usage per day
6.Is the computer used for gaming? (Yes/No)
7.Screen size (in inches)
8.Primary use of the computer (e.g., Development, Design, General Office, Data
Analysis)
9.Number of software applications installed
10.Years since purchase
• where
Nominalorder of the
scales arecategories is not important.
mutually exclusive (non-overlapping)
categories
• Only distinguishes between categories
• No inherent order among the categories
• Suitable for labeling and counting frequencies
Example:
Students’ Grades
Class Positions
Cricket teams standings in ICC ranking
M. Usman, Department of Math 71
& Stat
Ordinal …
continue
• The ordinal scale categorizes data with a meaningful order or
rank among categories but without precise intervals between
them.
• Data can be ordered or ranked.
• Differences between ranks are not consistent or measurable.
• Example: Education Level: Categories include High School,
Bachelor’s, Master’s, PhD. (There is an order, but the
difference in years of study or expertise between each level
is not uniform)
• Example: User Access Levels: Categories like Guest, User,
Moderator, Administrator. (These represent a hierarchy of
permissions, though not with equal intervals between
levels). M. Usman, Department of Math
& Stat
72
Interv
al
• Interval scales are numeric scales in which we know not only
the order, but also the exact differences between the values.
i.e., Constant interval size
• No “true zero” point i.e., Zero does not mean absence
Example:
Height, Weight, Speed, Length, Age
Storage Capacity: Measured in bytes, a storage capacity of 0
GB means no storage. A 500 GB hard drive has twice the
capacity of a 250 GB hard drive.
Memory Usage: Memory measured in MB or GB where 0 means
no memory usage. 8 GB M.ofUsman,
RAM is twice as much as 4 GB 74
Department of Math
& Stat
Just look at some of the
Graphs …
Cluster
bar chart
Frequency
Frequency
Sec A
5 3
4 3 2 Sec B
3
2 1
1
0 0
Male Female Male Female
Sex M. Usman, Department of Math Sex 8
& Stat 3
Simple Bar
Chart
• A bar chart is a type of chart which shows the values
of different categories of data as rectangular bars
with different lengths.
Example:
cities Draw
of the a Simple Bar Chart to represent the
province
Bar diagram showing
Population of 5
Punjab. Population of 5
Cities Population
12,00 cities of Punjab
(000) 0 10,35
5
Lahore 10,355 10,00
Population in
0
Rawalpind 4,765 4,76
8,000
i 5 3,67
‘000’
3,10
6,000 5
Faisalaba 3,675 4,000
1,55 0
0
d
2,000
Lahor Rawalpindi Sargodh Multa
Sargodha 1,550 M. Usman, Department e
0 of Math Faisalabad a n
& Stat 84
Multiple Bar
Chart
Populati Multiple Bar Chart showing
Cities on (000) Male Femal
e Population of Males
600
538
and Females
Lahore 10,355 5385 4,970 0
5 4,97
500 0 Male Female
Rawalpindi 4,765 2478 2,287 0
400
s s
POPULATI
Faisalabad 3,675 1911 1,764 0
300
Sargodha 1,550 806 744 0 24728,28
ON
200 7 19111,76
0 4
100 80674
0
0 4
Lahor Rawalpindi Sargodh
e
M. Usman, Department of Math
Faisalabad a 8
& Stat 5
Component Bar
Chart
Component Bar Chart showing
Cities Pop Male Female population of both Males and
(000) Females and Total
12000
Lahore 10,355 5385 4,970 1000 Males
0
Female
Rawalpindi 4,765 2478 2,287 800 4,97
s
Populati
0
0
600
Faisalabad 3,675 1911 1,764 0
on
400
Sargodha 1,550 806 744 2,28
0
538 7 1,76
200 4
0
5 247 744
191
0 8 806
1
Lahor Rawalpindi Sargodh
e Faisalabad a
M. Usman, Department of Math 8
& Stat Cities 6
Discrete data – Frequency
Distribution
Example:
• Following data represents the number of infected
plants from a sample of twenty experimental plots.
Your task is to present it in tabular form.
1 2 4 3 0 1 2 3 1
1 0
2 1 0 2 3 0 0 1 3
4 4
4
cy
2
1
1
0 0 1 2 3 4
No. of infected
M. Usman, Department of Math 89
& Stat items
Pie
Chart
• A pie chart is a type of graph in which a circle is
divided into sectors that each represent a
proportion of the whole.
Example: The blood group of 70 students were
tested and the following results were obtained.
Blood No. of
Groups Studen Blood
ts (f)
Groups of
A 8 Students
17% 11%
A
B 30 B
29% 43%
O 20 O
A
AB 12 B
Turnover in
2003 29,000
50,00
2004 44,000 0
Rs.
2005 49,000 40,00
0
2006 60,000 30,00
0
2007 64,000 2002 200 200 200 200
20,00 4 Year 5 6 9 7
0 2003 3
Obtaining
Data
Published source
book, journal, newspaper, Published reports
Designed experiment
researcher exerts strict control over units
Survey
a group of people are surveyed and their responses are recorded
Administrative Records
Qualitative
Univariate Bivariate
Frequency Frequency
Table Table
Percentages
Component Multiple
Pie Chart Bar Chart Bar Chart
Bar Chart
87 91 89 88 89 91 87 92 90 98
95
97 96 100 101 96 98 99 98 100 102
99
101 105 103 107 105 106 107 112
𝑛=5.47
K=1+3.3 log(n)=5.87 or
6
Classes
• Determine the range of variation of the data i.e,
8
Frequency
6 6
6
4
4 3
2 1
0
85.5–90.5 90.5–95.5 95.5–100.5 100.5–105.5 105.5–110.5 110.5–
Class Boundries 115.5
M. Usman, Department of Math 10
& Stat 4
Frequency
Polygon
• Frequency polygons are a graphical device for
understanding the shapes of distributions. They serve
the same purpose as histograms, but are especially
• helpful for comparing
Mid Points vs sets of data.
Frequency Polygon
Frequency 12
10
Frequency
6
0
88 93 98 108 113
M. Usman, Department of Math 10
& Stat 103 5
Cumulative Frequency Polygon
/ Ogive
• A cumulative frequency polygon is a plot of the cumulative
frequency against the upper class boundary with the
points joined by a line segment.
• Upper Class Boundaries vs Cumulative Frequency
Cumulative Frequency Polygon / Ogive
35
30
Cumulative Frequency
25
20
15
10
5
0
90.5 95.5 100.5 105.5 110.5 115.5
M. Usman, Department of Math Upper Class Boundaries 106
& Stat
Stem & Leaf
Display
• A relatively small data set can be represented by stem and
leaf display.
• In addition to information on the number of observations
falling in the various classes, it displays details of what
those observations actually are.
• Each number in the data set is divided into two parts, a Stem
and a Leaf. A stem is the leading digit(s) of each number and
is used in sorting, while a leaf is the rest of the number or the
trailing digit(s) and shown in display.
= 5 Stem Leaf
8* -
8. 79897
9* 1120
9. 857668989
10* 010213
10. 57567
11* 2
11. -
Data 1) 32, 45, 38, 41, 49, 36, 52, 56, 51, 62, 63, 59, 68
Data 2) 23, 58, 26, 57, 55, 65, 29, 36, 59, 69, 60
=
68 = Maxi.value = 69
Stem unit = 10 Width of class = 10
Data 1 Data 2
(#13) (# 11)
Leaf Leaf
2 369
682 3 6
915 4
9162 5 8759
832 6 590
M. Usman, Department of Math 11
& Stat 3
Exercis
es