python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
How to calculate the covariance matrix for the log return series, using both the returns and returns squared
The example data is provided below.
data <- data.frame(normal_return = c(0.02012, 0.03488, 0.00418, 0.01780, 0.00563, -0.00187),
log_return = c(0.01992, 0.03429, 0.00418, 0.01764...
kris
Votes: 0
Answers: 1
How to plot a covariance matrix on a 2D plot in MATLAB?
In MATLAB there is a function called cov. If I insert a matrix X into cov like this cov(X), then cov will return a square matrix of covariance.
My question is very simple:
How can I, with MATLAB, plot...
euraad
Votes: 0
Answers: 1
Is it possible to have an interface for Java arrays?
Let's say we want to have a method in an interface that returns an array, like this:
interface A {
B[] findAllB();
}
But arrays are very low-level and implemented definitively. Their implementati...

SMMH
Votes: 0
Answers: 5
Is expression evaluated differently in watch window to in the code execution
I have the following code which will check if a List<int> is compatible with type IEnumerable<object>. Covariance does not apply to value types, so this expression should evaluate to false...
RiddleMeThis
Votes: 0
Answers: 0