sift:statistical_parametric_mapping:using_statistical_parametric_mapping_in_biomechanics
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
sift:statistical_parametric_mapping:using_statistical_parametric_mapping_in_biomechanics [2024/12/17 15:47] – [The Utility of SPM] wikisysop | sift:statistical_parametric_mapping:using_statistical_parametric_mapping_in_biomechanics [2024/12/17 20:13] (current) – [Visualizing SPM Results] wikisysop | ||
---|---|---|---|
Line 3: | Line 3: | ||
Statistical Parametric Mapping (SPM) is a method to create " | Statistical Parametric Mapping (SPM) is a method to create " | ||
- | ==== The Utility of SPM ==== | + | ===== The Utility of SPM ===== |
- | Statistical tests, such as a T-Test, are useful tools used by scientists and statisticians, | + | Statistical tests, such as a T-Test, are useful tools used by scientists and statisticians, |
- | ==== The Math behind SPM ==== | + | ===== The Math behind SPM ===== |
- | The basis of SPM begins with modeling our data with a General Linear Model (GLM). A GLM is simply relating our data Y to an experimental design | + | All of the math behind SPM is done internally with Sift, but we give a brief summary of it here for your purposes in Sift. Please refer to the references for more detailed explanations. |
+ | |||
+ | ==== The GLM ==== | ||
+ | |||
+ | The basis of SPM begins with modeling our data with a General Linear Model (GLM). A GLM is simply relating our data to an experimental design. This experimental design | ||
{{: | {{: | ||
- | Where B is a regression matrix (to be estimated using a Moore-Penrose inverse) and e is the resulting residuals. | + | Where Y is our original data, X represents out experimental design, |
- | This GLM allows us to apply arbitrary linear tests to each data point (i.e. a point in time for a gait analysis), such as a t-test, creating a " | + | This GLM allows us to apply arbitrary linear tests to each data point (i.e. a point in time for a gait analysis), such as a t-test |
- | {{: | + | ==== T-Tests ==== |
- | where c is a contrast vector indicating how we are selecting from our regression matrix (B), ^T represents a transposed | + | For a t-test, |
- | {{:SPM_TTestEqnRho.png}} | + | {{:spm_ttest_eqn.png}} |
- | where e is the residuals, nn represents the nth diagonal element | + | where c is a contrast vector indicating how we are selecting from our regression matrix (B), ^T represents |
+ | |||
+ | {{: | ||
+ | |||
+ | where diag() is the diagonal values in a vector, e is the residuals, I represents the number of trials we have modeled (the # of rows in our Y Matrix), and rank(X) is equal to the number of groups (for a t-test, this would be 2). | ||
+ | |||
+ | This equation for T follows a T-distribution of degrees of freedom equal to I - rank(X). | ||
+ | ==== ANOVA ==== | ||
+ | |||
+ | For our ANOVA tests, we model the GLM slightly differently. Instead of the design matrix including just the groupings, we add an additional term to represent the group-level effect (i.e. effect of all groups together), which is represented by all 1's in the design matrix. This is because the ANOVA test requires a " | ||
+ | |||
+ | {{: | ||
+ | |||
+ | Where B is the ANOVA regression matrix, X is the design matrix, M is our projection matrix, and R is the " | ||
+ | |||
+ | The SPM follows a F-distribution with degrees of freedom rank(X) and I - rank(X). | ||
+ | ==== Random Field Theory ==== | ||
With n samples in our map, it would be sound to estimate the significance with a Bonferroni correction, but we know that spatially similar data points in biomechanics are intrinsically dependent on each other, and thus the Bonferroni assumption of independence between data points would result in a far more conservative than necessary significance. As such, Random Field Theory (rft) is employed to estimate the dependence between data points (called smoothness), | With n samples in our map, it would be sound to estimate the significance with a Bonferroni correction, but we know that spatially similar data points in biomechanics are intrinsically dependent on each other, and thus the Bonferroni assumption of independence between data points would result in a far more conservative than necessary significance. As such, Random Field Theory (rft) is employed to estimate the dependence between data points (called smoothness), | ||
- | ==== Visualizing SPM Results ==== | + | ===== Which test to use ===== |
+ | |||
+ | Choosing your experimental hypothesis is very important, and this should influence the statistical test being undertaken. ANOVA provides us a broad look at all of our data: with the hypothesis that all groups have the same mean, we can easily test IF there is 1 or more groups not following this hypothesis, but we cannot discern which one it is. T-tests on the other hand can specifically tell us if any 2 groups are different, and specifically identify which tests are different. | ||
+ | |||
+ | For many groups, it is recommended to first use an ANOVA test, and if there is statistical differences, | ||
+ | |||
+ | For related groups, it is recommended to use a paired t-test over a two-sample t-test, as it has strictly higher statistical power. | ||
+ | |||
+ | ===== Visualizing SPM Results | ||
Visualizing your SPM results is important, and is broken down in the [[Sift: | Visualizing your SPM results is important, and is broken down in the [[Sift: | ||
Line 36: | Line 64: | ||
* Visualizing the [[Sift: | * Visualizing the [[Sift: | ||
- | ==== Tutorials ==== | + | ===== Tutorials |
For a step-by-step example of how to use Sift to perform SPM on your data, and to interpret the results, see the [[Sift: | For a step-by-step example of how to use Sift to perform SPM on your data, and to interpret the results, see the [[Sift: | ||
- | ==== Reference ==== | + | ===== Reference |
Our implementation of Statistical Parametric Mapping is based articles by Todd Pataky, as well as the ___ textbook on the topic: " | Our implementation of Statistical Parametric Mapping is based articles by Todd Pataky, as well as the ___ textbook on the topic: " |
sift/statistical_parametric_mapping/using_statistical_parametric_mapping_in_biomechanics.1734450432.txt.gz · Last modified: 2024/12/17 15:47 by wikisysop