Beantwortet
Trouble with glmfit using binomial distribution and logit
The error message is because you have N = ones(size(feature)); so it is of the size of the whole feature array. You jus...

etwa 14 Jahre vor | 0

| akzeptiert

Beantwortet
solving general linear models
The mvregress function comes at this a little differently, but it is possible to set up the problem using mvregress. For this sa...

etwa 14 Jahre vor | 0

| akzeptiert

Beantwortet
solving general linear models
I think you want C = X\Y if you just need estimates, no other statistical information. If not, please explain specifical...

etwa 14 Jahre vor | 0

Beantwortet
trouble in signrank function for R2011b ?
This does look like a bug. If you are comfortable editing code in your MATLAB installation, I recommend editing signrank.m to ch...

etwa 14 Jahre vor | 0

| akzeptiert

Beantwortet
How do you obtain a vector of predicted classes generated after cross-valiation of a decision tree?
Consider this: load fisheriris cp = cvpartition(species,'k',10); F = @(xtr,ytr,xtest,ytest){ytest, eval(classregtree(...

etwa 14 Jahre vor | 0

| akzeptiert

Beantwortet
How to use rbf_kernel parameters with svmtrain() and svmclassify() for svm classification
From your description, it sounds like you intended svmStruct = svmtrain(data(train,:),groups(train),'kernel_function','rbf'...

etwa 14 Jahre vor | 0

Beantwortet
Equal probability in 'randsrc(m,n)' in-built function
I have no idea what your function is or if it does things correctly. But from your description you would not expect exactly 1536...

etwa 14 Jahre vor | 0

Beantwortet
Fitting a double exponential cumulative distribution function
You can do most things like this by writing a pdf and calling mle: >> x = [exprnd(1,1000,1); exprnd(5,2000,1)]; >> pdf =...

etwa 14 Jahre vor | 0

| akzeptiert

Beantwortet
Demo Weighted Nonlinear Regression (Statistics Toolbox)
Weighted least squares means we want to minimize sum over i of w(i) * {y(i)-yfit(i)}^2 You can write this by multi...

etwa 14 Jahre vor | 0

| akzeptiert

Beantwortet
boxplot
This may partially answer what you want. Step 1 would be to take the data for "a" and stretch it out as you describe. Here's one...

etwa 14 Jahre vor | 0

| akzeptiert

Beantwortet
boxplot
It seems like 1:46 represents your possible data values and [n1 n2 ... n46] represents the frequency of each value. If you "edit...

etwa 14 Jahre vor | 0

Beantwortet
Generate random numbers with specific properties
Not all combinations (X,Y) will work of course. If you do not need a theoretical answer, and are content with something that mig...

etwa 14 Jahre vor | 1

| akzeptiert

Beantwortet
Numerical Precision Weak Law of Large numbers
While I don't know exactly what you are encountering, I do know it is sometimes possible to repeat the mean calculation on resid...

etwa 14 Jahre vor | 0

Beantwortet
ttest - 2 matrices
Since TTEST wants to work along the first dimension, you can just move that dimension to the front using PERMUTE. Then use SQUEE...

etwa 14 Jahre vor | 0

| akzeptiert

Beantwortet
Random numbers in matlab
Are you sure of the sqrt(N) result? I believe you would expect this if you took the square root of the average squared distance ...

etwa 14 Jahre vor | 0

Beantwortet
k-means algorithm: start and replicates parameters
The 'start' parameter defines the starting centroids. The 'replicates' parameter indicates how many times to repeat the clusteri...

etwa 14 Jahre vor | 2

| akzeptiert

Beantwortet
crossvalind function doesn't work
I'm not sure how you got one toolbox without the other. The Bioinformatics Toolbox is supposed to depend on the Statistics Toolb...

etwa 14 Jahre vor | 0

Beantwortet
Why deviance returned by GLMFIT is not = -2*LogLikelihood?
Two things. First, the last argument to binopdf should be the fitted probability, not the fitted counts. Second, the deviance is...

etwa 14 Jahre vor | 0

| akzeptiert

Beantwortet
Running sfit (or fit) from command line
A good tip in cases like this is to use the "generate code" feature to see what the cftool GUI is doing. If you do that, you'll ...

etwa 14 Jahre vor | 0

Beantwortet
Regression/linear equation solving
Bring all the x's over to the left of the equal sign. Then a matrix representation of those equations is this: 1 ...

etwa 14 Jahre vor | 1

| akzeptiert

Beantwortet
K-means clustering, is it possible to get vertical boundaries?
I believe the boundaries are horizontal because the scale of the y variable is much larger. Differences in the y direction domin...

etwa 14 Jahre vor | 0

| akzeptiert

Beantwortet
Plot title being placed and then erased, and subplots different sizes
Take a look at this: title('main title'); set(gca,'Visible','off') set(get(gca,'Title'),'Visible','on') axes('Oute...

etwa 14 Jahre vor | 0

| akzeptiert

Beantwortet
calculation of the distances between the features of the same cluster
Distances between pairs of points in cluster 1: squareform(pdist(X(IDX==1,:))) Use something similar to compute distance...

etwa 14 Jahre vor | 0

Beantwortet
Kolmogorov-Smirnov Limits on a CDF plot
Try running kstest with a sample of the appropriate size, just to get the fourth output argument. This is the critical value for...

etwa 14 Jahre vor | 0

| akzeptiert

Beantwortet
Stepwisefit regression - additional outputs?
The fifth output from the function is a structure having a .intercept field that contains the intercept for the final model.

etwa 14 Jahre vor | 0

Beantwortet
How can i get a bell curve onto a histogram?
You'll need to do is to scale the histogram so that is has area 1.0, so it is comparable to a pdf that you superimpose on it. Se...

etwa 14 Jahre vor | 0

Beantwortet
fit a histogramm to a gaussian- or vice versa
One thing you'll need to do is to scale the histogram and bell curve so they have the same area. See my answer to this question:...

etwa 14 Jahre vor | 0

| akzeptiert

Beantwortet
Making boxplot after removing the outliers
A point is declared an outlier based on a comparison of its value with quartiles of the data. If you take out an outlier, you al...

etwa 14 Jahre vor | 3

| akzeptiert

Beantwortet
Logistic mixed-effect regression example
In that case nlmefit would not be suitable, because it fits models with a continuous response. The glmfit function would be suit...

etwa 14 Jahre vor | 1

Beantwortet
Histogram
There is a ksdensity function that can produce a kernel-smooth density estimate. The issue is that it produces a density (integr...

etwa 14 Jahre vor | 2

| akzeptiert

Mehr laden