// Numbas version: exam_results_page_options {"name": "Coding Error Probabilities", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Coding Error Probabilities", "tags": [], "metadata": {"description": "
Short question in recognising errors in binary strings transmitted over a binary symmetric channel, as well as calculating probabilities of these errors occuring. Randomised 7-bit strings between 64 and 128, randomised probability between 0.05 and 0.1. Randomised error pattern.
", "licence": "None specified"}, "statement": "Below you will be asked about the probabilities of making errors in the transmission of binary strings over a binary symmetric channel, where the probability of error is $p = \\var{prob}$.
\nYou transmit the 7-bit binary string $m = \\var{binstring}$ and your recipient receives the 7-bit binary string $r = \\var{recstring}$.
", "advice": "What is the error pattern?
", "answer": "{errpattern}", "displayAnswer": "{errpattern}", "matchMode": "regex"}, {"type": "patternmatch", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "How many errors were made in transmission? I.e., what is the Hamming weight of the error pattern?
", "answer": "{numerr}", "displayAnswer": "{numerr}", "matchMode": "regex"}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "What is the probability of receiving the string $r = \\var{recstring}$ instead of the transmitted string $m = \\var{binstring}$? Reminder: $p = \\var{prob}$.
", "minValue": "({prob}^{numerr})*(1-{prob})^(7-{numerr})", "maxValue": "({prob}^{numerr})*(1-{prob})^(7-{numerr})", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "precisionType": "dp", "precision": "3", "precisionPartialCredit": 0, "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": false, "showPrecisionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "What is the probability of making exactly $\\var{rand}$ errors when transmitting a 7-bit binary string on this channel?
", "minValue": "comb(7,{rand})*{prob}^{rand}*(1-{prob})^(7-{rand})", "maxValue": "comb(7,{rand})*{prob}^{rand}*(1-{prob})^(7-{rand})", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "precisionType": "dp", "precision": "3", "precisionPartialCredit": 0, "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": true, "showPrecisionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Alexander Corner", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/5328/"}]}]}], "contributors": [{"name": "Alexander Corner", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/5328/"}]}