Réponse apportée
How can I simulate data from two different distribution using Copulas?
The question is a little confusing because the U values are from 0 to 1 but the Q values aren't. Q(1,:) looks like a gamma but ...

plus de 6 ans il y a | 0

Réponse apportée
seed for Monte Carlo
It sounds like you would be better off not to set the seed at all--just use MATLAB's default seed, which is different every time...

plus de 6 ans il y a | 0

Réponse apportée
Running repeated anova on all elements of large matrix
If you really just want the F value, you can probably get it much faster by looking up the formulas for the one-factor within-Ss...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
Generate column of random numbers that change slowly from row to row
You might generate the random points as you have but then smooth them with the smooth or filter function, e.g., sprob = zeros(s...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
What the two columns represnt when i generate a multivarite normal random numbers
The two columns represent the two variables measured for each case, and the N rows represent the N randomly selected cases from ...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
Fitting a non-linear model to my data
Take logs and use multiple regression. That is, fit the model log(y) = a log(x1) + b log(x2) etc This will give you the best ...

plus de 6 ans il y a | 1

| A accepté

Réponse apportée
Integrating a t-test into a function how-to
Put in a breakpoint at the ttest2 line and check the inputs x and y that you are passing. These must not be what ttest2 expects...

plus de 6 ans il y a | 0

Réponse apportée
Fit Gaussian mixture model with weighted observations
It's not exactly clear (to me either) what it means to weight the different observations in this context, but maybe you have som...

plus de 6 ans il y a | 0

Réponse apportée
Convolution of two different pdf (uniform and normal distribution)
The Cupid toolbox will do this. For example, u = Uniform(0,100); n = Normal(100,10); % 2nd parameter is sigma, not sigma^2 c...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
Within- & between-subjects in 'anovan'
I also found the lack of between/within terminology a bit daunting. With respect to your first question, here is an example tha...

plus de 6 ans il y a | 4

| A accepté

Question


any trick to stop fminsearch early?
I am using fminsearch to minimize an error score in fitting a model to many, many data sets. Often, the error score gets close ...

plus de 6 ans il y a | 2 réponses | 0

2

réponses

Réponse apportée
How can I introduce a known autocovariance to a lognormal process
You should be able to do it by generating your sequence one element at a time, if you can't find a canned routine that will do i...

plus de 6 ans il y a | 0

Réponse apportée
How to calculate the conditional proabability?
Crude, but maybe illustrative: all=readtable('RainTampa.txt','headerlines',31) nonzeroVar2 = all(all.Var2~=0,:); nonzeroVar2a...

plus de 6 ans il y a | 0

Réponse apportée
How to find the maximum of a normalized fit of a histogram
Try this: dist = Histogram(2) maxnorm = max(dist.YData); line([min(dist.XData) max(dist.XData)], [maxnorm maxnorm], 'LineWidt...

plus de 6 ans il y a | 0

Réponse apportée
Extreme Value Distribution y-axis not same with Histogram
histogram(total,'normalization','pdf');

plus de 6 ans il y a | 0

Réponse apportée
Multiple univariate or multivariate analysis?
No, that's probably not the right way to go. The problem with this approach is that you have a 5% chance of making a type 1 err...

plus de 6 ans il y a | 0

Réponse apportée
How to calculate the P-value using chi-square and degrees of freedom
p = 1 - chi2cdf(x,df)

plus de 6 ans il y a | 0

Réponse apportée
Is there a way to do a multi normal distribution fitting in Matlab?
The sigma isn't really off. GMModel.Sigma is variance = sigma^2

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
Is there a way to do a multi normal distribution fitting in Matlab?
See fitgmdist

plus de 6 ans il y a | 1

Réponse apportée
Log-Normal fit of histogram
fitdist wants the x values that were tabulated to get the histogram, not the bin counts. From your histogram, it looks like you...

plus de 6 ans il y a | 0

Réponse apportée
Parameter estimation - estimate integers only
One way to do this is to write your objective function to return an error function that is linearly interpolated between two int...

plus de 6 ans il y a | 0

Réponse apportée
Fmincon: how to change input variable of function which is not a design variable?
If I follow what you are trying to do, one way is by nesting your objective function within some outer master function, somethin...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
How to define the Conditional probability density function from a n-by-2 matrix ?
Maybe start with 'ksdensity' to estimate the joint pdf of x & y from your observed x,y pairs. Once you have a good numerical es...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
Plotting average of many empirical cumulative distribution functions
I'm pretty sure there is no function to do that. To compute the average function by Vincentizing, you first choose a set of CDF ...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
Problems with fmincon for design optimization
Hi Soheil, You have posted a lot of information and I certainly have not digested even a large fraction of it (it would take me...

plus de 6 ans il y a | 1

| A accepté

Réponse apportée
CDF-vector- 2 random variables
You apparently have a probability for each of the x and y values. So, you can just compute the different possible Ln(Z) values f...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
How create joint distribution of two dependent variables?
I don't think your two questions are equivalent. If you have the two marginal pdfs and the correlation, there are lots of ways ...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
Generate a random sequence with assigned probabiity
Homework? OK, here's a hint: Imagine that you have an array with 8 positions and that you choose array positions randomly (each...

plus de 6 ans il y a | 0

Réponse apportée
Multivariate Nomral Distribution Matlab
If you have only those 9 discrete combinations, then you can make their probabilities be any values you want (summing to one). ...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
Multivariate Nomral Distribution Matlab
I don't see anything wrong with what you are doing, but only with your expectations about things summing to 1. In general, the ...

plus de 6 ans il y a | 0

Charger plus