Quiz 1 Set 24YB26 Solution
Quiz 1 Set 24YB26 Solution
1. You may use your class notes, books and laptop. Mobile phones, iPads, the internet,
Bluetooth, etc., and any network and file sharing are strictly prohibited.
2. You cannot leave the Examination Hall before submitting both the question and
answer booklet.
3. One bonus mark will be awarded if there is no wrong answer in the entire answer
book, including a blank submission (subject to a maximum total of 10).
4. Please stop writing whenever invigilators ask to do so and hand over the question
paper and answer booklet without making them wait.
5. Please refrain from asking for any help from the invigilator during the examination.
1|Pa g e
1. In a company's employee promotion problem, the probability of an employee being
promoted to a senior position is 0.3. Given that an employee is promoted, the
probability of being assigned to a critical project is 0.5. Further, given that an
employee is promoted and assigned to a critical project, the probability of receiving a
significant bonus is 0.8. What is the probability that an employee is promoted,
assigned to a critical project, and receives a significant bonus? (Marks-1)
To find the probability that an employee is promoted, assigned to a critical project, and
receives a significant bonus, we can use the chain rule for probabilities. Let's define the
events:
• 𝑃: Employee is promoted
• 𝐶: Employee is assigned to a critical project
• 𝐵: Employee receives a significant bonus
We need to find 𝑃(𝑃 ∩ 𝐶 ∩ 𝐵), which represents the probability that an employee is
promoted, assigned to a critical project, and receives a significant bonus. Using the rule of
compound probabilities:
2|Pa g e
To find the probability that an employee attended regular training sessions and has a
strong work ethic given that they received a good performance review, we can use Bayes'
theorem. We need to find 𝑃(𝑇 ∩ 𝐸 ∣ 𝐺), where:
Substituting the values, we have 𝑃(𝐺) = (0.9 × 0.6 × 0.7) + (0.6 × 0.6 × 0.3) +
(0.8 × 0.4 × 0.7) + (0.4 × 0.4 × 0.3) = 0.378 + 0.108 + 0.224 + 0.048 = 0.758
In R:
> round(0.378/0.758,3)
[1] 0.499
3|Pa g e
3.1. The central box of a boxplot represents
A. Quartile Deviation
B. Interquartile Range
C. Median
D. Extreme Values
E. All of the above
3.2. A company has created boxplots for employees' annual average daily time spent in the
office from two different departments. Which of the following cannot be directly
compared?
A. Extreme observations
B. Medians
C. Interquartile Ranges
D. Modes
E. Maximums and Minimums
A. 36°
B. 54°
C. 72°
D. 90°
E. 108°
Indicate the corresponding letter in the answer box. (Marks-1/2)
4.2. A pie chart displays the time allocation of a project manager's work week. The
segments are as follows: Meetings (35%), Project Planning (25%), Documentation
(15%), Team Coordination (20%), and Miscellaneous (5%). If the project manager
works a total of 40 hours a week, how many hours are spent on Documentation?
A. 4 hours
B. 6 hours
C. 8 hours
D. 10 hours
E. 12 hours
Indicate the corresponding letter in the answer box. (Marks-1/2)
4|Pa g e
5. The data as in YB.csv encompasses information about employee ratings at various office
locations, particularly highlighting five offices in Canada [namely, TOR-Toronto, MKM-
Markham, CAL-Calgary, OTT-Ottawa and VAN-Vancouver] and three offices in the
United States [namely, NYC -New York, BOS-Boston, and PH- Philadelphia]. From the
given data, compute or estimate the following using R. (Marks 1x5)
file.choose()
SetYB = read.csv("…\\Quiz1\\YB.csv")
attach(SetYB)
View(SetYB)
5|Pa g e
### For (iv)----> P (Rating> 8 | OfficeCode = CAL) = 0.707
length(Rating) ### 10262
length(Rating[Rating>8]) #### 5503
length(OfficeCode[OfficeCode=="CAL"]) ### 1325
SS = subset(SetYB, Rating>8)
length(SS$OfficeCode[SS$OfficeCode =="CAL"]) ### 937
round(937/1325,3)
### For (v) ----> P (Rating < 8 intersection OfficeCode = NYC) = 0.114
SS1 = subset(SetYB, Rating<8)
length(SS1$OfficeCode[SS1$OfficeCode =="NYC"]) ### 1172
round(1172/10262,3)
6|Pa g e