// Numbas version: finer_feedback_settings {"name": "Test istotno\u015bci dla dw\u00f3ch \u015brednich", "extensions": ["stats"], "custom_part_types": [], "resources": [["question-resources/Wzory.pdf", "/srv/numbas/media/question-resources/Wzory.pdf"], ["question-resources/t_Studenta.pdf", "/srv/numbas/media/question-resources/t_Studenta.pdf"], ["question-resources/Rozk\u0142ad_chi2.pdf", "/srv/numbas/media/question-resources/Rozk\u0142ad_chi2.pdf"], ["question-resources/Dystrybuanta_rozk\u0142adu_normalnego.pdf", "/srv/numbas/media/question-resources/Dystrybuanta_rozk\u0142adu_normalnego.pdf"]], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Test istotno\u015bci dla dw\u00f3ch \u015brednich", "tags": [], "metadata": {"description": "
Zadanie pozwala oceni\u0107 umiej\u0119tno\u015b\u0107 studenta w zakresie: formu\u0142owania hipotez, przeprowadzania testu istotno\u015bci, wnioskowania statystycznego.
\nZmienne losowe: dane surowe
", "licence": "Creative Commons Attribution-ShareAlike 4.0 International"}, "statement": "Zastanawiamy si\u0119, czy wprowadzenie nowych przepisów w zakresie pierwsze\u0144stwa pieszych spowodowa\u0142ozmian\u0119 udzia\u0142u procentowego kierowców zatrzymuj\u0105cych si\u0119 przed przej\u015bciem dla pieszych w celu przepuszczenia pieszego. Przeprowadzono badanie na 9 przej\u015bciach na tydzie\u0144 przed i tydzie\u0144 po zmianie przepisów. Poni\u017csza tabela przedstawia procent kierowców zatrzymuj\u0105cych si\u0119 przed przej\u015bciem dla pieszych (w momencie, gdy pieszy oczekuje na przej\u015bcie) w celu przepuszczenia pieszego odpowiednio PRZED i PO wprowadzeniu nowych przepisów. Na poziomie istotno\u015bci 0,05 zweryfikuj hipotez\u0119, \u017ce PRZED zmian\u0105 przepisów procent kierowców ust\u0119puj\u0105cych pierwsze\u0144stwa pieszym by\u0142 ni\u017cszy ni\u017c PO wprowadzeniu przepisów. Za\u0142ó\u017c, \u017ce odchylenia standardowe obu populacji s\u0105 jednakowe (\ud835\udf0e1=\ud835\udf0e2).
\n\n Nr przej\u015bcia \n | \n\n PRZED \nxi1 \n | \n\n PO \nxi2 \n | \n
1 | \n{r1[0]} | \n{r2[0]} | \n
2 | \n{r1[1]} | \n{r2[1]} | \n
3 | \n{r1[2]} | \n{r2[2]} | \n
4 | \n{r1[3]} | \n{r2[3]} | \n
5 | \n{r1[4]} | \n{r2[4]} | \n
6 | \n{r1[5]} | \n{r2[5]} | \n
7 | \n{r1[6]} | \n{r2[6]} | \n
8 | \n{r1[7]} | \n{r2[7]} | \n
9 | \n{r1[8]} | \n{r2[8]} | \n
Przyjmij, \u017ce:
\nm1 - \u015bredni procent kierowców PRZED zmian\u0105 przepisów
\nm2 - \u015bredni procent kierowców PO zmianie przepisów
", "advice": "", "rulesets": {}, "extensions": ["stats"], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"sd1": {"name": "sd1", "group": "Statistics", "definition": "precround(stdev(r1,false),2)", "description": "", "templateType": "anything", "can_override": false}, "mean2": {"name": "mean2", "group": "Statistics", "definition": "precround(mean(r2),2)", "description": "", "templateType": "anything", "can_override": false}, "tol": {"name": "tol", "group": "Setup", "definition": "0.05", "description": "", "templateType": "anything", "can_override": false}, "sigma1": {"name": "sigma1", "group": "Setup", "definition": "random(4.5..5.5#0.1)", "description": "", "templateType": "anything", "can_override": false}, "mu1": {"name": "mu1", "group": "Setup", "definition": "random(20..50#1)", "description": "Population mean of sample 1.
", "templateType": "anything", "can_override": false}, "r2": {"name": "r2", "group": "Setup", "definition": "repeat(round(normalsample(mu2,sigma2)),n2)", "description": "", "templateType": "anything", "can_override": false}, "SE": {"name": "SE", "group": "Statistics", "definition": "siground(sqrt(sd1^2/n1+sd2^2/n2),3)", "description": "", "templateType": "anything", "can_override": false}, "sd2": {"name": "sd2", "group": "Statistics", "definition": "precround(stdev(r2,false),2)", "description": "", "templateType": "anything", "can_override": false}, "mu2": {"name": "mu2", "group": "Setup", "definition": "random(30..70#1)", "description": "Population mean of sample 2.
", "templateType": "anything", "can_override": false}, "n2": {"name": "n2", "group": "Setup", "definition": "9", "description": "", "templateType": "anything", "can_override": false}, "ciLower": {"name": "ciLower", "group": "Statistics", "definition": "siground(meanDiff-tStar*SE,3)", "description": "", "templateType": "anything", "can_override": false}, "mean1": {"name": "mean1", "group": "Statistics", "definition": "precround(mean(r1),2)", "description": "", "templateType": "anything", "can_override": false}, "r1": {"name": "r1", "group": "Setup", "definition": "repeat(round(normalsample(mu1,sigma1)),n1)", "description": "", "templateType": "anything", "can_override": false}, "n1": {"name": "n1", "group": "Setup", "definition": "9", "description": "", "templateType": "anything", "can_override": false}, "sigma2": {"name": "sigma2", "group": "Setup", "definition": "random(2..3#0.1)", "description": "", "templateType": "anything", "can_override": false}, "tStar": {"name": "tStar", "group": "Statistics", "definition": "studenttinv(0.5*(100-CL)/100,n1-1)", "description": "", "templateType": "anything", "can_override": false}, "CL": {"name": "CL", "group": "Setup", "definition": "random(90,95,99)", "description": "Confidence level.
", "templateType": "anything", "can_override": false}, "meanDiff": {"name": "meanDiff", "group": "Statistics", "definition": "siground(mean1-mean2,3)", "description": "", "templateType": "anything", "can_override": false}, "ciUpper": {"name": "ciUpper", "group": "Statistics", "definition": "siground(meanDiff+tStar*SE,3)", "description": "", "templateType": "anything", "can_override": false}, "ttest2": {"name": "ttest2", "group": "Statistics", "definition": "((mean1-mean2)/sqrt(((n1*sd1^2+n2*sd2^2)*(1/n1+1/n2))/(n1+n2-2)))", "description": "Warto\u015b\u0107 testu t dla dwóch \u015brednich
", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": [], "variable_groups": [{"name": "Setup", "variables": ["n1", "n2", "mu1", "mu2", "sigma1", "sigma2", "r1", "r2", "CL", "tol"]}, {"name": "Statistics", "variables": ["mean1", "mean2", "meanDiff", "SE", "sd1", "sd2", "tStar", "ciLower", "ciUpper", "ttest2"]}], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"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": "Formu\u0142owanie hipotezy. Wprowad\u017a odpowiedni znak (=, <, > lub !=). Uwaga: ostatni znak przyj\u0119to na potrzeby kolokwium jako znak ró\u017cno\u015bci.
\nH0: m1 [[0]] m2
\nH1: m1 [[1]] m2
", "gaps": [{"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, "answer": "=", "displayAnswer": "", "matchMode": "exact"}, {"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, "answer": "<", "displayAnswer": "", "matchMode": "regex"}], "sortAnswers": false}, {"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [{"variable": "sd1", "part": "p2g0", "must_go_first": true}, {"variable": "sd2", "part": "p2g1", "must_go_first": true}], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": "0.5", "exploreObjective": null, "prompt": "Wiedz\u0105c, \u017ce:
\n$\\overline{x}_{1}=${mean1}
\n$\\overline{x}_{2}=${mean2}
\noraz
\n${s_1}=${sd1}
\n${s_2}=${sd2}
\nOblicz warto\u015b\u0107 statystyki testowej:
\n${t}=$ [[0]]
\nWyznacz warto\u015b\u0107 krytyczn\u0105 (je\u017celi dotyczy, wprowad\u017a warto\u015b\u0107 z minusem):
\n${t}_{\\alpha}=$ [[1]]
", "gaps": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": "2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "ttest2*(1-tol)", "maxValue": "ttest2*(1+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": "1", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": false, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "-1.746", "maxValue": "-1.746", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain-eu"], "correctAnswerStyle": "plain-eu"}], "sortAnswers": false}, {"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": "Wpisz ${1}$ przy prawid\u0142owej odpowiedzi oraz ${0}$ przy odpowiedzi nieprawid\u0142owej:
\n[[0]] Nale\u017cy odrzuci\u0107 H0
\n[[1]] Brakuje podstaw do odrzucenia H0
\n", "gaps": [{"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, "minValue": "if(ttest2<-1.746,1,0)", "maxValue": "if(ttest2<-1.746,1,0)", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain-eu"], "correctAnswerStyle": "plain-eu"}, {"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, "minValue": "if(ttest2>-1.746,1,0)", "maxValue": "if(ttest2>-1.746,1,0)", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question", "contributors": [{"name": "Mario Orsi", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/427/"}, {"name": "Aleksandra Romanowska", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/11231/"}]}]}], "contributors": [{"name": "Mario Orsi", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/427/"}, {"name": "Aleksandra Romanowska", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/11231/"}]}