Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possibility to speed up the computation of F-scores of rank 1 for the Wild Bootstrap #109

Open
BryanGuillaume opened this issue May 20, 2019 · 1 comment
Assignees

Comments

@BryanGuillaume
Copy link
Collaborator

BryanGuillaume commented May 20, 2019

In the most recents versions of swe_cp_wb, all F-scores are computed using a for loop over all voxels. This seems needed for F-contrasts of rank > 1 because we need to use the right-matrix division (/) at every voxel to compute the scores (and I do not know how we could vectorise this operation). However, this can be avoided when the F-contrast is a vector as the matrix at the right of the right-matrix division is a scalar. In this case, we can remove the for-loop over all voxels and use right-array division (./) to compute the scores. This strategy is currently used for computing the T-scores and was also used in older versions of swe_cp_wb for F-contrast of rank 1 (by computing the t-scores and then squaring them).

@nicholst
Copy link
Collaborator

I'm all for this, as good practice should be convincing more people to use two-sided tests, and hence F-tests for 1-DF contrasts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants