Sign in Get 3 free credits

Try a job or a niche: tiktok captions, study notes, excel formulas. Press Esc to close.

Astronomy Bayesian statistics

Plans and checks Bayesian inference for astronomy and cosmology, so your fits and detection claims hold up.

What we improved

Added worked, runnable code for the methods the original only named: a censored likelihood for upper limits, a selection corrected hierarchical population likelihood with Monte Carlo effective sample size checks, an emcee run with an autoco

Improved by YourAISkill from the original by K-Dense-AI, under its MIT licence. The download includes the author's licence and a CHANGES.md listing every change. Both Claude reviews read the improved version.

Claude's review

8/10 Expert astrostatistics playbook with correct selection-corrected likelihood, Monte Carlo n_eff checks, look-elsewhere correction, sampler thresholds and censored-data code.

We asked Claude the question you would ask: would I be glad I installed this? Two separate reviews, the second blind to the first, must both rate a skill 7 or higher before we sell it.

In detail

Think and work like an expert Astrostatistician. Use when a task calls for Astrostatistician judgment. Reasons from selection functions, censored flux limits, and look-elsewhere trial factors through Cobaya/emcee/dynesty cosmology, GP-coupled exoplanet inference, Landy–Szalay clustering, photo-z σNMAD calibration, and SBI (sbi/LtU-ILI) while treating Malmquist bias, prior-driven tensions, and detrend-then-fit transit bias as first-class failure modes.

How you use it

  1. Add it to your pack, then download your pack (1 credit).
  2. In Claude, open Customize > Skills and upload the zip. Code execution needs to be on under Settings > Capabilities.
  3. Ask Claude for the job in your own words. It uses the skill when your request matches what it does. Step by step guide

Safety check

Nothing risky found: no hidden instructions, no download and run, no reading of saved passwords or keys.

An automated scan lowers risk but cannot promise zero risk. How we check skills

Preview

The first lines of SKILL.md
---
name: astrostatistician
description: "Plan, run, check and report Bayesian inference in astronomy and cosmology the way an experienced astrostatistician would. Starts from the data-generating process and selection function, then covers censored upper limits, selection-corrected hierarchical population likelihoods (gravitational-wave and exoplanet demographics), look-elsewhere trials factors and global significance, Cobaya/CAMB/CLASS cosmological parameter estimation, emcee, NUTS and nested sampling diagnostics with concrete thresholds, joint GP and transit fits, photo-z sigma_NMAD and outlier metrics, Landy-Szalay clustering and simulation-based inference checks, with short working code for each. Use when designing or reviewing an astronomical inference, debugging a sampler, judging whether a bump or tension is real, or writing up constraints. Treats Malmquist and Eddington bias, prior-driven tensions, harmonic-mean evidences and detrend-then-fit transit bias as failure modes."
license: MIT
metadata:
  author: K-Dense
  version: "1.0.0"
---
<!-- Modified by YourAISkill (youraiskill.com) on 2 December 2026 from the original by K-Dense-AI. See CHANGES.md. -->

# Astrostatistician

Work as an experienced astrostatistician in Bayesian inference for cosmology, survey science and population astronomy. Reason from the data-generating process, the selection function and the search geometry before sampler defaults, and treat hierarchical structure, look-elsewhere inflation, sampler pathology and systematic nuisance parameters as part of the scientific result.

`references/field-notes.md` holds survey-specific practice (Rubin, DESI, TESS, CMB lensing, shear), extra inference patterns, tools and literature. Everything needed for the core method is below.

## First principles

- **The estimand is astronomical.** Ω_c h², w, Σm_ν, σ₈, a merger-rate density or a luminosity-function slope: define it before choosing a sampler.
- **Posterior ∝ likelihood × prior, and the prior matters.** Physical bounds, the parameterisation (log A_s, ln(10¹⁰A_s)) and the width on weakly constrained extensions (w, Σm_ν) can move results. Run prior-predictive and posterior-predictive checks; report when a prior choice moves a headline parameter more than the new data do.
- **Populations are hierarchical by default.** Per-object parameters θ_i are drawn from hyperparameters ψ. Partial pooling beats stacking noisy points or fitting each object alone.
- **Parameter estimation is not model comparison.** Comparing ΛCDM with wCDM, curvature or early dark energy needs a stable Bayesian evidence (nested sampling) or a carefully stated Δχ²_eff, not one chain's marginal.
- **A local 3σ bump in a searched space is not a discovery.** Scanning mass, sky, period or multipole inflates significance; convert local to global significance with a trials factor.
- **Every catalogue is selected.** Flux limits, targeting and quality cuts define a selection function; ignoring it reproduces Malmquist and Eddington bias. Forward-model the detection probability p_det(θ).
- **Upper limits are censored data.** A non-detection contributes the probability that the measurement fell below the limit. Substituting half the limit, or dropping the object, is wrong.
- **Systematics share the error budget.** Calibration, foregrounds, photo-z bias, shear multiplicative bias and baryonic feedback enter as nuisance parameters, emulators or hyperparameters, not as shifts applied after a tight chain.

## Framing a problem

Classify first: cosmological parameter estimation (base ΛCDM: Ω_b h², Ω_c h², θ, τ, n_s, A_s; extensions N_eff, Σm_ν, w, Ω_K, A_L), hierarchical population inference, model comparison, spatial statistics (ξ(r), P(k), C_ℓ with masks), or search significance.

Ask before computing:
- What parameter space was searched (the look-elsewhere volume)?
- Is the likelihood exact, emulated (for example CosmoPower) or simulation-based?
- Are per-event posteriors feeding a hierarchical level, and is their Monte Carlo noise controlled?
- What is the closure test: mocks with known θ, the same noise, mask and selection?

Red herrings: χ² minima without global significance; photo-z point estimates with no n(z) scatter; "R̂ < 1.01" alongside divergences or multimodality; harmonic-mean evidences; detrending a light curve and then fitting the transit when a joint model is needed.

## How you work
...

From K-Dense-AI's repository, MIT licence.

Related skills

  • Checked

    RNA-seq analysis with PyDESeq2

    Runs bulk RNA-seq differential expression in PyDESeq2 with checks and plots, so your results hold up to review.

    by K-Dense-AI 59k
    8/101 credit
  • Checked

    Single cell ATAC analysis

    Takes 10x single cell ATAC data through QC, clustering and peak calling, so you end up with labelled cell types.

    by GPTomics 1.3k
    8/101 credit
  • Checked

    Gene flow detection

    Tests for gene flow between species with Dsuite, TreeMix and ADMIXTOOLS, so your claims hold up to reviewers.

    by GPTomics 1.3k
    9/101 credit
  • Checked

    Single cell RNA seq pipeline

    Runs a full single cell RNA seq analysis in Seurat or Scanpy, so you go from 10x counts to cell types and results.

    by GPTomics 1.3k
    8/101 credit
  • Checked

    Molfeat Molecule Features

    Turns molecules into fingerprints and descriptors for chemistry machine learning, with no misaligned rows.

    by K-Dense-AI 59k
    7/101 credit
  • Checked

    Single Cell Omics Models

    Fits probabilistic single cell models with scvi-tools for batch integration, annotation and multimodal data.

    by K-Dense-AI 59k
    7/101 credit

Secure checkout

Credits

AUD

  1. 1Choose
  2. 2Pay on Square
  3. 3Credits added