\(\newcommand{L}[1]{\| #1 \|}\newcommand{VL}[1]{\L{ \vec{#1} }}\newcommand{R}[1]{\operatorname{Re}\,(#1)}\newcommand{I}[1]{\operatorname{Im}\, (#1)}\)
Multiple comparison correction¶
Logistics¶
project presentations next week;
proposal to redistribute 12 percentage points from homework to:
- project: 50% to 60%
- participation : 25% to 27%
See: Logistics.
- solutions to dummies exercise at dummies solutions.
Choosing directions¶
on code quality:
http://www.samueljohnson.com/editing.html#536
“I would say to Robertson what an old tutor of a college said to one of his pupils: ‘Read over your compositions, and where ever you meet with a passage which you think is particularly fine, strike it out.’”
Samuel Johnson in James Boswell’s “Life of Samuel Johnson”.
There are some automated metrics, of which, be careful:
pip3 install --user radon radon cc .
learning to code well:
- read other people’s code;
- review code;
- make other people review your code;
- pair coding.
- “is this the right way to think of the problem?”;
- “have I expressed my thinking clearly in this code?”;
- “what guarantee can I give that the code is correct?;
- “under what circumstances is the code correct?”.
Teaching¶
testing and coverage on the project repositories:
Test results:
- https://travis-ci.org/psych-214-fall-2016/project-red
- https://travis-ci.org/psych-214-fall-2016/project-blue
Test coverage:
GLM and testing exercise¶
testing, and t test volumes:
pdb++ :
pip3 install --user pdbpp
;Exercise:
git clone https://github.com/psych-214-fall-2016/glmtools cd glmtools pip3 install --user --editable . py.test glmtools
Multiple comparison correction¶
- the Bonferroni correction;
- thresholding with Random fields;
- thresholding with the False Discovery Rate;
Reading and homework for next week¶
- Prepare project presentations;
- slice timing correction;
- Rotation in 2D
- optimizing spatial transformations.