Skip to content

cost function of normal mean #4

@JinnyCC

Description

@JinnyCC

I am writing to ask about the cost function of your change point detection algorithm. I compared the performance of the pelt function of changepy and cpt function of changepoint in R. Using pelt(normalmean(mydata, var), len(mydata)) and cpt.mean(tmp_data,penalty = "SIC",method="PELT") and find they has different result. Taking a closer look of the code I find there are difference between the cost function of mean.norm in changepoint package and normal_mean in changepy. The cost function of normal_mean requires a external input of variance which I think is just the variance of the whole data. This variance act like a constant to be divided each time the cost is computed, which is the point I don't understand. Shouldn't the the variance computed separately for different segment position as designed in the changepoint package in R. I am not sure whether this is the cause of the difference in result and that's why I write to ask you about it. Could you provide any insight regarding this part?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions