回答済み
stepwise regression: Undefined function ' stepwiselm' for input arguments of type 'cell'.
I recommend using a dataset for your problem. A = dataset('File','excercise-data333.txt'); A dataset is a kind of table....

11年以上 前 | 0

回答済み
how to do vector autoregresion?
If you possess the Econometrics toolbox then the main function is *vgxvarx* . There is extensive documention in Matlab help abou...

11年以上 前 | 0

回答済み
How to specify limits for lsqnonlin
I am afraid you cannot order the optimizing function to search for a real solution. If you want a real solution you have to mak...

11年以上 前 | 0

回答済み
How to save images using for loop?
The function imwrite does exactly what you told it to do. The problem is that ['E:\Aneurysms\Images\names(i)_seg','.tif'] ...

11年以上 前 | 0

回答済み
arima estimate error with garch
The error message is a bit misleading. You did specify Q = 1. I have no idea why the error occurs but I have also received it in...

11年以上 前 | 1

| 採用済み

回答済み
add column to matrix that allows to identify series
If you want to combine numbers and texts in a matrix you have to create a cell matrix, a dataset or a table. However, I am not s...

11年以上 前 | 0

| 採用済み

回答済み
How to assess adequacy of fitted GARCH model?
When you fit an ARIMA model to a time series the residuals should exhibit no heteroscedasticity. If they do you fit an ARIMA/GAR...

11年以上 前 | 0

| 採用済み

回答済み
Backtesting simple moving average trading strategy
Indeed, your code could be the reason that you don't get any buy signal. Try the following: SIGNALS.buy = (SMA.sma4 >= SMA....

11年以上 前 | 0

| 採用済み

回答済み
Estimator standard errors using fmincon (portfolio optimization context)
The key to the standard errors is the Hessian matrix. The variance-covariance-matrix of the coefficients is the inverse of the H...

11年以上 前 | 0

| 採用済み

回答済み
Nonlinear Regression with ARMA Errors
No, Matlab can only do linear regression with ARMA errors. Sometimes you can transform a non-linear equation into a linear one. ...

11年以上 前 | 0

回答済み
Using crosscorr for comparing two time series with different measurements
It is possible to use the function crosscorr. In your case, however, I would not compare the original time series because they d...

11年以上 前 | 0

回答済み
Fitting a function of the form x-a for unknown a
Yes, you're looking for an optimization, and I can assure you that it is not a fair amount of work. However it won't work with t...

11年以上 前 | 0

| 採用済み

回答済み
How can I calculate serial correlations?
I recommend the function *autocorr* , but you need the Econometrics toolbox for that. The alternative is the function *corr* .

11年以上 前 | 0

回答済み
How to simulate ARIMA from residuals?
You can't do that. It is not possible to infer Y from the residuals. Why do want to do that? You already have Y.

11年以上 前 | 0

| 採用済み

回答済み
How to find a 2 π periodic solution?
Why don't you take a pen and a pencil and solve the equation analytically? In fact it is quite easy ....

11年以上 前 | 1

回答済み
matrix starting index from zero
You cannot do that. The first element is a(1,1) and there's no way to change that.

11年以上 前 | 0

回答済み
plotResiduals looks for multivariant outliers or?
No. In the example they look for outliers in the residuals, not for outliers in the inedpendent variables. That means they look ...

11年以上 前 | 0

| 採用済み

回答済み
How to remove linear trend from a time series?
Use the matlab function detrend. Or do it yourself. Estimate the linear trend with a linear regression. The residuals of the...

11年以上 前 | 0

回答済み
how to write this data in text file?
Use the function csvwrite: csvwrite(filename,Matrix) Or consider saving the matrix in a mat-file using the command save....

11年以上 前 | 0

回答済み
Backtesting portfolio asset allocation
Assume that each column in the matrix _Prices_ contains the time series of one your asset classes. Then calculate first the retu...

11年以上 前 | 0

| 採用済み

回答済み
Wie kann ich Figures in einem PDF Report speichern?
Erzeuge zuerst die Struktur opt: opt = struct; opt.format = 'pdf'; opt.outputDir = pwd; opt.evalCode = true; op...

11年以上 前 | 1

回答済み
which program is the best to use?
portopt - That's the very function you need!

11年以上 前 | 0

| 採用済み

回答済み
Why is my armax model converging to 0?
I think your expectations are too high. I doubt that an arma model is the appropriate model for a time series such as the one yo...

11年以上 前 | 0

| 採用済み

回答済み
Multilinear Regression using regstats
Use the function as follows: stat = regstats(Y, X); Ommit the third and forth arguments. Especially the last. The functi...

11年以上 前 | 0

回答済み
How can I download the bloomberg the goverment curve member?
You can download anything from Bloomberg as long as you know the ticker and the field name. If you do, just consult the Matlab h...

11年以上 前 | 0

回答済み
Efficient portfolios constraints, how can I add a particular constraint ?
The first constraint is easy to implement. ConSet = protcons('PortValue', 1, NumAssets, 'AssetLims', -1, AssetMax) wh...

11年以上 前 | 0

| 採用済み

回答済み
0 and -inf in the residuals inferred from a ARIMA model
For an EGARCH(1,1) model the ARCH and GARCH coefficients are expected to be positive. In your case they are not. That is why you...

11年以上 前 | 0

| 採用済み

回答済み
Reshape vector in a loop
for k = 1 : n xx = [k-1, k]; end

11年以上 前 | 0

| 採用済み

回答済み
How does this Nelson-Siegel functionwork?
The Nelson-Siegel function is non-linear. However, if you know the value of tau, then it is possible to estimate the betas with ...

11年以上 前 | 0

回答済み
Linear Model final formula
In your example above x1 was a column vector. All you have to do is call the function with a matrix x that contains all the x va...

11年以上 前 | 0

さらに読み込む