題目
Problem
Question 5: [20pts] Students studying for an exam get x hours of sleep in the two days leading up to the exam, where x is the range 0≤x≤a. The number of students who got between x1 and x2 hours of sleep is given by
∫x1x2cxdx;0≤x1≤x2≤a
(1) [10pts] What fraction of the students got less than a/2 hours of sleep?
(2) [10pts] Their scores are proportional to the amount of sleep they got: S(x)=100(x/a). Find the (correctly weighted) average score in the class.
解答
解法一
思路
展開
本題是一個將積分應用於機率分布與統計加權平均的應用題。題目給出學生人數的密度函數為 f(x)=cx(其中 c>0 為比例常數),睡眠時間 x 的定義域為 [0,a]。
(1) 求睡眠小於 a/2 小時的學生比例
- 睡眠小於 a/2 小時的學生人數為:
Npart=∫0a/2cxdx
- 全班學生的總人數為:
Ntotal=∫0acxdx
- 所求比例即為 NtotalNpart,我們直接計算這兩個定積分並相除,常數 c 會自動消去。
(2) 求班級的加權平均分數
- 每個睡眠時間 x 的學生成績為 S(x)=a100x。
- 由於人數分布並非均勻,計算平均分時必須進行加權。
- 加權平均公式:
μS=全班總人數全班總成績=∫0acxdx∫0aS(x)⋅(cx)dx
- 分母即為 (1) 小題已求出的 ∫0acxdx=2ca2。
- 分子為:
∫0a(a100x)(cx)dx=a100c∫0ax2dx
- 分別算出分子與分母,相除即可得到平均分數。
答題過程
展開
(1) 計算睡眠少於 a/2 小時的學生比例
首先,我們計算睡眠小於 2a 小時的學生人數 N<a/2:
N<a/2=∫02acxdx=c[2x2]02a=c(2(2a)2−0)=8ca2
接著,計算全班學生的總人數 Ntotal:
Ntotal=∫0acxdx=c[2x2]0a=2ca2
因此,睡眠少於 2a 小時的學生所佔比例為:
比例=NtotalN<a/2=2ca28ca2=82=41
(2) 計算加權平均分數
學生的成績函數為:
S(x)=a100x
班級的加權平均分數 μS 定義為:
μS=∫0acxdx∫0aS(x)⋅(cx)dx
我們已在第 (1) 小題求得分母(學生總人數):
分母=∫0acxdx=2ca2
現在計算分子(全班學生的分數加總):
分子====∫0a(a100x)⋅(cx)dxa100c∫0ax2dxa100c[3x3]0aa100c(3a3)=3100ca2
將分子與分母代回加權平均公式:
μS=2ca23100ca2=3100⋅2=3200≈66.67
結論:
- 學生比例為 41(或 25%)。
- 全班加權平均分數為 3200(約 66.67 分)。