// Numbas version: finer_feedback_settings {"name": "Obliczenie przedzia\u0142u ufno\u015bci", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Obliczenie przedzia\u0142u ufno\u015bci", "tags": [], "metadata": {"description": "
Dane s\u0105 \u015brednia i odchylenie standardowe 1000-elementowej próby. Nale\u017cy wyznaczy\u0107 95% przedzia\u0142 ufno\u015bci dla \u015bredniej w populacji.
", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "W badaniu spytano $\\var{samplesize}$ mieszka\u0144ców Gda\u0144ska o subiektywn\u0105 ocen\u0119 dost\u0119pno\u015bci transportu zbiorowego w miejscu zamieszkania w skali od $\\var{bottom}$ ({expb}) do $\\var{top}$ ({expt}).
\nWsród tych respondentów \u015brednia wynosi\u0142a $\\var{samplemean}$, a odchylenie standardowe $\\var{sstdev}$.
\n\nZaokr\u0105glij wszystkie wyniki do 2 miejsc po przecinku.
\n", "advice": "\n\ta)
\n\tThe $z$-score is given by
\n\t\\[z=\\frac{\\var{score}-\\var{samplemean}}{\\var{sstdev}}=\\var{zscore}\\]
\n\t(To 3 decimal places).
\n\tb)
\n\tThe lower bound for the 95% confidence interval is given by:
\n\tLower bound = $\\displaystyle \\var{samplemean}-1.96 \\times \\frac{ \\var{sstdev}}{\\sqrt{\\var{samplesize}}}=\\var{lowerbound}$
\n\t \n\tUpper bound = $\\displaystyle \\var{samplemean}+1.96 \\times \\frac{ \\var{sstdev}}{\\sqrt{\\var{samplesize}}}=\\var{upperbound}$
\n\t(Both to 3 decimal places.)
\n\tHence for the population mean $\\mu$ we can say that $\\var{lowerbound} \\le\\mu \\le \\var{upperbound}$ with $95$% confidence.
\n\t", "rulesets": {}, "extensions": [], "variables": {"expb": {"name": "expb", "group": "Ungrouped variables", "definition": "'bardzo z\u0142a'", "description": "", "templateType": "anything"}, "top": {"name": "top", "group": "Ungrouped variables", "definition": "7", "description": "", "templateType": "anything"}, "score": {"name": "score", "group": "Ungrouped variables", "definition": "random(2..5#0.1)", "description": "", "templateType": "anything"}, "sstdev": {"name": "sstdev", "group": "Ungrouped variables", "definition": "random(0.9..2.0#0.01)", "description": "", "templateType": "anything"}, "upperbound": {"name": "upperbound", "group": "Ungrouped variables", "definition": "precround(samplemean+1.96*sstdev/sqrt(samplesize),3)", "description": "", "templateType": "anything"}, "these": {"name": "these", "group": "Ungrouped variables", "definition": "'UK shoppers'", "description": "", "templateType": "anything"}, "zscore": {"name": "zscore", "group": "Ungrouped variables", "definition": "precround((score-samplemean)/sstdev,3)", "description": "", "templateType": "anything"}, "this": {"name": "this", "group": "Ungrouped variables", "definition": "'the importance of price when making food choice decisions'", "description": "", "templateType": "anything"}, "expt": {"name": "expt", "group": "Ungrouped variables", "definition": "'bardzo dobra'", "description": "", "templateType": "anything"}, "samplemean": {"name": "samplemean", "group": "Ungrouped variables", "definition": "random(4.5..6.5#0.01)", "description": "", "templateType": "anything"}, "samplesize": {"name": "samplesize", "group": "Ungrouped variables", "definition": "1000", "description": "", "templateType": "anything"}, "bottom": {"name": "bottom", "group": "Ungrouped variables", "definition": "1", "description": "", "templateType": "anything"}, "lowerbound": {"name": "lowerbound", "group": "Ungrouped variables", "definition": "precround(samplemean-1.96*sstdev/sqrt(samplesize),3)", "description": "", "templateType": "anything"}, "tol": {"name": "tol", "group": "Ungrouped variables", "definition": "0.05", "description": "", "templateType": "anything"}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["zscore", "lowerbound", "bottom", "this", "top", "upperbound", "samplemean", "these", "sstdev", "score", "samplesize", "expb", "expt", "tol"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "1_n_2", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "Wariancja populacji jest:
", "minMarks": 0, "maxMarks": 0, "shuffleChoices": false, "displayType": "radiogroup", "displayColumns": 0, "showCellAnswerState": true, "choices": ["znana", "nieznana"], "matrix": [0, "1"], "distractors": ["", ""]}, {"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "Przyjmuj\u0105c wspó\u0142czynnik ufno\u015bci $0,95$ zbuduj przedzia\u0142 ufno\u015bci dla \u015bredniej $m$ oceny dost\u0119pno\u015bci transportu zbiorowego w populacji mieszka\u0144ców Gda\u0144ska:
\nDolna granica przedzia\u0142u ufno\u015bci: [[0]]
\nGórna granica przedzia\u0142u ufno\u015bci: [[1]]
\n", "gaps": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": "2.5", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "lowerbound-tol", "maxValue": "lowerbound+tol", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "precisionType": "dp", "precision": "2", "precisionPartialCredit": 0, "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": false, "showPrecisionHint": true, "notationStyles": ["plain-eu"], "correctAnswerStyle": "plain-eu"}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": "2.5", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "upperbound-tol", "maxValue": "upperbound+tol", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "precisionType": "dp", "precision": "2", "precisionPartialCredit": 0, "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": false, "showPrecisionHint": true, "notationStyles": ["plain-eu"], "correctAnswerStyle": "plain-eu"}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question", "contributors": [{"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}, {"name": "Aleksandra Romanowska", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/11231/"}]}]}], "contributors": [{"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}, {"name": "Aleksandra Romanowska", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/11231/"}]}