GRMD2102 Homework 1 - With - Answer
GRMD2102 Homework 1 - With - Answer
Term 1, 2022-23
Homework 1: Descriptive Statistics and Probability
1
3. You collected data of number of burglaries from 60 cities in a country in the last month as
follows:
300 251 182 219 195 224 171 204 205 186
221 193 171 206 225 170 242 200 231 196
188 219 180 224 208 205 184 236 182 207
209 193 225 209 194 219 176 236 234 160
186 203 201 190 201 173 213 258 200 221
180 209 279 172 161 211 241 211 181 180
a. Calculate the following descriptive statistics for these data: mean, variance, standard
deviation, mode, median, first and third quartiles, the interquartile range and range
Mean: 205.850
Variance: 756.299
Standard Deviation: 27.501
Mode: 180
Median: 204.5
First and third quartiles: 185 and 221 (may differ because of different algorithms)
Interquartile range: 36
Range: 140
b. Construct a frequency table of these data and draw a frequency histogram. Justify your
choice of categories.
4. A class is consisted by 50 female and 35 male students. One student is to be randomly selected
from the class.
5. Given the following table about 150 students on the registration of the courses A and B.
B ̅
𝑩
A 75 30
̅
𝑨 25 20
6. The frequency of the heart disease among the elderly population in a city is summarized in the
following contingency table.
Table: The frequency of the heart disease among the elderly population
a. What is the probability that a male elderly person with no heart disease will be selected?
0.3
b. What is the probability that a female elderly person will be randomly selected? 0.6
c. What is the probability that, among the elderly with heart disease, a randomly selected
elderly person will be female? 0.15/0.25=0.6
d. What is the probability that a male elderly person has no heart disease?
A=male elderly, B=no heart disease. P(B|A)=P(B∩A)/P(A)=0.3/0.4=0.75
e. Is the heart disease independent with the gender of the elderly population in the city?
P(B|A)=0.75= P(B), they are independent
*************************END*************************