facebook / facebook/prophet

calculation of beta coefficients of extra regressors

Open
#2,076 1 comment 0 reactions 0 assignees View on GitHub
question
Dominant language
Python
Stars
20.4k
Forks
4.6k
Avg merge
19h 52m
Merged PRs (30d)
1

Description

Hello,

I am going through the code for prophet to understand how the beta coefficients are calculated for extra regressors and in the below part of the code, could you please elaborate on how all the pieces come together in finding the coefficients please? I have gone through what each and every parameter here means but having a bit of a hard time piecing them together.

`model {
//priors
k ~ normal(0, 5);
m ~ normal(0, 5);
delta ~ double_exponential(0, tau);
sigma_obs ~ normal(0, 0.5);
beta ~ normal(0, sigmas);

// Likelihood
y ~ normal(
trend
.* (1 + X * (beta .* s_m))
+ X * (beta .* s_a),
sigma_obs
);`

Looking forward to your answer!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.