mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-29 12:43:48 +00:00
* Add Statistics Menu * Add Granger Causality test * Apply Black formatting * Add Cointegration Tests * Adjust plotting for Cointegration test * Add Significant parameter to Cointegration tests * Move regression functions to seperate .py files * Progress on Panel Data * A lot of progress for Panel Data * Make functions robust and improve documentation * Re-enable Breusch-Godfrey * Add modify functionality * Improve modify functionality * Add Breusch-Pagan heteroscedasticity test * Capitalize a word * Include documentatin for the Statistics Menu * Update _index.md * Update _index.md * Update _index.md * Fix export statements and add Example datasets * Update example with Longley's dataset * Update documentation with a legit source * Compare the results from each regression models based on the wage_panel dataset * Updated with all relevant types of regression tables * Update with all relevant regression types for Panel data * Update _index.md * Add change column type, improve OLS, add time and entity effects for FE * Update documentation and fix a small bug * Add in Statistics menu, replacing Custom menu * Remove custom menu * Add in documentation * Add in gst files * Cointegration can be used on any amount of columns * Add Tests * Make tests time invariant * Update Poetry and Requirements * Change name of Statistics menu to Econometrics menu * Rename scripts * Add type in Documentation * Change names from Statistics to Econometrics * Add graph * Update tests with rounding and naming * Make minor adjustments to fix the tests * Updating tests : allow extra args for capture * Apply recorder formatting * Adding some minor formatting * Fix error with MyPy * Attempt to fix MyPy annoyance * super small style things * Fix small bugs and add plot command to dwat * Small description mistake * Update documentation with missing argument * Update styling * Add error handling and add improve show functionality * Fix merge issue * Allow import from custom_imports Co-authored-by: Jeroen Bouma <jeroenbouma@MacBook-Pro-van-Jeroen.local> Co-authored-by: jmaslek <jmaslek11@gmail.com> Co-authored-by: Chavithra PARANA <chavithra@gmail.com>
2.8 KiB
Vendored
2.8 KiB
Vendored
usage: dwat [-h] [--export {csv,json,xlsx}]
Show autocorrelation tests from Durbin-Watson
The Durbin Watson (DW) statistic is a test for autocorrelation in the residuals from a statistical model or regression analysis. The Durbin-Watson statistic will always have a value ranging between 0 and 4. A value of 2.0 indicates there is no autocorrelation detected in the sample. Values from 0 to less than 2 point to positive autocorrelation and values from 2 to 4 means negative autocorrelation. [Source: Investopedia]
optional arguments:
-h, --help show this help message (default: False)
--export {csv,json,xlsx}
Export raw data into csv, json, xlsx (default: )
Example:
2022 Feb 24, 05:44 (✨) /econometrics/ $ ols return-msft adj_close-aapl
OLS Regression Results
==============================================================================
Dep. Variable: return_msft R-squared: 0.000
Model: OLS Adj. R-squared: -0.001
Method: Least Squares F-statistic: 0.3005
Date: Thu, 24 Feb 2022 Prob (F-statistic): 0.584
Time: 11:45:00 Log-Likelihood: 2010.0
No. Observations: 759 AIC: -4016.
Df Residuals: 757 BIC: -4007.
Df Model: 1
Covariance Type: nonrobust
==================================================================================
coef std err t P>|t| [0.025 0.975]
----------------------------------------------------------------------------------
Intercept 0.0023 0.002 1.392 0.164 -0.001 0.006
adj_close_aapl -8.34e-06 1.52e-05 -0.548 0.584 -3.82e-05 2.15e-05
==============================================================================
Omnibus: 75.797 Durbin-Watson: 2.141
Prob(Omnibus): 0.000 Jarque-Bera (JB): 339.963
Skew: -0.329 Prob(JB): 1.51e-74
Kurtosis: 6.212 Cond. No. 290.
==============================================================================
Notes:
[1] Standard Errors assume that the covariance matrix of the errors is correctly specified.
2022 Feb 24, 05:45 (✨) /econometrics/ $ dwat
The result 2.14 is within the range 1.5 and 2.5 which therefore indicates autocorrelation not to be problematic.