Answered
skewness parameter in weibull distribution .is there any option for input in weibull distribution for skewness parameter
The answer at SolveWeibull might be helpful if you can compute the third moment that corresponds to the skewness value that you ...

7 years ago | 0

Answered
How can I build a Matlab parallel computing cluster from computers with existing standalong Matlab installations?
> after reading the documentation of Matlab distributed computing server, I feel a bit confused about how they work Yes, me too...

7 years ago | 0

Answered
How to generate random variable from t distribution with mean and scale
I don't see that your code is correct, because it does not take 1,000 draws from anything, which is what you said you want to do...

7 years ago | 0

Answered
Normalised gaussian random variables
You may want to truncate the normal distribution as shown here. They give an example with truncation between -2 and +2, which y...

7 years ago | 0

Answered
How can I perform a semipartial correlation with two covariates?
Not sure if this is what you want, but maybe: [b1,bint1,resid1] = regress(task1,covar1); [b2,bint2,resid2] = regress(task2,c...

7 years ago | 0

| accepted

Answered
multcompare and anovan result in zero and nan
You can't use anovan with numerical predictors like thickness, weight, and adhesion. Have a look at regression models. You wil...

7 years ago | 0

| accepted

Answered
Transforming a right skewed data set to normal
One very general two-step approach is to convert the original scores to percentiles within the original distribution replace e...

7 years ago | 0

Answered
how to do mle on custom mvnpdf ?
I don't really understand what you are trying to do, but the error message "SIGMA must be a square, symmetric, positive definite...

7 years ago | 0

| accepted

Answered
matlab dummyvar is creating extra binary variable
I guess there is a typo in your question and you really want ''b0=1,b1=0 for '2'". Notice that you get what (I think) you want ...

7 years ago | 0

| accepted

Answered
Change the value of a variable between each iteration of fminsearch
If gamma has to be changed at each iteration, can't you let the error function change it? The error function is called at each ...

7 years ago | 0

| accepted

Answered
[DISCONTINUED] Wish-list for MATLAB Answer sections.
As far as I can see, Activity Feed / Manage Followed Content apparently only shows threads that I follow if there is a post to t...

7 years ago | 2

Answered
How to include a fixed point in exponential fit?
You can approximate this by using the 'weights' input parameter to fit. Give the first point much higher weight than any of the...

7 years ago | 1

| accepted

Answered
spearman correlation in bootstrap function
scorr = @(a,b)(corr(a,b,'Spearman')); bootstat = bootstrp(1000,scorr,a,b);

7 years ago | 0

Answered
How to calculate the Product between Gaussian and exponential distribution in Matlab?
You might find Cupid useful for this. You could set up the clampforce random variable like this: wheelforce=TruncatedX(Normal(...

7 years ago | 1

Answered
Use parametric Name generator to adress existing cell arrays
One almost-convenient way to do this is to put all of your cell arrays within a structure, call it 'a'. So, for example, create...

7 years ago | 1

| accepted

Answered
fitting scatter plot with two-dimensional normal distribution (Gaussian)?
You can calculate the 5 parameters of the best estimated bivariate normal directly from the x and y values: mean & sd of each va...

7 years ago | 0

| accepted

Answered
Kernel density estimates....group data into bin and KDE
No, you don't need to make bins. This might give you a start: Pressure = importdata('Pressure.txt'); kernest = fitdist(Pressu...

7 years ago | 0

Answered
Histogram Fit: Scaling and offset
I think there are a couple of problems. Try this: load Data.mat bins = round(sqrt(length(Data))); % Number of bins ...

7 years ago | 0

| accepted

Answered
Loop to pick random variables from separate probability distributions
It sounds like you want to select the second number from a truncated version of the lognormal distribution. If I understand wha...

7 years ago | 0

| accepted

Answered
solve 3 parameter weibull using method of moments - integral with parameters inside a solve
Lauren, If you just want to get numerical estimates, Cupid will give them to you. Here is a script for that: load('Location_0...

7 years ago | 0

| accepted

Answered
Passing data through fminsearch
One way is to nest the rss function: function [ par_hat , rss ] = finder % A wrapper function to avoid globals ...

7 years ago | 0

Answered
generate n random number between two numbers follow exponential distribution
With Cupid the command is somerands = TruncatedX(Exponential(lambda),a,b).Random(n,1);

7 years ago | 1

Submitted


RNGMgr
A class to facilitate saving RNG seeds when it may be desirable to regenerate the same sequence of random numbers.

7 years ago | 1 download |

0.0 / 5

Answered
Regression analysis; How do I detect a delayed relation between two signals
It sounds like you are looking for what is sometimes called "lagged regression". The basic idea is to use regular regression to...

7 years ago | 0

Answered
Using chi2gof to test two distributions
Sorry, the x's really do have to be the data values. Try this: bins=[0:9:81] xvals = bins(1:end-1)+4.5; % Here are some fak...

7 years ago | 1

| accepted

Answered
Using chi2gof to test two distributions
It looks like chi2gof expects the values in x to be the actual, original scores, not the bin counts. Try adding 'Frequency',x t...

7 years ago | 0

Answered
Find flattest line from matrix of vectors plotted against x values
If you want to find the y-matrix row with the least variation, you could simply find the row with the small std, range, or mean ...

7 years ago | 0

| accepted

Answered
Fitting a Gaussian to multiple data sets
If you are just trying to save the fit outputs, it seems like this should work: saveme = cell(size(y_data,2),1) % before the l...

7 years ago | 0

Answered
How to randomly present stimuli a specific number of times
If you want to present 48 stimuli, you need to replace your line for a =randperm(numel(d)) with something like this for a =nu...

7 years ago | 0

| accepted

Answered
How to generate covariance matrix (SIGMA) for mvnrnd function, given the marginal normal probability density functions of two random variables X and Y.
Since you have two mu's, sigma will be a 2x2 covariance matrix. Then numbers on the diagonal are the variances of the two RVs. ...

7 years ago | 0

Load more