Réponse apportée
how can i check the geometric distribution
Look at the Wikipedia page on this distribution and it will tell you how to estimate the parameter from your observations (it de...

presque 6 ans il y a | 1

Réponse apportée
Use 'trandn' function to draw random numbers from a lognormal distribution
An easy way to get random numbers from a lognormal distribution is to get random numbers from a normal distribution and then exp...

presque 6 ans il y a | 0

Réponse apportée
Ploting the result of a fitgmdist (of 1D data)
Say you want to plot the distribution from -15 to 15 in steps of 0.05. This would be the code: z = (-15:0.05:15)'; % Note th...

presque 6 ans il y a | 0

| A accepté

Réponse apportée
Ranking Variables by Value
You might find the second output of the sort command useful. E.g. fruitVals = [p_a p_b p_o p_p]; [~, idxOrder] = sort(fruitVa...

presque 6 ans il y a | 0

| A accepté

Réponse apportée
help random numbers generator
Good. Here it is as an 'official' answer: pd = makedist('Normal'); t = truncate(pd,-0.5,0.5); r = random(t,10,1);

presque 6 ans il y a | 0

| A accepté

Réponse apportée
How to generate random numbers from a scaled beta PDF?
Generate regular beta random numbers and then rescale them. I guess you want to generate randomly from the regular beta(3,3) di...

presque 6 ans il y a | 0

| A accepté

Réponse apportée
Why does stepwiselm function output NaN with model interactions?
Multivariate techniques like stepwise regression require more cases (rows) than variables--in practice, you need at least 5-10 t...

presque 6 ans il y a | 0

Réponse apportée
Concatenate string to string array in efficient way
strMsgArray = strcat(strStart,strMsgArray,strEnd)

presque 6 ans il y a | 0

| A accepté

Réponse apportée
question related to Statistics in matlab
r=poissrnd(9,200,1); will give you 200 random numbers from a poisson distribution with lambda=9. Lots of those numbers will be...

presque 6 ans il y a | 0

Réponse apportée
Calculate Convolution 2 pdf random variables
The built-in conv function is for something else, not statistical convolutions. In general, the probability density function of...

presque 6 ans il y a | 0

Réponse apportée
How to do an unpaired t-test?
I'm guessing you have some kind of numerical score in each of 120 trials for each of (say) 30 subjects and you want to know if t...

presque 6 ans il y a | 1

| A accepté

Réponse apportée
Overall fir of binomial general linear model
People don't normally test the overall significance of these models. Instead, they look at the significance of the individual p...

presque 6 ans il y a | 1

| A accepté

Réponse apportée
Bootstrap alternative to t-test dependent measures does not produce same p values
The p values are not that far off, given that the t-test is based on the assumption of normally distributed difference scores an...

presque 6 ans il y a | 0

Réponse apportée
pdf of two distribution in mixture
the pdf of the mixture is just the weighted average of the pdfs of the beta and gamma, something like p_beta = 0.8; % probabil...

presque 6 ans il y a | 0

Réponse apportée
Convolution and tolerances: how do I calculate the probability density function of the difference between two dimensions? (mechanical engieering)
In general, if h(x) and s(x) are the PDFs of the hole and shaft, respectively, then the PDF d(x) of the difference d=h-s is d(x...

presque 6 ans il y a | 1

| A accepté

Réponse apportée
How to generate mixture of exponential and beta distribution
Check whether I have interpreted your parameters correctly, but it should look something like this: lambda = 0.5; a = 4; b = ...

presque 6 ans il y a | 0

| A accepté

Réponse apportée
Different functions with different variables as input
I think you can do this by bundling up the arguments for each function in a cell array. It would look something like this (unte...

presque 6 ans il y a | 0

| A accepté

Réponse apportée
How to compute lower tail probability for the Bivariate Normal Distribution
The function 'mvncdf' computes the lower tail probability for the multivariate normal distribution.

presque 6 ans il y a | 0

Question


Can I call integralCalc directly to bypass integralParseArgs?
I'm trying to speed up a function Foo that calls 'integral' thousands of time. The profile viewer reveals that more than half of...

presque 6 ans il y a | 1 réponse | 0

1

réponse

Réponse apportée
How to use original n-th moments formula to calculate mean, skewness and kurtosis in uniform distribution?
I don't think mean(x) gives you what you want inside fun. Try this: fun = @(x,n) (x-0.5).^n;

presque 6 ans il y a | 0

Réponse apportée
What statistical test is available in matlab for unbalanced samples other than ttest?
One possibility is the Wilcoxon rank sum test.

presque 6 ans il y a | 1

| A accepté

Réponse apportée
How can I generate integer random variables by using exponentially distributed with a mean of 20 seconds?
If you just want integers, then use the geometric distribution instead of the exponential: r2 = geornd(1/mu2,sz1,sz2);

presque 6 ans il y a | 0

| A accepté

Réponse apportée
Negative correlation between two random vectors
Alternatively, generate independent variables and then combine them to create a new variable that they are correlated with. E.g....

presque 6 ans il y a | 0

Réponse apportée
For loop to evaluate Root Mean Square
I don't really understand what you mean by conditions, but maybe you can get what you want by thinking of a 2-step process where...

presque 6 ans il y a | 0

Réponse apportée
Compare empirical CDF and lognormal CDF
logncdf wants the mean and sd of the logged scores. Try this: fit_s=logncdf(sort(SD) , mean(log(SD)) , std(log(SD)) );

presque 6 ans il y a | 0

| A accepté

Réponse apportée
How to plot a mixed density function?
x=-6:.01:10; pdf1 = normpdf(x,1,1); pdf2 = normpdf(x,4,1); mixpdf = 0.5*pdf1 + 0.5*pdf2; figure; plot(x,mixpdf);

presque 6 ans il y a | 0

| A accepté

Réponse apportée
How to load the letter and their log probabilities in database.txt into our program?
This function on FileExchange simply returns a long list of all the numbers in the file. Since it looks like your file has the ...

environ 6 ans il y a | 0

| A accepté

Réponse apportée
ranova(rm) ranovatbl contains only NaN values and zero's
> 'WithinDesign', Meas This doesn't look right with Meas only having one possibility. Try removing that. > all data are fro...

environ 6 ans il y a | 0

| A accepté

Réponse apportée
How to fit complicated function with 3 fitting parameters using Least square regression
I assume you have vectors of values for V and J, in which case fminsearch might be a good choice. The basic steps are: Write ...

environ 6 ans il y a | 0

Réponse apportée
How to carry out a chi-squared distribution fit?
chi2gof is not the function you want here--it is for an entirely different purpose. The last few lines should be something like:...

environ 6 ans il y a | 0

| A accepté

Charger plus