답변 있음
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...

대략 7년 전 | 1

| 수락됨

답변 있음
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...

대략 7년 전 | 0

답변 있음
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...

대략 7년 전 | 0

| 수락됨

답변 있음
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 ...

대략 7년 전 | 1

답변 있음
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...

대략 7년 전 | 1

답변 있음
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.

대략 7년 전 | 0

| 수락됨

답변 있음
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...

대략 7년 전 | 0

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

대략 7년 전 | 0

답변 있음
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...

대략 7년 전 | 0

| 수락됨

답변 있음
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...

대략 7년 전 | 2

| 수락됨

답변 있음
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...

대략 7년 전 | 0

| 수락됨

답변 있음
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...

대략 7년 전 | 0

| 수락됨

답변 있음
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...

대략 7년 전 | 0

답변 있음
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 ...

대략 7년 전 | 0

답변 있음
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 ...

7년 초과 전 | 0

| 수락됨

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

7년 초과 전 | 2

| 수락됨

답변 있음
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...

7년 초과 전 | 1

답변 있음
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...

7년 초과 전 | 0

답변 있음
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...

7년 초과 전 | 2

답변 있음
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...

7년 초과 전 | 0

| 수락됨

답변 있음
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...

7년 초과 전 | 1

| 수락됨

답변 있음
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...

7년 초과 전 | 0

답변 있음
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...

7년 초과 전 | 0

답변 있음
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...

7년 초과 전 | 0

답변 있음
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...

7년 초과 전 | 1

| 수락됨

답변 있음
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...

7년 초과 전 | 1

답변 있음
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...

7년 초과 전 | 0

답변 있음
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...

7년 초과 전 | 0

답변 있음
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...

7년 초과 전 | 1

| 수락됨

답변 있음
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...

7년 초과 전 | 0

더 보기