combine/combine_subjects only energy-weight; no inverse-variance option across analyses

Open
#204 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
42/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
python
Domain
analytics

Research direction

Start with combine and combine_subjects in the wind_up.analysis module, and with AnalysisSpec.combination, which already implements inverse-variance weighting within a single analysis. Check how the v0 method's group total combines the uncorrelated and fully correlated sigmas, then decide how a combination argument should flow through to the sigma range these functions return. Done means passing the new argument through with tests covering both energy and inverse-variance weighting across separate analyses.

Written by the indexing model from the issue text.

Description

v1

For several turbines measured by separate analyses (one method call each) but reporting on the same change, the usual wanted headline is the inverse-variance-weighted uplift (sigma the mean of the uncorrelated and fully correlated sigmas, as the v0 method's own group total gives) rather than an energy-weighted one, which lets one imprecise turbine move the headline as much as a precise one.

wind_up.analysis.combine/combine_subjects only energy-weight today. AnalysisSpec.combination="inverse_variance" exists but only combines a single analysis's own subjects, so it doesn't help once turbines have to be split across separate analyses for other reasons. combine/combine_subjects also return a sigma range rather than a single sigma.

Suggestion: give combine and combine_subjects a combination argument matching AnalysisSpec.combination.

Dominant language
Python
Stars
29
Forks
13
Avg merge
1d 6h
Merged PRs (30d)
33

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from resgroup/wind-up

All issues in resgroup/wind-up

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.