\(\newcommand{L}[1]{\| #1 \|}\newcommand{VL}[1]{\L{ \vec{#1} }}\newcommand{R}[1]{\operatorname{Re}\,(#1)}\newcommand{I}[1]{\operatorname{Im}\, (#1)}\)

Exploring the general linear model

Python path

  • Using PYTHONPATH;

  • stimuli.py file;

  • test_stimuli.py file;

  • mkdir code
    mv stimuli.py code
    
  • Install pytest if you haven’t got it already:

    pip install pytest
    
  • Show that the tests don’t work yet:

    py.test test_stimuli.py
    
  • Set Python path;

  • Finally:

    mv test_stimuli.py code
    py.test code/test_stimuli.py
    

Simple and multiple regression

Correlation again

Reading and homework for next week