# AFNI Tutorial #5: Statistics and Modeling

## Overview

Now that the first functional run has been preprocessed, we can **fit a model** to the data. To understand how model fitting works, we need to review some fundamentals such as the General Linear Model, the BOLD response, and what a time-series is. Each of these topics are discussed in the following table of contents.

After you have reviewed those concepts, you are then ready to run a first-level analysis. The figure below illustrates how we will be fitting a model to the data.

Note

Understanding model fitting and first-level analysis can be challenging. Don’t be discouraged if you don’t understand everything the first time you read the chapters; keep at it, and the concepts will become clearer with time and practice.