Answered
Variable length & Stepwise regression
If you copy the contents of your txt-file and paste it into an Excel file, you see that not all numbers are separated by a tab. ...

bijna 10 jaar ago | 0

| accepted

Answered
blp api undefined function or variable R2010a
The error message suggests that you do no possess the Datafeed toolbox. That toolbox is necessary to execute the blp command. Th...

bijna 10 jaar ago | 0

Answered
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....

bijna 10 jaar ago | 0

Answered
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...

bijna 10 jaar ago | 0

Answered
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...

bijna 10 jaar ago | 0

Answered
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'] ...

bijna 10 jaar ago | 0

Answered
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...

bijna 10 jaar ago | 1

| accepted

Answered
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...

bijna 10 jaar ago | 0

| accepted

Answered
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...

bijna 10 jaar ago | 0

| accepted

Answered
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....

bijna 10 jaar ago | 0

| accepted

Answered
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...

bijna 10 jaar ago | 0

| accepted

Answered
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. ...

bijna 10 jaar ago | 0

Answered
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...

bijna 10 jaar ago | 0

Answered
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...

bijna 10 jaar ago | 0

| accepted

Answered
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* .

bijna 10 jaar ago | 0

Answered
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.

bijna 10 jaar ago | 0

| accepted

Answered
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 ....

bijna 10 jaar ago | 1

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

bijna 10 jaar ago | 0

Answered
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 ...

bijna 10 jaar ago | 0

| accepted

Answered
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...

bijna 10 jaar ago | 0

Answered
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....

bijna 10 jaar ago | 0

Answered
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...

bijna 10 jaar ago | 0

| accepted

Answered
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...

bijna 10 jaar ago | 1

Answered
which program is the best to use?
portopt - That's the very function you need!

bijna 10 jaar ago | 0

| accepted

Answered
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...

bijna 10 jaar ago | 0

| accepted

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

ongeveer 10 jaar ago | 0

Answered
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...

ongeveer 10 jaar ago | 0

Answered
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...

ongeveer 10 jaar ago | 0

| accepted

Answered
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...

ongeveer 10 jaar ago | 0

| accepted

Answered
Reshape vector in a loop
for k = 1 : n xx = [k-1, k]; end

ongeveer 10 jaar ago | 0

| accepted

Load more