Posts

Metastability and Eye Movements: A Dynamical‑Systems Interpretation

  1. Why metastability is a natural language for gaze behavior The idea that perception, attention, and neural activity evolve through transiently stable states has deep roots in cognitive science and neuroscience. Concepts such as attractors , basins , noise‑induced transitions , and escape times appear in work on perceptual switching, decision‑making, and neural population dynamics (Kelso, 1995; Rabinovich et al., 2008; Deco & Jirsa, 2012). Eye movements, especially the alternation between fixations and saccades ,   fit remarkably well into this metastable picture. The Freidlin–Wentzell theory of rare events (Freidlin & Wentzell, 2012) provides a rigorous mathematical language for these intuitions. 2. Fixations as metastable states  Consider the gaze position X t as the state of a stochastic dynamical system. During a fixation the  gaze remains confined to a small region, microsaccades and noise generate small fluctuations, and the gaze tends to return...

The confidence interval of variance and standard deviation

  In statistics, a confidence interval (CI) is a range of values that is likely to contain the true value of a parameter with a certain level of confidence. For example, a 95% CI means that 95% of the time, the true value of the parameter will fall within the interval.   One of the parameters that we often want to estimate is the variance or the standard deviation of a population. The variance measures how spread out the data are around the mean, and the standard deviation is the square root of the variance. Both are useful indicators of variability and dispersion in a data set.   However, in most cases, we do not have access to the entire population, but only to a sample. Therefore, we need to use sample statistics to estimate the population parameters. The sample variance and the sample standard deviation are calculated as follows:   s$^{2}$ =  (1/(n-1)) * sum((x$_i$ - m)$^{2}$)  for i = 1 to n   s = sqrt(s$^{2}$)   where n i...

R function ci_sigma

The function  ci_sigma  evaluates the  confidence interval of variance and standard deviation   for populations that are approximately normal.   ci_sigm a   takes two arguments: x : a vector of data. alpha : significance level (default = 0.05). The function checks if the input data is approximately normal using the Shapiro-Francia test from the  nortest  package. If the hypothesis of normality is not satisfied at the given significance level, it suggests trying a log-transformation and performs the Shapiro-Francia test again. If the hypothesis of normality is satisfied, it calculates critical values from the chi-squared distribution and uses them to calculate confidence intervals for both variance and standard deviation. The function returns a list containing five elements: VAR : variance of input data. SD : standard deviation of input data. CI.VAR : confidence interval for variance. CI.SD : ...

How to extract data from a PDF file in R

Image
PDF files are widely used to share documents that preserve the original formatting and layout. However, extracting data from a pdf file can be challenging, especially if the file contains tables, images, or complex layouts. This blog post will show you how to use R to extract data from a pdf file and convert it into a data frame or a tibble.   There are several R packages that can help us with this task, such as pdftools , tabulizer , and magick . We will use pdftools as an example, but you can also explore other options. pdftools is a package that provides various tools to manipulate and analyze pdf files in R. You can install it from CRAN using the following command:   install.packages("pdftools") To extract data from a pdf file, we need to first read the file into R using the pdf_text() function. This function returns a character vector of length equal to the number of pages in the pdf file. Each element of the vector contains the text of one page. For example, let...

Clustered standard error

In this blog post, we will explore what  clustered standard errors  are, why they are important, and how to use them in regression analysis.  In a  previous post , we introduced the topic of clustered data .     We have seen that: - Clustered data is a type of data that has a natural grouping or structure, such as geographical regions, customer segments, or product categories. - Clustered data can be analyzed using various techniques, such as cluster analysis, hierarchical modeling, or mixed effects models. - Clustered data can provide insights into the similarities and differences among the groups, as well as the relationships between the variables within and across the groups. - Clustered data can also pose some challenges for statistical inference, such as violating the assumption of independence, increasing the variability of estimates, or introducing bias or confounding factors . - Clustered data requires careful consideration of the research question...

Clustered data

Introduction Clustered data is a type of data that has a natural grouping or structure, such that the observations within each group are more similar to each other than to those in other groups. Clustered data can arise in various contexts, such as longitudinal studies, multilevel models, spatial analysis, social networks, and genetics. Clustered data poses some challenges for statistical analysis, as the standard methods that assume independence and homogeneity of the observations may not be appropriate or efficient. Therefore, specialized techniques have been developed to account for the clustering effect and to model the variability and correlation within and between the groups. Some examples of these techniques are mixed-effects models , generalized estimating equations , cluster analysis , and random effects meta-analysis. A nested structure  Clustering refers to the grouping of subjects into different groups (or clusters), with at least some of the groups containing multip...

Popular posts from this blog

Diagnosing Singular Fits in Linear Mixed Models: Practical Examples, Code, and Alternatives

Understanding Anaerobic Threshold (VT2) and VO2 Max in Endurance Training

Unit Root Testing in Practice: A Tutorial on ADF–KPSS, Specification, and Diagnostics