= Quiz 1 =

Thursday, 27 June 2019

1:35 PM

 

 

Untitled picture.png In a data set the following variables are recorded for a small group of elderly people : age (in years), gender (male/female), marital status (married, never married, divorced, 
widowed), height (cm), weight (kg). 
Which of the variables age, gender, height, marital status and weight are numerical ? 
Your Answer: height, age and weight are numerical, gender and marital status are not 
e 
Correct 






Untitled picture.png Use Matlab to construct a histogram of the following data 
How would the distribution be best described ? 
e 
Correct 
1, 2, 23, 45, 52, 66, 73, 76, 77, 78, 81, 83, 86, 88, 89, 89, 91, 92, 92, 93, 94, 96, 96, 96, 97, 98, 99, 99 
Your Answer: 
unimodal and left skewed 

>> histogram([1, 2, 23, 45, 52, 66, 73, 76, 77, 78, 81, 83, 86, 88, 89, 89, 91, 92, 92, 93, 94, 96, 96, 96, 97, 98, 99, 99, 99], 10)

Untitled picture.png 14 
12 
ιο 
ιο 
20 
30 
40 
50 
60 
70 
80 
90 
100 




Untitled picture.png Load the following sample into Matlab: 
[31, 90, 8, 83, 83, 27, 86, 51, 17, 55, 92, 2, 91, 39, 97, 79, 47, 4, 92, 80, 36, 66, 22] 
Hence compute, to two decimal places: 
(a) The sample mean 
e 
Your response 
5557 
Grade: 1/1.0 
(b) The sample standard deviation 
Correct response 
55.565217±0.02 
Correct response 
32.386622±0.02 
e 
Your response 
32.39 
Grade: 1/1.0 
Untitled picture.png The following data is recorded for students starting University : age (in years), gender (male/female), faculty in which they are enrolled (Engineering, Science, Arts, Law or other), 
University (UNSW, University of Sydney, UTS, Macquarie, ACU, other). 
Which of the variables age, gender, faculty and University are categorical variables? 
Your Answer: University, faculty and gender are categorical, age is not 
Correct 
Untitled picture.png The following data is recorded for students starting University : age (in years), gender (male/female), faculty in which they are enrolled (Engineering, Science, Arts, Law or other), 
University (UNSW, University of Sydney, UTS, Macquarie, ACU, other). 
Which of the variables age, gender, faculty and University are categorical variables? 
Your Answer: University, faculty and gender are categorical, age is not 
Correct

Untitled picture.png Load the following sample into Matlab: 
[31, 90, 8, 83, 83, 27, 86, 51, 17, 55, 92, 2, 91, 39, 97, 79, 47, 4, 92, 80, 36, 66, 22] 
Hence compute, to two decimal places: 
(a) The sample mean 
e 
Your response 
5557 
Grade: 1/1.0 
(b) The sample standard deviation 
Correct response 
55.565217±0.02 
Correct response 
32.386622±0.02 
e 
Your response 
32.39 
Grade: 1/1.0 



>> quantile([...], [0:0.25:1])

