Answered
Latin Hypercube sampling from distrete, non-uniform distribution
This is probably not what you want, but if you explain further why it's not what you want, maybe we can come closer to a solutio...

13 years ago | 0

Answered
How can I plot cdf of Y, Ft(t) using Matlab?
Do you need a theoretical result? If not, can you just simulate A and B values, calculate Y, and plot its empirical cdf? Eith...

13 years ago | 0

Answered
Latin Hypercube sampling from distrete, non-uniform distribution
I can't think of any good way to use the latin hypercube feature here. You can apply poissinv to a distribution inside the unit ...

13 years ago | 0

Answered
p value of f test
This does not produce the exact result you desire, but it may be instructive. Suppose we compute the p-value for different F val...

13 years ago | 5

Answered
Logistic Regression - Error: The sizes of B and X are incompatible.
If I type load fisheriris data = meas and then run your code after from the "load" line, then it works okay after I c...

13 years ago | 0

| accepted

Answered
Where is the t statistic reported for [R,P]=corrcoef(...)?
If you are comfortable editing the corrcoef.m file, you can add Tstat as an additional output. This variable is computed inside ...

13 years ago | 1

| accepted

Answered
mu and sigma for every pixel
I similarly don't understand, but if your video is a 3-D array with V(i,j,:) representing pixel (i,j) for all frames, then this ...

13 years ago | 0

Answered
confint and predint bounds trouble
CONFINT returns confidence intervals for the parameters. So if you fit y=a+b*x, you get confidence intervals for a and b. PRE...

13 years ago | 1

| accepted

Answered
Clearing rows in dataset arrays
That's because you can't delete individual "cells" from a dataset array. You need to delete entire rows. (Besides that, strcmp w...

13 years ago | 0

| accepted

Answered
Generate random number from inverse gamma distribution
If I understand the inverse gamma correctly, you can generate from x=gamrnd(a,1./b) and then take y=1./x. This would require the...

13 years ago | 1

Answered
Continuous Error bars
You may be able to modify this to suit your needs: x = linspace(0,1,20)'; y = sin(x); dy = .1*(1+rand(size(y))).*y; ...

13 years ago | 32

| accepted

Answered
How to use clssregtree function for a mixture of conitious and categorical explanatory variables?
You can use the 'categorical' option to tell classregtree which columns to treat as categorical.

13 years ago | 0

| accepted

Answered
Finding Unknown X from Known Y with cftool
You realize that some fitted functions are not monotone, so there may be multiple x values that evaluate to the same y value. Bu...

13 years ago | 0

| accepted

Answered
How do I display different boxplot groups on the same figure in MATLAB?
The boxplot function has more options than you can shake a stick at. Try this: data = rand(20,24) month = repmat({'jan' ...

13 years ago | 7

Answered
Why 'Linkage' returns wrong result??
Your distance matrix isn't in the vector form that pdist computes and linkage expects. So linkage is treating it as a data matri...

13 years ago | 0

Answered
Error in linear regression with predefined error in y
Take a look at the lscov function and see if it does what you need.

13 years ago | 1

| accepted

Answered
Log likelihood
If you have the most recent release of the Statistics Toolbox: >> x = poissrnd(4,20,1); >> pd = fitdist(x,'poisson'); ...

13 years ago | 6

| accepted

Answered
Gibbs Sampler
You may want to look at "help gmdistribution.fit" if you have the Statistics Toolbox.

13 years ago | 0

Answered
Question of mean
As Oleg and Titus imply, one idea is to change the test so that it allows for things that differ by a small amount to be treated...

13 years ago | 0

| accepted

Answered
What is it that I get from MATLAB function probplot?
Take a look at this for illustration of the mechanics of how the function works: x = exprnd(2,20,1); subplot(1,2,1); pro...

13 years ago | 4

| accepted

Answered
Problem in runnning .m file
I believe MATLAB is getting confused because when it first examines the file, your "data" symbol does not appear to be a variabl...

13 years ago | 1

| accepted

Answered
Parametric bootstraping in curve fitting
This line creates a matrix with 1 in one column and X in the other. You could also include X^2 or higher to use polynomials: ...

13 years ago | 1

Answered
CART Algorithm with categorical predictor variables which consist of strings?
If you use ClassificationTree.fit or RegressionTree.fit from the Statistics Toolbox, the input X matrix has to be numeric. Howev...

13 years ago | 0

Answered
Probability Density Function
This could be a very complicated question depending on how far you want to take it. Here's a simple attempt. You can simulate va...

14 years ago | 1

Answered
K-means cosine zero-vector detection
The function wants to treat each row of the data matrix as a point in some space with dimension size(data,2). Imagine rays exten...

14 years ago | 1

Answered
percentage of the variance of the dependent variable explained by multiple independent variables
If you have the latest version of the Statistics Toolbox, then it sounds like you want the anova method of LinearModel. Unfor...

14 years ago | 1

| accepted

Answered
multiple correlation
You can get R^2 (multiple correlation) from various Statistics Toolbox routines. If you don't have the toolbox or you need to do...

14 years ago | 0

| accepted

Answered
Reliability
The Statistics Toolbox has exprnd and expfit. In fact, you could do this without that toolbox pretty easily as well. Please let ...

14 years ago | 1

Answered
Weighted probability density function plot?
Check out the "lognfit" function with its FREQ argument. Also the "mle" function with its 'frequency' argument. These can estima...

14 years ago | 0

Answered
Weighted probability density function plot?
If you are content with a kernel smooth density estimate of the pdf, the "ksdensity" function accepts a 'weights' argument.

14 years ago | 0

Load more