Respondida
Sampling based on a correlation matrix for multiple parameters?
Use mvnrnd for this. The parameter mu is a vector of the means for your p's, i.e. mu = [1800, 900, etc]. The parameter sigma i...

alrededor de 7 años hace | 1

| aceptada

Respondida
bootstrap confidence intervals on MDS data?
I'm guessing that you have some starting dataset, D1, and that your code sequence looks something like this: DforMDS = someFunc...

alrededor de 7 años hace | 0

Respondida
How to pass a class name as argument to a function
I think the first classdef ("Aclass") works fine, as long as you pass to its constructor the handle of the class you want instan...

alrededor de 7 años hace | 0

| aceptada

Respondida
HOW to calculate the regression coefficient and p-value between Y and x, while excluding the effect of other variable?
There are different ways to do this, depending on what you mean by "removing the effect of z". One possibility: use regression ...

alrededor de 7 años hace | 1

Respondida
generating random numbers from mixed beta gamma distribution
Here is one way to do this with Cupid % Create a custom mixture distribution: % Use whatever distribution parameters and mixtu...

alrededor de 7 años hace | 1

Respondida
How can i sample from a distribution already fitted with allfitdist?
Try output = random(My(2).result,10000,1) Your command gives a 10000 x 10000 output matrix.

alrededor de 7 años hace | 0

| aceptada

Respondida
HOW TO SEPARATE NUMERICAL DATA FROM A TEXTFILE?
Sorry, I misunderstood completely. Maybe this will do what you want: level1 = mod(1:507,3)==1; level1_medians = median_height...

alrededor de 7 años hace | 0

Respondida
HOW TO SEPARATE NUMERICAL DATA FROM A TEXTFILE?
mydata = readtable('1Oct6AM.txt','Headerlines',16); mymedians = CondMedians(mydata,'Var13','Var1') gives mymedians = Va...

alrededor de 7 años hace | 0

Respondida
Significance test for least squares line
Look at the regress command. You will want something like: [b,bint,r,rint,stats] = regress(Wind,Year); stats will contain the...

alrededor de 7 años hace | 0

| aceptada

Respondida
Zero-Inflated and Hurdle Models in Matlab (statistical distribution fitting)
You might be able to fit the distributions you have in mind using Cupid. For example, the following commands would define and p...

alrededor de 7 años hace | 2

| aceptada

Respondida
Checking Conditions on Multiple-Variable Functions
Try fminsearch. Write a global error function to sum up the deviations from all conditions you want to satisfy, and fminsearch w...

alrededor de 7 años hace | 0

| aceptada

Respondida
Global fitting with one shared paramenter
> I did not undertand how to specify that the parameters for the fitting [b(1) and b(2)] can be different > among the 4 dataset...

alrededor de 7 años hace | 0

| aceptada

Respondida
HistFit with skewness and kurtosis
All normals have skewness=0, so histfit can't give you a normal that matches the skewness in your data. You'll have to try fitt...

alrededor de 7 años hace | 0

Respondida
Fitting Log Pearson Type III distribution in MATLAB
I think you can make a Log Pearson III distribution and estimate its parameters with the routines in Cupid . The attached demo ...

alrededor de 7 años hace | 0

Respondida
Standar Errors for variance components of non-linear mixed effect models
One way is to use the bootstrp function. For each bootstrap sample, you would write your own function to call nlmefit and save ...

alrededor de 7 años hace | 0

| aceptada

Respondida
How to interpret statistics from glmfit
For interpreting the b values from a logistic regression, this pretty detailed explanation might be helpful.

alrededor de 7 años hace | 2

| aceptada

Respondida
How to plot Central/Non-central chi square pdf?
You need to estimate the distribution parameter(s) from your 1000 data values (call them x). In principle you would use fitdist...

alrededor de 7 años hace | 1

Respondida
Why does my log-normal distribution not fit my data?
The probability density function should only approximate the histogram in shape, not in height. Remember, the PDF is defined su...

más de 7 años hace | 0

Respondida
How to get the combinations of elements of two arrays?
You might like allcomb on File Exchange: For example: >> A = [1,2,3]; B = [4,5]; >> C=allcomb(A,B) C = 1 4 1...

más de 7 años hace | 2

Respondida
OLS regression : Test if two individually not significant coefficients are significant taken altogether
Make a reduced X matrix with just Gas & Solar, then use LinearModel.fit to predict Y from those two predictors. The resulting O...

más de 7 años hace | 0

| aceptada

Respondida
So whenever I run this program, which is a model of the saturn V rocket going into space. The plot will reset and overlay another plot on top of the other. I don't know how to explain it well so I hope if you run the program you can see my problem.
Look at Rocket(:,1). It starts at 0 and goes up to 1000 by 10. Then it restarts and goes up to 1000 by 1. Then it restarts...b...

más de 7 años hace | 1

| aceptada

Respondida
Determine goodness of fit for user defined PDF data.
The measures you list (SSE, R-square, etc) are not measures of the goodness of fit of a PDF to a data set. You can find a helpf...

más de 7 años hace | 0

Respondida
So whenever I run this program, which is a model of the saturn V rocket going into space. The plot will reset and overlay another plot on top of the other. I don't know how to explain it well so I hope if you run the program you can see my problem.
We can't run the program without the file that it reads. But often the problem with overlaying plots is that a 'figure;' comman...

más de 7 años hace | 0

Respondida
Finding PDF for difference of two PDFs
1) What do you mean when you say "I did the convolution, and got an array of values"? It sounds a bit like you are using MATLAB...

más de 7 años hace | 0

Respondida
makedist discrete uniform distribution
It appears that MATLAB will only give you random integers 1..K for any K you want, so you will have to convert those to your des...

más de 7 años hace | 1

| aceptada

Respondida
i'm trying to find goodness of fit using chi2gof of a time series data, but getting p value as NAN.
The p value of nan is because the chi-square value has no degrees of freedom. This is because--with such a small number of data...

más de 7 años hace | 1

Respondida
Evaluating goodness of fit of a probability distribution at a certain interval
Do you want to rescale the pdf back like this? pd=makedist('normal','mu',1,'sigma',1); pd_trunc=truncate(pd,0,mean(asdf)) plo...

más de 7 años hace | 0

Respondida
How to use copula Distribution Parameter to Find Marginal Distributions?
I don't really know the answer to this, but it might help you to know that what you are looking for is called a "conditional" ra...

más de 7 años hace | 0

Respondida
Estimating a parameter vector of a maximum likelihood function
One way to proceed is to write a function which accepts a set of values for alpha, epsilon, mu, and delta, and returns -log(L) u...

más de 7 años hace | 1

| aceptada

Respondida
Why is the pvalue 0
There are a few problems. The biggest one is that the p value depends on the observed correlation value, and this will vary rand...

más de 7 años hace | 0

Cargar más