题型编号 | 题型 | 题量 | 分值/题 | 总分 |
---|---|---|---|---|
1 | 言语理解与表达 | 40 | 0.8 | 32 |
2 | 数量关系 | 15 | 0.8 | 12 |
3 | 判断推理-图形推理 | 10 | 0.6 | 6 |
4 | 判断推理-定义判断 | 10 | 0.7 | 7 |
5 | 判断推理-类比推理 | 10 | 0.5 | 5 |
6 | 判断推理-逻辑推断 | 10 | 0.8 | 8 |
7 | 资料分析 | 20 | 1 | 20 |
8 | 常识推断 | 20 | 0.5 | 10 |
总计 | 135 | 100 |
答题效率可定义为:
E = 1 n ∑ i = 1 n s i a i t i \mathbb{E} = \frac{1}{n}\sum_{i=1}^{n}\frac{s_ia_i}{t_i} E=n1i=1∑ntisiai
其中, n n n表示题型数量(默认为 n = 8 n=8 n=8); a i = c i T i a_i=\frac{c_i}{T_i} ai=Tici表示答对第 i i i种类型的题目 c i c_i ci占该类型题目总量的比例,即正确率; s i = T i T s i ′ s_i=\frac{T_i}{T}s_i^\prime si=TTisi′衡量的是某一类型题型在所有题型中的重要性(其中 s i ′ s_i^\prime si′表示该类型题型每题的分值, T T T是题目总数); t i t_i ti表示答完该类型题目所用时长,且 ∑ t i ≤ 120 \sum{t_i} \le 120 ∑ti≤120(注意, t i t_i ti的单位是分钟)。
于是:
E
=
1
n
∑
i
=
1
n
s
i
a
i
t
i
=
i
n
∑
i
=
1
n
T
i
s
i
′
T
c
i
T
i
1
t
i
=
T
n
∑
i
=
1
n
s
i
′
c
i
t
i
\begin{aligned} \mathbb{E} &= \frac{1}{n}\sum_{i=1}^{n}\frac{s_ia_i}{t_i} \\ &=\frac{i}{n}\sum_{i=1}^{n}\frac{T_is_i^\prime}{T}\frac{c_i}{T_i}\frac{1}{t_i} \\ &= \frac{T}{n}\sum_{i=1}^{n}\frac{s_i^\prime c_i}{t_i} \end{aligned}
E=n1i=1∑ntisiai=nii=1∑nTTisi′Ticiti1=nTi=1∑ntisi′ci
因此,需要记录的就是每一类型题目的答题时间和正确答题数。
from collections import defaultdict
Vs_QType = defaultdict(list)
score = [0.8, 0.8, 0.6, 0.7, 0.5, 0.8, 1, 0.5]
correct_num = [35, 10, 8, 8, 9, 9, 18, 17]
time = [35, 15, 8, 9, 9, 9, 20, 15]
#LUE: Language understanding and expression
#QR: quantitative relation
#JR-GR: Judgment reasoning graphic reasoning
#JR-DJ: Judgment reasoning Definition Judgment
#JR-AR: Judgment reasoning analogic reasoning
#JR-LI: Judgment reasoning Logical inference
#DA: data analysis
#CI: Commonsense inference
assert len(score) == len(correct_num) == len(time)
QTypes = ["LUE", "JR-GR", "JR-DJ", "JR-AR", "JR-LI", "DA", "CI"]
for idx, qtype in enumerate(QTypes):
tmp_list = [score[idx], correct_num[idx], time[idx]]
Vs_QType[qtype] = tmp_list
sum = 0.
for qtype_k, qtype_v in Vs_QType.items():
sum += float(qtype_v[0]) * float(qtype_v[1]) / float(qtype_v[2])
n = 8
T = 135
E = n / T * sum
print('%.4f' % E)
输出:
0.2818