Original practice · fully worked
Original variant: format of a uniformly sampled archive byte
In a large digital archive, 60% of files use format S and the remaining 40% use format L. The average file sizes are 2 megabytes for format S and 5 megabytes for format L. One stored byte is selected uniformly from all bytes in the archive. Calculate the probability that its containing file uses format L.
- A
0.3750 - B
0.4000 - C
0.5000 - D
0.6250 - E
0.7143
Answer and calculation
Uniform byte sampling weights each file format by both its file share and its average size. The L and S byte-volume weights are 0.40(5)=2.0 and 0.60(2)=1.2, so the L share is 2.0/3.2=0.6250 and choice D.
Setup
Setup
Form a byte-volume weight for each format by multiplying file prevalence by average file size.
wS=0.60(2)=1.20 wL=0.40(5)=2.00 Model
Model
A uniformly sampled byte belongs to a format in proportion to that format's total byte volume.
Pr(L∣sampled byte)=wS+wLwL Compute
Compute
Normalize the L byte-volume weight across both formats.
Pr(L∣sampled byte)=1.20+2.002.00 =85=0.6250 Answer
Answer
The sampled byte comes from format L with probability 0.6250.
0.6250(D)