Portfolio Spring 25
Portfolio Spring 25
PORTFOLIO
1. This is an individual work and you are solely responsible to submit your own work. Any type of
collaboration with others is not allowed and will be subject to academic misconduct policies.
2. Do not change the variable names (such as task_1a, task_1b, etc.) in the R file. This is very important.
Your solutions will be checked by those variable names.
3. Most of the exercises require the student to insert his/her last 5 digits of student ID in place of 𝒂𝒃𝒄𝒅𝒆
values. Check several times to ensure you are using the correct values.
For example, a student with an ID of 00014040 has the following values:
𝒂 = 1, 𝒃 = 4, 𝒄 = 0, 𝒅 = 4, 𝒆 = 0.
A student with an ID of 00009540 has the following values:
𝒂 = 0, 𝒃 = 9, 𝒄 = 5, 𝒅 = 4, 𝒆 = 0.
4. You must replace the 𝒂𝒃𝒄𝒅𝒆 values with the correct values from your own ID in each exercise. Do not
provide the solutions with a reference to a, b, c, d, e values (i.e. your code should not have these letters,
1
replace them with your own ID values). For example, if you declare these values in the beginning of your
R file and continue to refer to these letters in the exercises, then this work is not acceptable.
5. Do not round your answers unless it is stated in the question. Your answers should be provided in R
codes. Watch the recorded Portfolio instructions before you start.
6. Submission instructions:
• R file (zipped): You must use the R Template file to write your codes, rename it with your student ID
and upload it in compressed (zipped) format. Ensure that your file contains the correct file.
• Report: This file must contain your own explanations for each task. Plagiarism and use of AI to
generate explanations are not allowed and will be subject to Academic Misconduct regulations.
7. Late submissions are not acceptable. Please upload your work at least 30 minutes before the deadline. The
Intranet might become unresponsive when many students start uploading at the same time.
TASKS
Task 1. [10 marks] Oriyat FM, a radio station, finds that the distribution of the lengths of time listeners are
tuned to the station follows the normal distribution. The mean of the distribution is (30+𝒂) minutes and the
standard deviation is (8+𝒃) minutes.
a. What is the probability that a particular listener will tune in between (30+𝒄) and (45+𝒅)
minutes? [5 marks]
b. What percent of the listeners tune in for more than (28+𝒂) minutes? Do not include the
percentage sign (%) in your solution. [5 marks]
Task 2. [10 marks] Light bulbs are tested for their life-span. It is found that (𝒄+ 𝒅 +5)% of the light bulbs are
rejected. A random sample of (20+𝒂) bulbs is taken from the stock and tested. The random variable X is the
number of bulbs that are rejected.
a. What is the probability that the value of X is at least (2+𝒂)? [5 marks]
b. What is the (80+𝒆)th percentile value for X? [5 marks]
Task 3. [10 marks] Suppose the closing stock price (X, in USD) of Bank of America Corp follows the following
continuous distribution in one year:
'
for 20 + 𝐜 < X < 55 + 𝐜
()
p(X) =
0 for other values of X.
2
a. What is the probability that the stock price will close above $(30 + 𝒃) in a randomly chosen
trading day? [5 marks]
b. Suppose there are 252 trading days in 2025. How many days should we expect the stock price
to close below $(40 + 𝒅)? Round your answer to the nearest integer value. [5 marks]
Task 4. [10 marks] In a cafe, the customers arrive at a mean rate of (𝒄+4) per every 12 minutes. The variance
of customer arrivals is equal to (5*𝒄+20) per hour.
a. Find the probability of arrival of at most (𝒂+1) customers in the next minute. [5 marks]
b. Let x denote the number of customer arrivals per 12 minutes.
Find P(𝒄+2 £ x < 𝒄+6 ). [5 marks]
3
Year Average waiting time Sample standard deviation Sample size
2024 (7 + 𝑏) (3 + 𝑐) (35 + 𝑑)
2022 (7.5 + 𝑏) (4 + 𝑐) (40 + 𝑒)
Compute the p-value of the hypothesis test whether the average waiting times have decreased in 2024
compared to 2022.
4
5