From 35943a8f3aca15f278edba05621b8e64b48b54d5 Mon Sep 17 00:00:00 2001 From: Jan Grewe Date: Mon, 14 Jan 2019 11:49:53 +0100 Subject: [PATCH] new power analysis project --- projects/evaluation.tex | 11 +++-- projects/project_power_analysis/Makefile | 3 ++ .../project_power_analysis/power_analysis.tex | 45 +++++++++++++++++++ 3 files changed, 53 insertions(+), 6 deletions(-) create mode 100644 projects/project_power_analysis/Makefile create mode 100644 projects/project_power_analysis/power_analysis.tex diff --git a/projects/evaluation.tex b/projects/evaluation.tex index 91afda7..bf613c6 100644 --- a/projects/evaluation.tex +++ b/projects/evaluation.tex @@ -23,8 +23,8 @@ \begin{tabular}{|p{0.16\textwidth}|p{0.1\textwidth}|p{0.024\textwidth}|p{0.024\textwidth}|p{0.024\textwidth}|p{0.024\textwidth}|p{0.024\textwidth}|p{0.024\textwidth}|p{0.024\textwidth}|p{0.024\textwidth}|p{0.024\textwidth}|p{0.024\textwidth}|p{0.024\textwidth}|p{0.024\textwidth}|p{0.024\textwidth}|p{0.024\textwidth}|p{0.024\textwidth}|p{0.024\textwidth}|l|l|} \hline Name & Project & \multicolumn{5}{l|}{Project} & \multicolumn{3}{l|}{Figures} & \multicolumn{8}{l|}{Code} & Sum & Grade \rule{0.pt}{3ex} \\ - & & \rot{Understanding} & \rot{Presentation}\rot{Structure, didactics} & \rot{Completed} & \rot{Bonus:}\rot{Context} & \rot{Bonus:}\rot{Own ideas} & \rot{Readability}\rot{font size, etc.} & \rot{Labels, units}\rot{and statistical measures} & \rot{Design} & \rot{Runs} & \rot{Names of}\rot{vars and funcs} & \rot{Style: white space}\rot{Spaghetti, structure} & \rot{Functions: used,}\rot{purpose, standalone} & \rot{Docu script} & \rot{Docu functions} & \rot{Figures saved} & \rot{Bonus:}\rot{Interesting code} & & \\ - & & 0--6 & 0--2 & 0--2 & 0, 1 & 0--2 & 0--2 & 0--2 & 0--2 & 0--2 & 0--2 & 0--2 & 0--3 & 0--2 & 0--2 & 0, 2 & 0--2 & 28 & \\ \hline + & & \rot{Understanding} & \rot{Presentation}\rot{Structure, didactics} & \rot{Completed} & \rot{Bonus:}\rot{Context} & \rot{Bonus:}\rot{Own ideas} & \rot{Readability}\rot{font size, etc.} & \rot{Labels, units, and}\rot{statistical measures} & \rot{Design} & \rot{Runs} & \rot{Names of}\rot{vars and funcs} & \rot{Style: white space}\rot{Spaghetti, structure} & \rot{Functions: used,}\rot{purpose, standalone} & \rot{Docu script} & \rot{Docu functions} & \rot{Figures saved} & \rot{Bonus:}\rot{Interesting code} & & \\ + & & 0--6 & 0--2 & 0--2 & 0, 1 & 0--2 & 0--2 & 0--2 & 0--2 & 0--2 & 0--2 & 0--2 & 0--3 & 0--2 & 0--2 & 0, 2 & 0--2 & 31 & \\ \hline \num & & & & & & & & & & & & & & & & & & & \\ \hline \num & & & & & & & & & & & & & & & & & & & \\ \hline \num & & & & & & & & & & & & & & & & & & & \\ \hline @@ -36,12 +36,11 @@ Name & Project & \multicolumn{5}{l|}{Project} & \multicolumn{3}{l|}{Figures} & \ \end{tabular} \noindent -\begin{tabular}{|p{0.16\textwidth}|p{0.1\textwidth}|p{0.023\textwidth}|p{0.023\textwidth}|p{0.023\textwidth}|p{0.023\textwidth}|p{0.023\textwidth}|p{0.023\textwidth}|p{0.023\textwidth}|p{0.023\textwidth}|p{0.023\textwidth}|p{0.023\textwidth}|p{0.023\textwidth}|p{0.023\textwidth}|p{0.023\textwidth}|p{0.023\textwidth}|p{0.023\textwidth}|p{0.023\textwidth}|l|l|} +\begin{tabular}{|p{0.16\textwidth}|p{0.1\textwidth}|p{0.024\textwidth}|p{0.024\textwidth}|p{0.024\textwidth}|p{0.024\textwidth}|p{0.024\textwidth}|p{0.024\textwidth}|p{0.024\textwidth}|p{0.024\textwidth}|p{0.024\textwidth}|p{0.024\textwidth}|p{0.024\textwidth}|p{0.024\textwidth}|p{0.024\textwidth}|p{0.024\textwidth}|p{0.024\textwidth}|p{0.024\textwidth}|l|l|} \hline Name & Project & \multicolumn{5}{l|}{Project} & \multicolumn{3}{l|}{Figures} & \multicolumn{8}{l|}{Code} & Sum & Grade \rule{0.pt}{3ex} \\ - & & \rot{Understanding} & \rot{Presentation}\rot{Structure, didactics} & \rot{Completed} & \rot{Bonus:}\rot{Context} & \rot{Bonus:}\rot{Own ideas} & \rot{Readability}\rot{font size, etc.} & \rot{Labels}\rot{and units} & \rot{Design} & \rot{Runs} & \rot{Names of}\rot{vars and funcs} & \rot{Style: white space}\rot{Spaghetti, structure} & \rot{Functions: used,}\rot{purpose, standalone} & \rot{Docu script} & \rot{Docu functions} & \rot{Figures saved} & \rot{Bonus:}\rot{Interesting code} & & \\ - & & 0--3 & 0--2 & 0--2 & 0, 1 & 0--2 & 0--2 & 0--2 & 0--2 & 0--2 & 0--2 & 0--2 & 0--3 & 0--2 & 0--2 & 0, 2 & 0--2 & 28 & \\ \hline - \num & & & & & & & & & & & & & & & & & & & \\ \hline + & & \rot{Understanding} & \rot{Presentation}\rot{Structure, didactics} & \rot{Completed} & \rot{Bonus:}\rot{Context} & \rot{Bonus:}\rot{Own ideas} & \rot{Readability}\rot{font size, etc.} & \rot{Labels, units, and}\rot{statistical measures} & \rot{Design} & \rot{Runs} & \rot{Names of}\rot{vars and funcs} & \rot{Style: white space}\rot{Spaghetti, structure} & \rot{Functions: used,}\rot{purpose, standalone} & \rot{Docu script} & \rot{Docu functions} & \rot{Figures saved} & \rot{Bonus:}\rot{Interesting code} & & \\ + & & 0--6 & 0--2 & 0--2 & 0, 1 & 0--2 & 0--2 & 0--2 & 0--2 & 0--2 & 0--2 & 0--2 & 0--3 & 0--2 & 0--2 & 0, 2 & 0--2 & 31 & \\ \hline \num & & & & & & & & & & & & & & & & & & & \\ \hline \num & & & & & & & & & & & & & & & & & & & \\ \hline \num & & & & & & & & & & & & & & & & & & & \\ \hline diff --git a/projects/project_power_analysis/Makefile b/projects/project_power_analysis/Makefile new file mode 100644 index 0000000..a7b3726 --- /dev/null +++ b/projects/project_power_analysis/Makefile @@ -0,0 +1,3 @@ +ZIPFILES= + +include ../project.mk diff --git a/projects/project_power_analysis/power_analysis.tex b/projects/project_power_analysis/power_analysis.tex new file mode 100644 index 0000000..d0a0999 --- /dev/null +++ b/projects/project_power_analysis/power_analysis.tex @@ -0,0 +1,45 @@ +\documentclass[a4paper,12pt,pdftex]{exam} + +\newcommand{\ptitle}{EOD waveform} +\input{../header.tex} +\firstpagefooter{Supervisor: Peter Pilz}{phone: 29 74835}% +{email: peter.pilz@uni-tuebingen.de} + +\begin{document} +\input{../instructions.tex} + +In a scientific study 3 different substances are tested on 3 groups of +subjects, a forth group is not treated and serves as a control +group. + +Simulate test results for the different groups using normally +distributed random numbers. The standard deviation is the same in all +groups. The effect size $d=\frac{\mu_1 - \mu_2}{\sigma}$ relative to +the control group is $0.0, 0.5,$ and $1.0$ for the three experimental +groups. + +\begin{questions} + \question{} How large is the \emph{power} of the study if each group + consists of 10 subjects? + \begin{parts} + \part{} Execute a large number of experiments (10.000) and estimate how often statistically significant results are yielded. Give both \emph{type I} and \emph{type II} errors. + \end{parts} + \question{} What is the effect of different goup sizes? + \begin{parts} + \part{} Consider the following group sizes ($control:group1:group2:group3$): + \begin{itemize} + \item $4:12:12:12$ + \item $7:11:11:11$ + \item $13:9:9:9$ + \item $16:8:8:8$ + \item $19:7:7:7$ + \item $22:6:6:6$ + \item $25:5:5:5$ + \item $28:4:4:4$ + \end{itemize} + \part{} Plot the \emph{power} as a function of the size of the control group for $d={0.5, 1.0}$. Give the groups size relative to the size of the experimental groups. + \part{} How large are the false positive results for $d=0.0$. + \end{parts} + \question{} Can you recommend a group size for the control group? +\end{questions} +\end{document}