sampling-estimation
/sampling-estimation
Design sampling strategies and compute estimates with confidence intervals using bootstrap, Bayesian, or classical methods. Use when estimating population parameters from sample data.
- Author
- chrisgve ↗
- Repository
- localdata-mcp ↗
- Licence
- Apache-2.0
- Last repository change
- 20.07.2026
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 20.07.2026, without references to retired models or APIs.
Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.
What it does and when to use it
Design sampling strategies and compute estimates with confidence intervals using bootstrap, Bayesian, or classical methods. Use when estimating population parameters from sample data.
Arguments
/sampling-estimation <database-name>
Original author description
Design sampling strategies and compute estimates with confidence intervals using bootstrap, Bayesian, or classical methods. Use when estimating population parameters from sample data.
How it works
- Steps
SKILL.md preview
--- name: sampling-estimation description: Design sampling strategies and compute estimates with confidence intervals using bootstrap, Bayesian, or classical methods. Use when estimating population parameters from sample data. allowed-tools: mcp__localdata__describe_database mcp__localdata__execute_query mcp__localdata__analyze_hypothesis_test mcp__localdata__analyze_effect_sizes mcp__localdata__get_data_quality_report argument-hint: "<database-name>" --- # Sampling and Estimation Design a sampling strategy and compute estimates with proper uncertainty quantification. ## Steps 1. **Understand the estimation goal.** Identify what parameter needs to be estimated (mean, proportion, difference, ratio) and the target population from the user's question. 2. **Profile the data.** Call `describe_database` and `get_data_quality_report` with the database name from `$ARGUMENTS`. Assess available sample size, data completeness, and any stratification variables present in the data. 3. **Assess sample representativeness.** Call `execute_query` to examine the distribution of key demographic or stratification variables. Determine whether the sample is a plausible representation of the target population. Flag potential selection biases. 4. **Compute point estimates.** Call `execute_query` to calculate the sample statistic of interest (mean, proportion, median, etc.) along with summary statistics (n, SD, IQR) needed for confidence interval construction. 5. **Construct confidence intervals.** Based on the data characteristics: - Large sample, normal: use classical parametric intervals - Small sample or skewed: describe bootstrap approach (resample with replacement, compute statistic on each resample, use percentile method for CI) - Proportion near 0 or 1: use Wilson or Clopper-Pearson interval rather than Wald 6. **Compute required sample size.** If the user needs to plan future data collection, calculate the sample size needed for a target margin of error. Report assumptions about expected variability and confidence level. 7. **Report estimates.** Present: - Point estimate with units - Confidence interval (95% default, note level) - Margin of error - Sample size and effective sample size (accounting for missing data) - Method used for interval construction 8. **Discuss limitations.** Address sampling bias, non-response, measurement error, and any extrapolation concerns. Distinguish between the precision of the estimate (narrow CI) and its accuracy (freedom from bias).
Versions
The database has no other skills named sampling-estimation.
Database snapshot: 13.11.2026 · package version 6dad8bb948fc (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100s2-02-sampling-methods
Chooses who is studied and how they are picked using probability, quota or purposive sampling. Use when planning any survey, bot survey or interview study, before sample size is set. - 100np-research-sampling-frame
Review a research sampling plan. Use when a researcher needs to justify who or what is observed. - 90soil-sampling-design
Choose and design a soil sampling scheme for digital soil mapping — where (and when) to sample, how many, and by which method — matched to the objective (feature-space vs spatial coverage, representativeness, local heterogeneity, multiple properties, cost/accessibility,… - 100alterlab-ssci-sampling-gate
Gates who is sampled, how, and how many before data collection — checks that the sampling FRAME matches the target population (coverage error), that the METHOD is named (probability vs non-probability: simple random, stratified, cluster, systematic, quota, convenience,… - 100demographer
Use when a task needs the judgment of a demographer — building a cohort-component population projection, reconciling fertility/mortality rate estimates against ACS or vital-statistics counts, judging whether a population trend is real or sampling/measurement noise, sizing a… - 100pycse
Use when performing regression analysis with confidence intervals, solving ODEs, fitting models to experimental data, or caching expensive scientific computations - provides convenient wrappers around scipy that automatically calculate confidence intervals and prediction bounds…