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

mehr als 7 Jahre vor | 1

| akzeptiert

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

mehr als 7 Jahre vor | 0

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

mehr als 7 Jahre vor | 0

| akzeptiert

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

mehr als 7 Jahre vor | 1

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

mehr als 7 Jahre vor | 1

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

mehr als 7 Jahre vor | 0

| akzeptiert

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

mehr als 7 Jahre vor | 0

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

mehr als 7 Jahre vor | 0

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

mehr als 7 Jahre vor | 0

| akzeptiert

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

mehr als 7 Jahre vor | 2

| akzeptiert

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

mehr als 7 Jahre vor | 0

| akzeptiert

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

mehr als 7 Jahre vor | 0

| akzeptiert

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

mehr als 7 Jahre vor | 0

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

mehr als 7 Jahre vor | 0

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

mehr als 7 Jahre vor | 0

| akzeptiert

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

mehr als 7 Jahre vor | 2

| akzeptiert

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

mehr als 7 Jahre vor | 1

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

mehr als 7 Jahre vor | 0

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

mehr als 7 Jahre vor | 2

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

mehr als 7 Jahre vor | 0

| akzeptiert

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

mehr als 7 Jahre vor | 1

| akzeptiert

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

mehr als 7 Jahre vor | 0

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

mehr als 7 Jahre vor | 0

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

mehr als 7 Jahre vor | 0

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

mehr als 7 Jahre vor | 1

| akzeptiert

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

mehr als 7 Jahre vor | 1

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

mehr als 7 Jahre vor | 0

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

mehr als 7 Jahre vor | 0

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

mehr als 7 Jahre vor | 1

| akzeptiert

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

mehr als 7 Jahre vor | 0

Mehr laden