Untitled picture.png Use Matlab to determine the five number summary of the following sample data 
[22, 75, 41, 25, 74, 90, 35, 41, 73, 17, 77, 79, 83, 53, 26, 32, 98, 53, 96, 80, 25, 17, 32, 94, 32, 62, 59, 95, 50, 79, 83, 19, 86, 90, 99, 90, 21, 64, 74, 29] 
e 
e 
e 
e 
e 
Your response 
17 
Grade: 1/1.0 
Your response 
32 
Grade: 1/1.0 
Your response 
63 
Grade: 1/1.0 
Your response 
83 
Grade: 1/1.0 
Your response 
99 
Grade: 1/1.0 
Correct response 
17±0.002 
Correct response 
32±0.002 
Correct response 
63±0.002 
Correct response 
83±0.002 
Correct response 
99±0.002 
Untitled picture.png Load the following sample into Matlab: 
[12, 86, 51, 68, 64, 91, 60, 67, 44 8, 64, 53, 25, 6, 73, 74, 8, 42, 29, 2, 68, 47] 
Hence compute, to two decimal places: 
(a) The sample mean 
e 
Your response 
4570 
Grade: 1/1.0 
(b) The sample standard deviation 
Correct response 
45.695652±0.02 
Correct response 
27.930815±0.02 
e 
Your response 
27.93 
Grade: 1/1.0 
Untitled picture.png Use Matlab to determine the five number summary of the following sample data 
[54, 70, 95, 53, 16, 50, 61 v 85, 21, 98, 88, 39, 87, 89, 8, 82, 48, 34, 84, 94 54, 92, 75, 95, 42, 88, 94 29, 27, 89, 97, 53, 96, 4 12, 22, 11, 2, 9, 11] 
e 
e 
e 
e 
e 
Your response 
2 
Grade: 1/1.0 
Your response 
24.5 
Grade: 1/1.0 
Your response 
54 
Grade: 1/1.0 
Your response 
88.5 
Grade: 1/1.0 
Your response 
98 
Grade: 1/1.0 
Correct response 
2±0.002 
Correct response 
u5±o.002 
Correct response 
54±0.002 
Correct response 
88.5±0.002 
Correct response 
98±0.002 
Untitled picture.png Load the following sample into Matlab: 
[12, 86, 51, 68, 64, 91, 60, 67, 44 8, 64, 53, 25, 6, 73, 74, 8, 42, 29, 2, 68, 47] 
Hence compute, to two decimal places: 
(a) The sample mean 
e 
Your response 
4570 
Grade: 1/1.0 
(b) The sample standard deviation 
Correct response 
45.695652±0.02 
Correct response 
27.930815±0.02 
e 
Your response 
27.93 
Grade: 1/1.0 
Untitled picture.png Use Matlab to determine the five number summary of the following sample data 
[54, 70, 95, 53, 16, 50, 61 v 85, 21, 98, 88, 39, 87, 89, 8, 82, 48, 34, 84, 94 54, 92, 75, 95, 42, 88, 94 29, 27, 89, 97, 53, 96, 4 12, 22, 11, 2, 9, 11] 
e 
e 
e 
e 
e 
Your response 
2 
Grade: 1/1.0 
Your response 
24.5 
Grade: 1/1.0 
Your response 
54 
Grade: 1/1.0 
Your response 
88.5 
Grade: 1/1.0 
Your response 
98 
Grade: 1/1.0 
Correct response 
2±0.002 
Correct response 
u5±o.002 
Correct response 
54±0.002 
Correct response 
88.5±0.002 
Correct response 
98±0.002
Untitled picture.png Use Matlab to determine the five number summary of the following sample data 
[22, 75, 41, 25, 74, 90, 35, 41, 73, 17, 77, 79, 83, 53, 26, 32, 98, 53, 96, 80, 25, 17, 32, 94, 32, 62, 59, 95, 50, 79, 83, 19, 86, 90, 99, 90, 21, 64, 74, 29] 
e 
e 
e 
e 
e 
Your response 
17 
Grade: 1/1.0 
Your response 
32 
Grade: 1/1.0 
Your response 
63 
Grade: 1/1.0 
Your response 
83 
Grade: 1/1.0 
Your response 
99 
Grade: 1/1.0 
Correct response 
17±0.002 
Correct response 
32±0.002 
Correct response 
63±0.002 
Correct response 
83±0.002 
Correct response 
99±0.002 




Untitled picture.png Question 5: Score 1/1 
Let A and B be two independent events in a sample space with P(A) and P(B) = 06. Determine, if possible, 
Your Answer: P(A and B) = 0.1 
Correct Answer: P(A and B) = 0.1 
e 
and B). 
Correct 





Untitled picture.png Question 6: Score 1/1 
Let A and B be events in a sample space with complements AC and BC Assume that P(A) 
Your Answer: 0.3 
= 0.3, P(B) = and B) 
e 
= Determine (if possible) the probability P(AC and BC). 
Correct 






Untitled picture.png Question 7: Score 0/1 
Let C and D be two events in a sample space, with P(C) = 0.24, P(D) = 0.12 and P(C and D) 
Your Answer: P(DIC) cannot be determined from the information in the question 
Correct Answer: P(DIC) = 1/8 
= 003. Determine (if possible) the conditional probability P(DIC). 
Incorrect 







Untitled picture.png Use Matlab to determine the five number summary of the following sample data 
[54, 70, 95, 53, 16, 50, 61 v 85, 21, 98, 88, 39, 87, 89, 8, 82, 48, 34, 84, 94 54, 92, 75, 95, 42, 88, 94 29, 27, 89, 97, 53, 96, 4 12, 22, 11, 2, 9, 11] 
e 
e 
e 
e 
e 
Your response 
2 
Grade: 1/1.0 
Your response 
24.5 
Grade: 1/1.0 
Your response 
54 
Grade: 1/1.0 
Your response 
88.5 
Grade: 1/1.0 
Your response 
98 
Grade: 1/1.0 
Correct response 
2±0.002 
Correct response 
u5±o.002 
Correct response 
54±0.002 
Correct response 
88.5±0.002 
Correct response 
98±0.002 
Untitled picture.png Question 5: Score 1/1 
Let A and B be two mutually exclusive events in a sample space with P(A) 
Your Answer: P(A or B) = 0.5 
= 0.2 and P(B) 
= 0.3. Determine, if possible, P(A or B). 
Correct 
Untitled picture.png Let A, B, C be three events in a sample space 
A, B, C are independent? 
Your Answer: A and C only 
with P(A) 
= 08, and P(A and B) 
= 0.025, and C) = 0.03 and and C) -0.023. 
Which pair of the events 
Correct 
Untitled picture.png Question 7: Score 1/1 
Let C and D be two events in a sample space, with P(C) 
Your Answer: P(DIC) = 1/4 
= 0.12, P(D) = 0_36 and and D) 
e 
= 003. Determine (if possible) the conditional probability P(DIC). 
Correct 
Ink Drawings
Ink Drawings













Ink Drawings
Ink Drawings
Ink Drawings
Ink Drawings
Ink Drawings




Ink Drawings
Ink Drawings
Ink Drawings





Untitled picture.png Use Matlab to determine the five number summary of the following sample data 
[54, 70, 95, 53, 16, 50, 61 v 85, 21, 98, 88, 39, 87, 89, 8, 82, 48, 34, 84, 94 54, 92, 75, 95, 42, 88, 94 29, 27, 89, 97, 53, 96, 4 12, 22, 11, 2, 9, 11] 
e 
e 
e 
e 
e 
Your response 
2 
Grade: 1/1.0 
Your response 
24.5 
Grade: 1/1.0 
Your response 
54 
Grade: 1/1.0 
Your response 
88.5 
Grade: 1/1.0 
Your response 
98 
Grade: 1/1.0 
Correct response 
2±0.002 
Correct response 
u5±o.002 
Correct response 
54±0.002 
Correct response 
88.5±0.002 
Correct response 
98±0.002 
Untitled picture.png Question 5: Score 1/1 
Let A and B be two mutually exclusive events in a sample space with P(A) 
Your Answer: P(A or B) = 0.5 
= 0.2 and P(B) 
= 0.3. Determine, if possible, P(A or B). 
Correct 
Untitled picture.png Let A, B, C be three events in a sample space 
A, B, C are independent? 
Your Answer: A and C only 
with P(A) 
= 08, and P(A and B) 
= 0.025, and C) = 0.03 and and C) -0.023. 
Which pair of the events 
Correct 
Untitled picture.png Question 7: Score 1/1 
Let C and D be two events in a sample space, with P(C) 
Your Answer: P(DIC) = 1/4 
= 0.12, P(D) = 0_36 and and D) 
e 
= 003. Determine (if possible) the conditional probability P(DIC). 
Correct 
Ink Drawings
Ink Drawings
Ink Drawings
Ink Drawings








