Cargando…
fitgrid: A Python package for multi-channel event-related time series regression modeling
Electrical brain activity related to external stimulation and internal mental events can be measured at the scalp as tiny time-varying electric potential waveforms (electroencephalogram; EEG), typically a few tens of microvolts peak to peak (Berger, 1930). Even tinier brain responses, too small to b...
Autores principales: | , |
---|---|
Formato: | Online Artículo Texto |
Lenguaje: | English |
Publicado: |
2021
|
Materias: | |
Acceso en línea: | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC9615366/ https://www.ncbi.nlm.nih.gov/pubmed/36310543 http://dx.doi.org/10.21105/joss.03293 |
_version_ | 1784820406866149376 |
---|---|
author | Urbach, Thomas P. Portnoy, Andrey S. |
author_facet | Urbach, Thomas P. Portnoy, Andrey S. |
author_sort | Urbach, Thomas P. |
collection | PubMed |
description | Electrical brain activity related to external stimulation and internal mental events can be measured at the scalp as tiny time-varying electric potential waveforms (electroencephalogram; EEG), typically a few tens of microvolts peak to peak (Berger, 1930). Even tinier brain responses, too small to be seen by naked eye in the EEG, can be detected by repeating the stimulation, aligning the EEG recordings to the triggering event and averaging them at each time point (Dawson, 1951, 1954). Under assumptions that the brain response (signal) is the same in each recording and the ongoing background EEG (noise) varies randomly, averaging improves the estimate of the “true” brain response at each time point as the random variation cancels. The average event-related brain potential (ERP) and its counterpart for event-related magnetic fields (ERFs) are cornerstones of experimental brain research in human sensation, perception, and cognition (Luck & Kappenman, 2013). Smith and Kutas pointed out that the average ERP at each time t is mathematically identical to the estimated constant [Formula: see text] for the regression model y(t) = β(0)(t) + ε(t), fit by minimizing squared error (Smith & Kutas, 2015a). The average ERP can be viewed as a time series of model parameter estimates. Generalizing to more complex models such as multiple regression y = β(0) + β(1)X(1) + … + β(p)X(p) + ε, likewise produces time series of estimates for the constant and each regressor coefficient, the [Formula: see text] dubbed regression ERP (rERP) waveforms (see Smith & Kutas, 2015a, 2015b for discussion of related approaches). This holds for straight-line fits (“slope” rERPs) as well as models of curvilinear relationships such as spline regression (Smith & Kutas, 2015b). Besides the estimated coefficient rERPs, the approach also produces time series for all the basic and derived quantities of the fitted model: coefficient standard errors, residuals, likelihood, Akaike information criterion (AIC), and so forth. With the shift from averaging to regression modeling, however, comes a new problem: fitting, diagnosing, comparing, evaluating and interpreting large numbers of regression models. |
format | Online Article Text |
id | pubmed-9615366 |
institution | National Center for Biotechnology Information |
language | English |
publishDate | 2021 |
record_format | MEDLINE/PubMed |
spelling | pubmed-96153662022-10-28 fitgrid: A Python package for multi-channel event-related time series regression modeling Urbach, Thomas P. Portnoy, Andrey S. J Open Source Softw Article Electrical brain activity related to external stimulation and internal mental events can be measured at the scalp as tiny time-varying electric potential waveforms (electroencephalogram; EEG), typically a few tens of microvolts peak to peak (Berger, 1930). Even tinier brain responses, too small to be seen by naked eye in the EEG, can be detected by repeating the stimulation, aligning the EEG recordings to the triggering event and averaging them at each time point (Dawson, 1951, 1954). Under assumptions that the brain response (signal) is the same in each recording and the ongoing background EEG (noise) varies randomly, averaging improves the estimate of the “true” brain response at each time point as the random variation cancels. The average event-related brain potential (ERP) and its counterpart for event-related magnetic fields (ERFs) are cornerstones of experimental brain research in human sensation, perception, and cognition (Luck & Kappenman, 2013). Smith and Kutas pointed out that the average ERP at each time t is mathematically identical to the estimated constant [Formula: see text] for the regression model y(t) = β(0)(t) + ε(t), fit by minimizing squared error (Smith & Kutas, 2015a). The average ERP can be viewed as a time series of model parameter estimates. Generalizing to more complex models such as multiple regression y = β(0) + β(1)X(1) + … + β(p)X(p) + ε, likewise produces time series of estimates for the constant and each regressor coefficient, the [Formula: see text] dubbed regression ERP (rERP) waveforms (see Smith & Kutas, 2015a, 2015b for discussion of related approaches). This holds for straight-line fits (“slope” rERPs) as well as models of curvilinear relationships such as spline regression (Smith & Kutas, 2015b). Besides the estimated coefficient rERPs, the approach also produces time series for all the basic and derived quantities of the fitted model: coefficient standard errors, residuals, likelihood, Akaike information criterion (AIC), and so forth. With the shift from averaging to regression modeling, however, comes a new problem: fitting, diagnosing, comparing, evaluating and interpreting large numbers of regression models. 2021 2021-07-19 /pmc/articles/PMC9615366/ /pubmed/36310543 http://dx.doi.org/10.21105/joss.03293 Text en https://creativecommons.org/licenses/by/4.0/Authors of papers retain copyright and release the work under a Creative Commons Attribution 4.0 International License (CC BY 4.0). |
spellingShingle | Article Urbach, Thomas P. Portnoy, Andrey S. fitgrid: A Python package for multi-channel event-related time series regression modeling |
title | fitgrid: A Python package for multi-channel event-related time series regression modeling |
title_full | fitgrid: A Python package for multi-channel event-related time series regression modeling |
title_fullStr | fitgrid: A Python package for multi-channel event-related time series regression modeling |
title_full_unstemmed | fitgrid: A Python package for multi-channel event-related time series regression modeling |
title_short | fitgrid: A Python package for multi-channel event-related time series regression modeling |
title_sort | fitgrid: a python package for multi-channel event-related time series regression modeling |
topic | Article |
url | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC9615366/ https://www.ncbi.nlm.nih.gov/pubmed/36310543 http://dx.doi.org/10.21105/joss.03293 |
work_keys_str_mv | AT urbachthomasp fitgridapythonpackageformultichanneleventrelatedtimeseriesregressionmodeling AT portnoyandreys fitgridapythonpackageformultichanneleventrelatedtimeseriesregressionmodeling |