Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
27 views

Assignment 1

The document consists of multiple assignments involving statistical analysis, including the creation of frequency tables, histograms, bar diagrams, pie charts, and calculations of mean, median, mode, variance, quartiles, and percentiles. It also includes data sets for various scenarios such as population in buildings, yearly profits of companies, and student heights. Each question provides a detailed solution with necessary calculations and visual representations.

Uploaded by

hunain16103
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views

Assignment 1

The document consists of multiple assignments involving statistical analysis, including the creation of frequency tables, histograms, bar diagrams, pie charts, and calculations of mean, median, mode, variance, quartiles, and percentiles. It also includes data sets for various scenarios such as population in buildings, yearly profits of companies, and student heights. Each question provides a detailed solution with necessary calculations and visual representations.

Uploaded by

hunain16103
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

ASSIGNMENT – 1 (CLO 2 & BT – C6)

Rubab Rafique

02-152241-014
Q 1. The following data give the number of people living in each of 50 buildings from a certain
locality
21 50 35 39 48 46 36 54 42 30 29 42 32 40 34 31 45 35 37 52 44 39 43
37 33 51 53 33 46 43 47 41 26 38 52 48 25 34 37 33 36 27 54 36 41 33
23 29 28 44
Create frequency table taking suitable class intervals also mention midpoints and class
boundaries of the intervals.

Solution:
To create a frequency table.
1. Find the range:
• Smallest value = 21
• Largest value = 54
• Range = 54 - 21 = 33

Class width = 5

Class Interval Frequency Midpoint Class boundaries


21-25 3 23 20.5-25.5
26-30 6 28 25.5-30.5
31-35 10 33 30.5 - 35.5
36-40 10 38 35.5 - 40.5
41-45 9 43 40.5 - 45.5
46-50 6 48 45.5 - 50.5
51-55 6 53 50.5 - 55.5
Q 2. Create a frequency distribution and histogram by taking 10 as a width of class interval and
45 as a lowest limit for the data mentioned below:
109 74 49 103 95 90 118 52 104 88 101 96 72 56 64 110 97 77 59 62 96 82 65 85
105 116 89 91 83 99 52 76 84

Solution:

Class width = 10
Lowest class limit = 45
Highest value in the dataset = 118

Frequency Table:

Class Interval Frequency


45 – 54 3
55 – 64 4
65 – 74 3
75 – 84 6
85 – 94 6
95 – 104 7
105 – 114 3
115 - 124 1

Histogram:

0
45-54 55-64 65-74 75-84 85-94 95-104 105-114 115-124

class Interval
Q 3. The data given below gives the yearly profits of the Companies A & B
Year Profit-A Profit-B
1980 10,000 15,000
1981 8,000 13,000
1982 13,000 14,000
Create multiple bar diagram for the above data.

Bar Diagram:
Year Profit-A Profit-B
1980 10,000 15,000
1981 8,000 13,000
1982 13,000 14,000

Comparison of Profits

1982

1981

1980

0 2,000 4,000 6,000 8,000 10,000 12,000 14,000 16,000

Profit-B Profit-A
Q 4. Create a Pie chart for the following data:
Items Expenditure (Rs)
Food 9500
Clothing 3200
House Rent 5000
Medical Care 2300
Utilities 7000
Others 4000

Solution:
Frequency

3
2
11
2

19-10 20-29 30-29 40-49 50-59 60-69


Q 5. (1.13) A manufacturer of electronic components is interested in determining the lifetime
of a certain type of battery. A sample, in hours of life, is as follows:
123,116,122,110,175, 120,125, 111, 118, 117.
(a) Extend mean and median.
(b) Explain feature in this data set, responsible for the substantial difference between the two?

Solution:
Given Data:
123, 116, 122, 110, 175, 120, 125, 111, 118, 117

a) Mean and Median:

Mean (Average):

Mean = ∑𝑋/N
where X represents each data point, and N is the number of data points.
Median:
• Arrange the data in ascending order:
110, 111, 116, 117, 118, 120, 122, 123, 125, 175
• Since there are 10 values (even count), the median is the average of the 5th and 6th
values: Median=118+120/2 = 119

Mean = (123+116+122+110+175+120+125+111+118+117) /10

= 1237/10 = 123.7

• Mean = 123.7
• Median = 119
b) Answer:

The substantial difference between the mean and median in this dataset is primarily due to the
presence of an outlier.

• The mean is affected by extreme values (like 175), which pulls it higher.
• The median is resistant to extreme values and remains closer to the center of
the dataset.
Q 6. The following frequency table gives the heights (in inches) of 100 students in a college:

Class 60-62 62-64 64-66 66-68 68-70 70-72 Total


Frequency 5 18 42 20 8 7 100

Calculate (a) Median (b) Mode (c) Variance (d) Q3 (e) D9 (f) P69

Solution:
a) Median:

The Median class is found using:

N/2 = 100/2 = 50

The 50th Value falls in the 64-66 class because its cumulative frequency is 65.
Formula for Median:
Median = L+(N/2 – CF/ f) x h
Where,
L = lower boundary of median class = 64
N = total frequency = 100
CF = cumulative frequency before median class = 23
f = frequency of median class = 42
h = class width = 2

b) Mode:

The modal class is the class with the highest frequency = 64 - 66 (since 42 is the highest
frequency).

Mode Formula:

Mode = L + ( f1 – f0 / 2f1-f0-f2) x h
where:
• L = 64 (lower boundary of modal class)
• f₁ = 42 (modal class frequency)
• f₀ = 18 (preceding class frequency)
• f₂ = 20 (following class frequency)
• h=2
c)Variance:

Variance=∑f(x - xˉ)2/N

where:
• x = midpoint of each class
• xˉ = mean
• N = total number of students

d)Q3(third Quartile)

Q3 = L + \left( \frac{3N}{4} - CF}{f} \right) \times h

Where 3N/4 = 3(100)/4 = 75, so Q3 lies in the 66-68 classes

e) D9(9th Decile)

D9 = L + \left( \frac{9N}{10} - CF}{f} \right) \times h

Where 9N/10 = 9(100)/10 = 90, so D9 lies in the 68-70 classes

f) P69

P69 = L + \left( \frac{69N}{100} - CF}{f} \right) \times h

Where 69N/100 =69, so P69 lies in the 66-68 classes.


Q 7. (1.18) The following scores represent the final examination grade for an elementary
statistics course:
23 60 79 32 57 74 52 70 82
36 80 77 81 95 41 65 92 85
55 76 52 10 64 75 78 25 80
98 81 67 41 71 83 54 64 72
88 62 74 43 60 78 89 76 84
48 84 90 15 79 34 67 17 82
69 74 63 80 85 61
(a) Illustrate a stem-and-leaf plot for the examination grades in which the stems are 1, 2, 3,... .
9.
(b) Explain and extend a relative frequency histogram and draw an estimate of the graph, the
mean, median, and standard deviation of the frequency data.

Solution:

a) Stem-and-Leaf plot:

A stem-and-leaf plot organizes data by separating the first digit (stem) from the last
digit (leaf).
For the given scores, we arrange them in ascending order and group them based on
their tens place.

1|057
2|356
3|246
4|11338
5|22457
6|00123445779
7|012444566788899
8|00011223445589
9|0258
b) Histogram:

Relative Frequency
14

12

10

0
19-10 20-29 30-29 40-49 50-59 60-69 70-79 80-89 90-99

1. Mean (Average Score):


Mean=∑X/N = sum of all scores/50
2. Median: (Middle Value)
• Arrange data in ascending order.
• Find the 25th & 26th values and take the average.
3. Standard Deviation:

∑(𝑥 − 𝑥)2
∘= √
𝑁

You might also like