Could Stock prices build its own precisely trend model?

Since stock prices are the time series data, you might think the time series models are the good models for them., such as ARIMA model, GARCH model, etc. It seems really good, but the data can not satisfy with the assumptions of the models. We need to back the origin of model building.

The regression analysis is to seek finding the linear relationship of the dependent variable and the independent variables. For the time series data, the characteristic is “time”! There are rarely researches are willing to discuss this kind of model where there is a time variable as an independent variable. Researchers considered this kind of model does not have any sense for researches. This is really a pity!

So, I back to the origin of linear regression model and rethink that:

  • Do not put all data to fit model, but choose the optimal sample size to fit.
  • From the start of data period, given five samples to fit. Add additional one sample to fit model. Compare which one has the higher precision, and the samples become a group.

Now, I can share you my examples.

A new simulator for Durban-Watson test

It’s awesome to find sampling distribution of Durban-Watson test statistic that is not reveal any sampling distribution before. So it has been very doubt to me for a long time.

Yes. Many factors affect Durban-Watson test statistic simultaneously. That’s why the inconclusive exists. The website shows how factors affect sampling distribution of Durban-Watson test statistic, respectively.

But the outcomes of that website are from a software for Durban-Watson test. It’s amazing that the developers release the software to be used by students, scholars, researchers, and so on.

They also offer the source code of the software including how to run five multithreading.

Back to the software, it is based on the simulator of probability distribution. Then the software can get the sampling distribution by running 100 million times to generate T samples per time.

Another great function is that the user can set parameters by himself or herself. Parameters include sample size number (T), autocorrelation coefficient (tho), lags of errors. They provide four models to satisfy the needs of the users. Model II has to add additional parameter of Y bar(sample mean of Y). Model III and Model IV need the values of independent variable(s). There is a folder, named “independent”, to save the values of independent variable(s).

This is a flexible software for users to run sampling distribution and get the critical values. Users can try any setting of parameters and then compare the sampling distribution or test the serial correlation. They will not be limited in the test of whether autocorrelation is zero or not, but try the test for any value of autocorrelation coefficient.

Download website: https://tinyurl.com/dwtestsoftware.

Video to display features: https://youtu.be/BLGMxQC8a3M

probabilistic model for YOY of Taiwan consumer price index

Dow you want to know the probabilistic model for YOY of Taiwan consumer price index?

I downloaded data from Taiwan macroeconomic database on the website of the Directorate General of Budget, Accounting and Statistics (DGBAS) of Executive Yuan. Then run the modeling software to find the probabilistic model of YOY of Taiwan CPI.

Data period: 1981/01 ~2021/02

Frequency of data: monthly data

Result: Gumbel, type I, distribution

Parameters: a=0.67, b=1.610871

Software source: http://tinyurl.com/goodnessoffit

Property of software: free portable software to test 45 probability distributions for data.

More functions can be found in the book entitled “#統計學不能做為大數據分析的工具.”

Video of running software: https://youtu.be/DTaQses8qEo

迴歸模型不得不注意的三兩事 (上篇)

迴歸分析是統計學中很常被使用,也是很重要的分析方法。迴歸分析可以找出數據的直線趨勢,在最小誤差下確認趨勢方向。這真的是很棒的分析工具,也是想要學習分析技術的朋友們不能錯過的分析方法。既然如此重要且有用,應能廣泛被使用,還能解決問題,但真是如此嗎?

繼續閱讀「迴歸模型不得不注意的三兩事 (上篇)」
使用 WordPress.com 設計專業網站
立即開始使用