Skip to content

Add trend number to parameter calculation#45

Open
fnands wants to merge 1 commit intodiku-dk:masterfrom
fnands:FixSigma
Open

Add trend number to parameter calculation#45
fnands wants to merge 1 commit intodiku-dk:masterfrom
fnands:FixSigma

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