j-js commited on
Commit
a5e2e9b
·
verified ·
1 Parent(s): 48e63a7

Update question_fallback_router.py

Browse files
Files changed (1) hide show
  1. question_fallback_router.py +47 -14
question_fallback_router.py CHANGED
@@ -283,20 +283,53 @@ class QuestionFallbackRouter:
283
  )
284
 
285
  elif topic == "statistics":
286
- generic.update(
287
- {
288
- "first_step": "Identify which measure the question wants before calculating anything.",
289
- "hint_1": "Check whether this is asking for mean, median, range, or another measure.",
290
- "hint_2": "Set up the data in a clean order if needed.",
291
- "hint_3": "Use the correct formula or definition for that exact measure.",
292
- "hint_ladder": [
293
- "Check whether this is asking for mean, median, range, or another measure.",
294
- "Set up the data in a clean order if needed.",
295
- "Use the correct formula or definition for that exact measure.",
296
- ],
297
- "common_trap": "Using the wrong statistical measure because the wording was skimmed too quickly.",
298
- }
299
- )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
300
 
301
  if has_options:
302
  generic["answer_path"] = list(generic.get("answer_path", [])) + [
 
283
  )
284
 
285
  elif topic == "statistics":
286
+ qlow = (question_text or "").lower()
287
+
288
+ if any(k in qlow for k in ["variability", "spread", "standard deviation"]):
289
+ generic.update(
290
+ {
291
+ "first_step": "This is about spread, so compare how far the values sit from the center.",
292
+ "hint_1": "Check which dataset has values furthest from its middle value.",
293
+ "hint_2": "Since each set has three numbers, compare how spread out the smallest and largest values are.",
294
+ "hint_3": "The set with the biggest overall spread has the greatest variability here.",
295
+ "hint_ladder": [
296
+ "Check which dataset has values furthest from its middle value.",
297
+ "Compare the distance from the middle to the outer numbers in each set.",
298
+ "The set with the largest spread has the greatest variability.",
299
+ ],
300
+ "walkthrough_steps": [
301
+ "Notice that the question is about variability, not the average.",
302
+ "For each dataset, identify the middle value.",
303
+ "Compare how far the outer values sit from that middle value.",
304
+ "The dataset with the widest spread is the most variable.",
305
+ ],
306
+ "method_steps": [
307
+ "For short answer choices like these, you can often compare spread visually instead of computing a full standard deviation.",
308
+ "Look at how tightly clustered or widely spaced the numbers are.",
309
+ ],
310
+ "answer_path": [
311
+ "Identify that the question is testing spread rather than center.",
312
+ "Compare how far the values extend away from the middle in each dataset.",
313
+ "Choose the dataset with the widest spread.",
314
+ ],
315
+ "common_trap": "Comparing means instead of comparing spread.",
316
+ }
317
+ )
318
+ else:
319
+ generic.update(
320
+ {
321
+ "first_step": "Identify which measure the question wants before calculating anything.",
322
+ "hint_1": "Check whether this is asking for mean, median, range, or another measure.",
323
+ "hint_2": "Set up the data in a clean order if needed.",
324
+ "hint_3": "Use the correct formula or definition for that exact measure.",
325
+ "hint_ladder": [
326
+ "Check whether this is asking for mean, median, range, or another measure.",
327
+ "Set up the data in a clean order if needed.",
328
+ "Use the correct formula or definition for that exact measure.",
329
+ ],
330
+ "common_trap": "Using the wrong statistical measure because the wording was skimmed too quickly.",
331
+ }
332
+ )
333
 
334
  if has_options:
335
  generic["answer_path"] = list(generic.get("answer_path", [])) + [