|
Download math/math-0030.jsonl from winapiadmin/tinycodinglm: direct link, hf CLI and curl.
- Browser
- Download file 1.4 kB
-
https://huggingface.co/datasets/winapiadmin/tinycodinglm/resolve/1c6bb525d6b4b9cdb15d2a75d54734eb29bbb8cb/math/math-0030.jsonl
- Command line
-
hf download hf://datasets/winapiadmin/tinycodinglm@1c6bb525d6b4b9cdb15d2a75d54734eb29bbb8cb/math/math-0030.jsonl
-
curl -L -o math-0030.jsonl https://huggingface.co/datasets/winapiadmin/tinycodinglm/resolve/1c6bb525d6b4b9cdb15d2a75d54734eb29bbb8cb/math/math-0030.jsonl
1.4 kB
| {"type": "session", "harness": "opencode", "id": "math-0030", "name": "probability"} | |
| {"type": "message", "message": {"role": "system", "content": "You are an expert software engineer and technical assistant. You provide accurate, detailed, and practical answers. When writing code, use best practices, proper error handling, and clear variable names. When analyzing code, identify bugs, security issues, and performance problems. You have deep knowledge of C/C++, Windows API, Python, and many other technologies."}} | |
| {"type": "message", "message": {"role": "user", "content": "Explain the key concepts of probability in math, with concrete details and common pitfalls. Include a runnable code example with its expected output."}} | |
| {"type": "message", "message": {"role": "assistant", "content": "**Bayes' Theorem:** P(A|B) = P(B|A)·P(A) / P(B)\n\nExample: disease prevalence 1%, test sensitivity 99%, false positive rate 5%.\n\nP(disease|positive) = P(+|disease)·P(disease) / P(+)\n= 0.99 × 0.01 / (0.99×0.01 + 0.05×0.99)\n= 0.0099 / 0.0594 ≈ **16.7%**\n\n```python\ndef bayes_test(prevalence, sensitivity, false_positive):\n p_positive = sensitivity * prevalence + false_positive * (1 - prevalence)\n return sensitivity * prevalence / p_positive\n\nprint(bayes_test(0.01, 0.99, 0.05)) # 0.1667\n```\n\nMost people overestimate the probability — this is the base rate fallacy."}} | |