// Numbas version: exam_results_page_options {"name": "Matriz de un canal y matriz conjunta", "metadata": {"description": "En Teor\u00eda de la Informaci\u00f3n, dada la matriz conjunta de un canal 2x2 P(ai,bj) obtiene la matriz del canal P(bj/ai)", "licence": "None specified"}, "duration": 900, "percentPass": "100", "showQuestionGroupNames": true, "showstudentname": true, "question_groups": [{"name": "Canales 2x2", "pickingStrategy": "all-ordered", "pickQuestions": 1, "questions": [{"name": "Calcular la matriz del canal dada la matriz conjunta", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "George Stagg", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/930/"}, {"name": "Lucio Torrico", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4939/"}], "tags": [], "metadata": {"description": "

En Teor\u00eda de la Informaci\u00f3n, se provee una matriz de probabilidades conjuntas P(ai,bj) de un canal 2x2.

Se trata de hallar la matriz del canal.

", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "

Pregunta 1.-

\n

", "advice": "

esta es la worked solution

", "rulesets": {}, "variables": {"a11": {"name": "a11", "group": "Ungrouped variables", "definition": "random(0.1 .. 0.299#0.001)", "description": "

a11 contiene el valor [0.000 ... 0.999] de la celda [1,1] de una matriz

", "templateType": "randrange"}, "a12": {"name": "a12", "group": "Ungrouped variables", "definition": "random(0.1 .. 0.299#0.001)", "description": "

a12 contiene el valor [0.000 ... 0.999] de la celda [1,2] de una matriz

", "templateType": "randrange"}, "a21": {"name": "a21", "group": "Ungrouped variables", "definition": "random(0.1 .. 0.299#0.001)", "description": "

.1a21 contiene el valor [0.000 ... 0.999] de la celda [2,1] de una matriz

", "templateType": "randrange"}, "a22": {"name": "a22", "group": "Ungrouped variables", "definition": "1-({a11}+{a12}+{a21})", "description": "

a22 contiene el valor [0.000 ... 0.999] de la celda [2,2] de una matriz

", "templateType": "anything"}, "a": {"name": "a", "group": "Ungrouped variables", "definition": "matrix([\n [a11,a12],\n [a21,a22]\n])", "description": "

La matriz conjunta P(ai,bj) de entrada (contiene valores tpo 0.213)

", "templateType": "anything"}}, "variablesTest": {"condition": "", "maxRuns": "6"}, "ungrouped_variables": ["a11", "a12", "a21", "a22", "a"], "variable_groups": [], "functions": {"canal": {"parameters": [["m", "matrix"]], "type": "matrix", "language": "javascript", "definition": "var matriz = [[0,0],[0,0]];\nvar Pa = new Array(2);\n//matriz[0][0] = m[0][0];\n//matriz[0][1] = m[0][1];\n//matriz[1][0] = m[1][0];\n//matriz[1][1] = m[1][1];\n\nfor (var i = 0; i < 2; i++) {\n for (var j = 0; j < 2; j++) { \n matriz[i][j] = m[i][j];\n} \n}\n\nPa[0] = matriz[0][0] + matriz[0][1];\nPa[1] = matriz[1][0] + matriz[1][1];\nm[0][0] = matriz[0][0]/Pa[0];\nm[0][1] = matriz[0][1]/Pa[0];\nm[1][0] = matriz[1][0]/Pa[1];\nm[1][1] = matriz[1][1]/Pa[1];\nreturn m;"}}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "matrix", "useCustomName": true, "customName": "Pregunta1", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Dada la matriz conjunta P(ai,bj) = \\(\\var{matrix([{a11},{a12}],[{a21},{a22}])}\\)

\n

\n

Halle la matriz P(bj/ai) del canal.

\n

\n

Escriba su matriz (con tres decimales en cada celda):

", "correctAnswer": "canal(a)", "correctAnswerFractions": false, "numRows": "2", "numColumns": "2", "allowResize": false, "tolerance": "0.001", "markPerCell": false, "allowFractions": false, "minColumns": 1, "maxColumns": 0, "minRows": 1, "maxRows": 0, "precisionType": "dp", "precision": "3", "precisionPartialCredit": 0, "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}]}], "navigation": {"allowregen": true, "reverse": true, "browse": true, "allowsteps": true, "showfrontpage": true, "showresultspage": "oncompletion", "onleave": {"action": "none", "message": ""}, "preventleave": true, "startpassword": ""}, "timing": {"allowPause": true, "timeout": {"action": "none", "message": ""}, "timedwarning": {"action": "warn", "message": "

Faltan cinco minutos

"}}, "feedback": {"showactualmark": true, "showtotalmark": true, "showanswerstate": true, "allowrevealanswer": true, "advicethreshold": 0, "intro": "

A seguir estudiando

", "reviewshowscore": true, "reviewshowfeedback": true, "reviewshowexpectedanswer": true, "reviewshowadvice": true, "feedbackmessages": []}, "contributors": [{"name": "Lucio Torrico", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4939/"}], "extensions": [], "custom_part_types": [], "resources": []}