Untitled picture.png Question 8 
ork in Progress 
: Score 2/2 
e know the following about a colorimetric method used to test lake water for nitrates. If water specimens contain nitrates, a solution dropped into water will cause the specimen 
turn red 90% of the time When used on water specimen without nitrates, the solution causes the water to turn red 15% of the time (because chemicals other than nitrates might 
so be present and react to the agent). Past experience in a lab indicates that nitrates are contained in 15% of the water specimens that are sent to the lab for testing. 
a) If a water specimen is randomly selected from among those sent to the lab, what is the probability that it will turn red when tested? Give your answer to three decimal 
places 
Your response 
0.263 
Grade: 1/1.0 
Correct response 
0.262±0.002 
e 
e 
b) If a water specimen is randomly chosen and turns red when tested, what is the probability that it actually contains the nitrates? Give your answer to three decimal 
places 
Your response 
0.514 
Grade: 1/1.0 
Correct response 
0.514286±0.002 
Untitled picture.png Question 8 
ork in Progress 
: Score 2/2 
e know the following about a colorimetric method used to test lake water for nitrates. If water specimens contain nitrates, a solution dropped into water will cause the specimen 
turn red 95% of the time When used on water specimen without nitrates, the solution causes the water to turn red 10% of the time (because chemicals other than nitrates might 
so be present and react to the agent). Past experience in a lab indicates that nitrates are contained in 25% of the water specimens that are sent to the lab for testing. 
a) If a water specimen is randomly selected from among those sent to the lab, what is the probability that it will turn red when tested? Give your answer to three decimal 
places 
Your response 
0.313 
Grade: 1/1.0 
Correct response 
0.312±0.002 
e 
e 
b) If a water specimen is randomly chosen and turns red when tested, what is the probability that it actually contains the nitrates? Give your answer to three decimal 
places 
Your response 
0_76 
Grade: 1/1.0 
Correct response 
0.76±0.002 
Untitled picture.png Question 8 
ork in Progress 
: Score 2/2 
e know the following about a colorimetric method used to test lake water for nitrates. If water specimens contain nitrates, a solution dropped into water will cause the specimen 
turn red 95% of the time When used on water specimen without nitrates, the solution causes the water to turn red 10% of the time (because chemicals other than nitrates might 
so be present and react to the agent). Past experience in a lab indicates that nitrates are contained in 25% of the water specimens that are sent to the lab for testing. 
a) If a water specimen is randomly selected from among those sent to the lab, what is the probability that it will turn red when tested? Give your answer to three decimal 
places 
Your response 
0.313 
Grade: 1/1.0 
Correct response 
0.312±0.002 
e 
e 
b) If a water specimen is randomly chosen and turns red when tested, what is the probability that it actually contains the nitrates? Give your answer to three decimal 
places 
Your response 
0_76 
Grade: 1/1.0 
Correct response 
0.76±0.002

Use Matlab to construct a histogram for the following data. How would the distribution be best described Q 
10, 10, 12, 13, 13, 14, 17, 19, 19, 22, 24, 55, 62771, 80, 114, 200 
Your Answer: 
unimodal and right skewed 
Correct Answer: unimodal, right skewed with some apparent outliers 
Feedback: 
Incorrect

 

 

0 
20 
40 
60 
80 
100 
120 
140 
160 
180 
200

 

 

Untitled picture.png Question 5: Score 1/1 
Let E and F be two events in a sample space with P(E) 
Your Answer: P(E or F) = 0.8 
Correct Answer: P(E or F) = 0.8 
Feedback: 
= 0.5, P(F) = 0.7, and and F) 
e 
= 0_4_ Determine, if possible, P(E or F). 
Correct 






 

 

Untitled picture.png Question 7: Score 1/1 
Let C and D be two events in a sample space, with P(C) 
Your Answer: P(C D) = 1/12 
Correct Answer: P(C D) = 1/12 
Feedback: 
= 0.12, P(D) = 0_36 and and D) 
e 
= 003. Determine (if possible) the conditional probability P(C D). 
Correct 
Ink Drawings
Ink Drawings
Ink Drawings
Ink Drawings
Ink Drawings
Ink Drawings
Ink Drawings
Ink Drawings
Ink Drawings

 

 

Created with Microsoft OneNote 2016.