[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6CZ5N0AVWC7GG5H02GAA1YG":3,"skill-same:01M6CZ5N0AVWC7GG5H02GAA1YG":77},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":25,"linkOnly":26,"markdownContent":27,"markdownBody":28,"frontMatter":29,"refName":30,"commitSha":31,"skillDirectory":32,"forksCount":33,"repositoryHtmlUrl":34,"repositoryHomepageUrl":6,"ownerHtmlUrl":35,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":36,"install":37,"resources":50},"01M6CZ5N0AVWC7GG5H02GAA1YG","stat-bayesian-estimation",null,"Estimate model parameters using Bayesian inference (MCMC via Stan or PyMC), returning posterior distributions and credible intervals.","Scientific-Tooling\u002Fstructured-intelligence","Scientific-Tooling","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F267453265?v=4","01M6CZ1SE6GGD4F67EAQ0PVX38","Scientific Tooling","01M6CZ1SJKCFVGH10Z3A152K02",4,"MIT","https:\u002F\u002Fgithub.com\u002FScientific-Tooling\u002Fstructured-intelligence\u002Fblob\u002Fmain\u002Fskills\u002Fstat-bayesian-estimation\u002FSKILL.md",[],[19,20,21,22,23,24],"estimation","stat bayesian estimation","inference","pymc","model","distributions","2026-11-10 10:12:30",false,"---\nname: stat-bayesian-estimation\ndescription: Estimate model parameters using Bayesian inference (MCMC via Stan or PyMC), returning posterior distributions and credible intervals.\n---\n\n# Skill: Bayesian Parameter Estimation\n\n## Use When\n\n- User wants to estimate parameters with full uncertainty quantification via posterior distributions\n- User wants to incorporate prior knowledge about parameters\n- User needs credible intervals instead of frequentist confidence intervals\n- Use cases: dose-response modeling, population parameter estimation, hierarchical biological models\n\n## Inputs\n\n- Required:\n  - Data table (CSV or TSV) with observed values\n  - Model specification: response variable, predictor variables, model family (`normal`, `poisson`, `binomial`)\n- Optional:\n  - Prior distributions for each parameter (default: weakly informative priors — normal(0, 10) for coefficients)\n  - Number of MCMC chains (default: `4`)\n  - Number of samples per chain (default: `2000`, warmup: `1000`)\n  - Target acceptance rate (default: `0.8`)\n  - Backend: `pymc` (default) or `stan`\n  - Output directory (default: `.\u002Fbayes_output`)\n\n## Workflow\n\n1. Read data; validate response and predictor columns.\n2. Set up Bayesian model with specified family and prior distributions.\n3. Run MCMC sampling with the specified backend (PyMC or Stan).\n4. Check convergence: R-hat statistic (should be \u003C 1.01 for all parameters), effective sample size (ESS > 400).\n5. Extract posterior samples; compute posterior mean, median, standard deviation, and 94% credible interval (HDI) for each parameter.\n6. Generate trace plots (one per parameter) to visually assess convergence.\n7. Generate posterior distribution plots (one per parameter).\n8. Generate posterior predictive check plot (observed vs. simulated data).\n9. Write posterior summary (TSV), trace plots (PDF), and posterior plots (PDF) to output directory.\n10. Report convergence diagnostics; flag any parameters with R-hat ≥ 1.01 or ESS \u003C 400.\n11. Save the executable analysis script (`analysis_code.py` or `analysis_code.R`) and software version manifest (`session_info.txt`) used to produce results.\n\n## Output Contract\n\n- Posterior summary table (TSV): parameter, mean, sd, median, hdi_lower_94, hdi_upper_94, r_hat, ess_bulk, ess_tail\n- Trace plots (PDF)\n- Posterior distribution plots (PDF)\n- Posterior predictive check plot (PDF)\n- Convergence warnings (printed to stdout if any)\n- Reproducibility artifacts: `analysis_code.py` or `analysis_code.R`, plus `session_info.txt`\n\n## Limits\n\n- Requires PyMC or CmdStanPy to be installed; check environment before running.\n- MCMC can be slow for complex models or large datasets; variational inference (ADVI) is faster but approximate.\n- Weakly informative default priors may be inappropriate for constrained parameters (e.g., probabilities must be [0,1]) — specify priors explicitly when needed.\n- R-hat ≥ 1.01 indicates non-convergence; increase warmup or reparameterize model.\n- Common failure: identifiability issues (collinear predictors) causing MCMC to fail to mix.\n","# Skill: Bayesian Parameter Estimation\n\n## Use When\n\n- User wants to estimate parameters with full uncertainty quantification via posterior distributions\n- User wants to incorporate prior knowledge about parameters\n- User needs credible intervals instead of frequentist confidence intervals\n- Use cases: dose-response modeling, population parameter estimation, hierarchical biological models\n\n## Inputs\n\n- Required:\n  - Data table (CSV or TSV) with observed values\n  - Model specification: response variable, predictor variables, model family (`normal`, `poisson`, `binomial`)\n- Optional:\n  - Prior distributions for each parameter (default: weakly informative priors — normal(0, 10) for coefficients)\n  - Number of MCMC chains (default: `4`)\n  - Number of samples per chain (default: `2000`, warmup: `1000`)\n  - Target acceptance rate (default: `0.8`)\n  - Backend: `pymc` (default) or `stan`\n  - Output directory (default: `.\u002Fbayes_output`)\n\n## Workflow\n\n1. Read data; validate response and predictor columns.\n2. Set up Bayesian model with specified family and prior distributions.\n3. Run MCMC sampling with the specified backend (PyMC or Stan).\n4. Check convergence: R-hat statistic (should be \u003C 1.01 for all parameters), effective sample size (ESS > 400).\n5. Extract posterior samples; compute posterior mean, median, standard deviation, and 94% credible interval (HDI) for each parameter.\n6. Generate trace plots (one per parameter) to visually assess convergence.\n7. Generate posterior distribution plots (one per parameter).\n8. Generate posterior predictive check plot (observed vs. simulated data).\n9. Write posterior summary (TSV), trace plots (PDF), and posterior plots (PDF) to output directory.\n10. Report convergence diagnostics; flag any parameters with R-hat ≥ 1.01 or ESS \u003C 400.\n11. Save the executable analysis script (`analysis_code.py` or `analysis_code.R`) and software version manifest (`session_info.txt`) used to produce results.\n\n## Output Contract\n\n- Posterior summary table (TSV): parameter, mean, sd, median, hdi_lower_94, hdi_upper_94, r_hat, ess_bulk, ess_tail\n- Trace plots (PDF)\n- Posterior distribution plots (PDF)\n- Posterior predictive check plot (PDF)\n- Convergence warnings (printed to stdout if any)\n- Reproducibility artifacts: `analysis_code.py` or `analysis_code.R`, plus `session_info.txt`\n\n## Limits\n\n- Requires PyMC or CmdStanPy to be installed; check environment before running.\n- MCMC can be slow for complex models or large datasets; variational inference (ADVI) is faster but approximate.\n- Weakly informative default priors may be inappropriate for constrained parameters (e.g., probabilities must be [0,1]) — specify priors explicitly when needed.\n- R-hat ≥ 1.01 indicates non-convergence; increase warmup or reparameterize model.\n- Common failure: identifiability issues (collinear predictors) causing MCMC to fail to mix.\n",{"name":5,"description":7},"main","5118e7fda890e9aa819cb71e003cd243d3a31970","skills\u002Fstat-bayesian-estimation",1,"https:\u002F\u002Fgithub.com\u002FScientific-Tooling\u002Fstructured-intelligence","https:\u002F\u002Fgithub.com\u002FScientific-Tooling","2026-11-03 00:01:40",{"source":8,"skillName":5,"commands":38,"prompt":48,"zipAvailable":49},[39,42,45],{"tool":40,"command":41},"npx","npx skills add Scientific-Tooling\u002Fstructured-intelligence --skill stat-bayesian-estimation",{"tool":43,"command":44},"bunx","bunx skills add Scientific-Tooling\u002Fstructured-intelligence --skill stat-bayesian-estimation",{"tool":46,"command":47},"pnpm","pnpm dlx skills add Scientific-Tooling\u002Fstructured-intelligence --skill stat-bayesian-estimation","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FScientific-Tooling\u002Fstructured-intelligence\u002Fblob\u002Fmain\u002Fskills\u002Fstat-bayesian-estimation\u002FSKILL.md",true,[51,57,61,65,69,73],{"path":52,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":55,"sourceHtmlUrl":56},"agents\u002Fclaude.yaml","REFERENCE","参考文档",361,"https:\u002F\u002Fgithub.com\u002FScientific-Tooling\u002Fstructured-intelligence\u002Fblob\u002Fmain\u002Fskills\u002Fstat-bayesian-estimation\u002Fagents\u002Fclaude.yaml",{"path":58,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":59,"sourceHtmlUrl":60},"agents\u002Fopenai.yaml",362,"https:\u002F\u002Fgithub.com\u002FScientific-Tooling\u002Fstructured-intelligence\u002Fblob\u002Fmain\u002Fskills\u002Fstat-bayesian-estimation\u002Fagents\u002Fopenai.yaml",{"path":62,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":63,"sourceHtmlUrl":64},"config.yaml",321,"https:\u002F\u002Fgithub.com\u002FScientific-Tooling\u002Fstructured-intelligence\u002Fblob\u002Fmain\u002Fskills\u002Fstat-bayesian-estimation\u002Fconfig.yaml",{"path":66,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":67,"sourceHtmlUrl":68},"references\u002Fapi-reference.md",16947,"https:\u002F\u002Fgithub.com\u002Fbeep-effect\u002Fbeep-effect\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fatom-reactivity-specialist\u002Freferences\u002Fapi-reference.md",{"path":70,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":71,"sourceHtmlUrl":72},"references\u002Fexamples-antipatterns.md",13611,"https:\u002F\u002Fgithub.com\u002Fbeep-effect\u002Fbeep-effect\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fatom-reactivity-specialist\u002Freferences\u002Fexamples-antipatterns.md",{"path":74,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":75,"sourceHtmlUrl":76},"references\u002Fservice-pattern.md",9726,"https:\u002F\u002Fgithub.com\u002Fbeep-effect\u002Fbeep-effect\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fatom-reactivity-specialist\u002Freferences\u002Fservice-pattern.md",[78,101,114,127,141,153],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":25},"01M6CZ6S2C54G03K71G77H22KE","structured-intelligence-skill-creator","Create or update repository skills that conform to local templates, provider metadata requirements, registry rules, and validation workflows.","https:\u002F\u002Fgithub.com\u002FScientific-Tooling\u002Fstructured-intelligence\u002Fblob\u002Fmain\u002Fskills\u002Fstructured-intelligence-skill-creator\u002FSKILL.md",[],[85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100],"structured intelligence skill creator","skill creator","intelligence","structured","create","requirements","workflows","provider","update","registry","local","validation","metadata","repository","templates","Rules",{"skillNo":102,"name":103,"nameZh":6,"description":104,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":25},"01M6CZ6M3JFN400406T1NPWNER","stat-survival-analysis","Estimate and compare survival functions using Kaplan-Meier curves and log-rank test, with optional Cox proportional hazards regression.","https:\u002F\u002Fgithub.com\u002FScientific-Tooling\u002Fstructured-intelligence\u002Fblob\u002Fmain\u002Fskills\u002Fstat-survival-analysis\u002FSKILL.md",[],[108,109,110,111,112,113],"analysis","stat survival analysis","regression","log","functions","test",{"skillNo":115,"name":116,"nameZh":6,"description":117,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":118,"categories":119,"keywords":120,"publishedAt":25},"01M6CZ6G5JPDZASM4DRD9QCTEE","stat-pca","Perform PCA on a numeric data matrix to reduce dimensionality, visualize sample structure, and identify top contributing features.","https:\u002F\u002Fgithub.com\u002FScientific-Tooling\u002Fstructured-intelligence\u002Fblob\u002Fmain\u002Fskills\u002Fstat-pca\u002FSKILL.md",[],[121,122,123,124,125,126],"stat pca","sample","visualize","contributing","data","structure",{"skillNo":128,"name":129,"nameZh":6,"description":130,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":131,"categories":132,"keywords":133,"publishedAt":25},"01M6CZ6D9A3N6849BT9VYFSBK5","stat-pairwise-correlation","Compute pairwise correlations and significance tests across all numeric variables, and produce a correlation heatmap.","https:\u002F\u002Fgithub.com\u002FScientific-Tooling\u002Fstructured-intelligence\u002Fblob\u002Fmain\u002Fskills\u002Fstat-pairwise-correlation\u002FSKILL.md",[],[134,135,136,137,138,139,140],"stat pairwise correlation","correlation","produce","heatmap","compute","across","tests",{"skillNo":142,"name":143,"nameZh":6,"description":144,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":145,"categories":146,"keywords":147,"publishedAt":25},"01M6CZ69DMF1PDKW83RWARQX6D","stat-nonlinear-embedding","Embed high-dimensional data into 2D using t-SNE or UMAP for exploratory visualization of sample or cell relationships.","https:\u002F\u002Fgithub.com\u002FScientific-Tooling\u002Fstructured-intelligence\u002Fblob\u002Fmain\u002Fskills\u002Fstat-nonlinear-embedding\u002FSKILL.md",[],[148,149,125,150,122,151,152],"stat nonlinear embedding","visualization","relationships","cell","exploratory visualization",{"skillNo":154,"name":155,"nameZh":6,"description":156,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":157,"categories":158,"keywords":159,"publishedAt":25},"01M6CZ65YZGJV40F2FZNH04PBS","stat-logistic-regression","Fit a logistic regression model for binary outcomes, report odds ratios and model performance (AUC-ROC, confusion matrix).","https:\u002F\u002Fgithub.com\u002FScientific-Tooling\u002Fstructured-intelligence\u002Fblob\u002Fmain\u002Fskills\u002Fstat-logistic-regression\u002FSKILL.md",[],[110,160,161,23,162,163],"stat logistic regression","report","outcomes","performance"]