Skip to content

exp-weighted mean #93

@tpapp

Description

@tpapp

Recently I have been calculating

$$\frac{\sum_i \exp(w_i) \exp(z_i) }{\sum_i \exp(w_i)}$$

forms a lot. They usually come from parametric derivatives of logsumexp, eg

$$\log \sum_i \exp(a_i + z_i y)$$

by $y$. I wonder if it is general enough to have a place in this package.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions