Free SKILL.md scraped from GitHub. Clone the repo or copy the file directly into your Claude Code skills directory.
npx versuz@latest install hiyenwong-ai-collection-collection-skills-gtas-generative-spike-train-modelgit clone https://github.com/hiyenwong/ai_collection.gitcp ai_collection/SKILL.MD ~/.claude/skills/hiyenwong-ai-collection-collection-skills-gtas-generative-spike-train-model/SKILL.md--- name: gtas-generative-spike-train-model description: GTaS Generative Spike Train Model --- # GTaS Generative Spike Train Model **Source:** arXiv:1305.4160v1 (May 2013) **Utility:** 0.89 **Authors:** James Trousdale --- ## Description This skill implements the Generalized Thinning and Shift (GTaS) model - a generative model for correlated spike trains that can exhibit diverse temporal correlation structures observed in neural data. Extending prior work in mathematical finance, GTaS creates marginally Poisson spike trains with flexible higher-order correlations. **Core Method:** 1. **Thinning** - Remove spikes probabilistically 2. **Shifting** - Adjust spike times to create correlations 3. **Higher-order correlations** - Time-structured statistical dependencies 4. **Analytical tractability** - Cumulant densities derivable from parameters --- ## Tools Used - `spike_train_data` - Neural spiking recordings - `poisson_process` - Marginal Poisson baseline - `thinning_algorithm` - Probabilistic spike removal - `shift_operation` - Time adjustment - `cumulant_analysis` - Higher-order statistics --- ## Instructions for Agents 1. **Define Poisson baseline** - Set marginal spike rates 2. **Apply thinning** - Remove spikes probabilistically 3. **Apply shift** - Adjust spike times to create correlations 4. **Set correlation structure** - Define temporal correlation patterns 5. **Generate spike trains** - Produce correlated outputs 6. **Compute cumulants** - Analyze higher-order statistics 7. **Validate against data** - Compare with neural recordings --- ## Examples ### Example 1: Correlated Neural Ensemble **User:** 如何生成具有时间相关性的脉冲序列? **Agent:** GTaS 模型流程: 1. **设定 Poisson 基线** - 定义边缘脉冲率 λ 2. **薄化操作** - 概率性移除脉冲 3. **移位操作** - 调整脉冲时间 4. **生成相关性** - 创建时间结构 5. **高阶相关性** - 多神经元统计依赖 **优势:** 分析可解 + 灵活相关性结构 ### Example 2: Network Response Analysis **User:** 如何研究神经网络对结构化输入的响应? **Agent:** GTaS 应用: - **输入模式** - 高度结构化脉冲输入(GTaS 生成) - **网络响应** - 观察动态和功能影响 - **相关性影响** - 分析相关性对网络行为的作用 **研究价值:** 理解相关性对神经动力学的影响 --- ## Activation Keywords - 脉冲序列模型、spike train model - GTaS、generalized thinning and shift - 高阶相关性、higher order correlations - 时间结构相关性、time-structured correlations - 边缘 Poisson、marginally Poisson - 累积量分析、cumulant analysis --- ## Key Concepts ### 1. Thinning Operation **Definition:** Probabilistic removal of spikes from a Poisson process **Purpose:** Control spike rate while maintaining Poisson property ### 2. Shift Operation **Definition:** Adjustment of spike times to create temporal correlations **Purpose:** Introduce structured dependencies across neurons ### 3. Higher-Order Correlations | Order | Statistic | |-------|-----------| | 2nd | Pairwise correlations | | 3rd | Triple correlations | | n-th | n-way dependencies | **GTaS captures all orders analytically** ### 4. Cumulant Densities **Definition:** Statistical moments describing correlation structure **Analytical tractability:** All cumulant densities derivable from model parameters --- ## Mathematical Framework ### GTaS Process ``` 1. Start with Poisson spike trains (rate λ) 2. Thinning: Remove spikes with probability p(t) 3. Shift: Adjust remaining spike times by Δ(t) 4. Result: Correlated spike trains with structure ``` ### Cumulant Derivation **Key property:** n-th order cumulants expressed in terms of thinning and shift parameters **Advantage:** Full statistical characterization without simulation --- ## Results (Paper) | Feature | Capability | |---------|-----------| | Marginal statistics | Poisson preserved ✅ | | Correlation structure | Flexible/diverse ✅ | | Higher-order cumulants | Analytically derivable ✅ | | Network response | Structured input analysis ✅ | --- ## When to Use 1. **Correlated spike generation** - Create realistic neural spike trains 2. **Higher-order analysis** - Study beyond pairwise correlations 3. **Network response studies** - Test structured input effects 4. **Statistical modeling** - Analytically tractable correlations 5. **Neural ensemble dynamics** - Correlation impact analysis --- ## Advantages over Prior Methods | Prior Methods | GTaS | |---------------|------| | Limited correlation structure | ✅ Flexible/diverse | | Simulation-based only | ✅ Analytically tractable | | Pairwise focus | ✅ Higher-order capable | | No cumulant access | ✅ All cumulants derivable | --- ## Relation to Mathematical Finance **Origin:** GTaS extends methods from mathematical finance **Adaptation:** Financial time correlation models → Neural spike trains **Cross-disciplinary:** Mathematical finance tools applicable to neuroscience --- ## Limitations 1. Assumes marginally Poisson baseline 2. Correlation structure design needs expertise 3. Higher-order cumulants computationally intensive for large n 4. Validation requires sufficient neural recordings --- ## Related Skills - `spike-timing-neuronal-assemblies` - Spike timing analysis - `neural-code-dynamics-analysis` - Neural dynamics analysis - `stdp-bernoulli-message-passing` - STDP correlations - `stochastic-synaptic-plasticity` - Stochastic neural modeling