% WA8
%
% The goal of these exercises is to investigate how many trials/repetitions
% are required in an experiment design.

% Problem 1)  No physiological noise or motion; simulation.
% For a block design and a event-related design, simulate a BOLD response
% for a voxel that has no physiological noise, a signal-to-noise ratio of
% 100, and a hemodynamic impulse response amplitude of 1%.
%
%
% Problem 2)  Using the block design above, how many scans would you have
% to run to be able to detect a 10% difference in response amplitude?  Use
% the standard error of the mean (SEM) to generate errorbars, and count the
% difference between the two conditions as "significant" when the errorbars
% don't overlap after you estimate a trial-triggered average.
%
%
% Problem 3)  Add a baseline drift into your simulation (linear trend from
% -0.1 to .1 during each scan) and see how it affects your errorbars.
