Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add trend number to parameter calculation #45

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

fnands
Copy link

@fnands fnands commented Apr 6, 2022

Hi,

Unless I'm mistaken sigma is the residual standard deviation, so the denominator should be the d.o.f. i.e. sample_size - number_params which in this case will be 2 * k + 1 if there is no trend or 2 * k + 2 if there is a trend.

It seems it was hardcoded to the case where there is a trend, so this should fix it.

I am unsure about the futhark implementation: it seems to into account the fact that there are fewer parameters when not calculating a trend, but frankly it's greek to me so I am unsure if it's actually being used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant