⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 histon.m

📁 动态时间序列分析工具包.包括有ARMA,harmonic model,kalman filter等方法
💻 M
字号:
function beraj= histon0(x, nbar, Title)
% HISTON  Histogram over Normal distribution and normality test
%
% beraj=histon(x,nbar,title)
%
% x: Time series (*)
% nbar: Number of bins for histogram (sqrt(length(x)))
% title: Plot title (none)
%
% beraj: Bera-Jarque statistic and P value

% Copyright (c) 2006 by CRES, Lancaster University, United Kingdom
% Authors : Peter Young, Wlodek Tych, Diego Pedregal, James Taylor

% A histogram of the time series is plotted and the normal 
% theoretical distribution with the same mean and variance is 
% superimposed. This allows for a visual inspection of the 
% distribution of the variable. A formal statistical test, the Bera-
% Jarque test, is also shown, together with its probability value.
% The time series vector y (column) is the only compulsory input 
% to this function. The number of bars to plot in the histogram may 
% be selected by nbar, and Title produces a title in the figure.
% The output is the value of the Bera-Jarque statistic and its 
% probability value.

if nargin==0
  disp(' ')
  disp(' HISTON  Histogram over Normal distribution and normality test')
  disp(' ')
  disp(' beraj=histon(x,nbar,title)')
  disp(' ')
  return
end

if nargin<1, x=[]; end
if nargin<2, nbar=[]; end
if nargin<3, Title=[]; end

beraj=histon0(x, nbar, Title)

% end of m-file

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -