Beantwortet
KNN classification
You asked this in another posting. See my answer there.

etwa 14 Jahre vor | 0

| akzeptiert

Beantwortet
Gaussian Mixture Model
If you have the Statistics Toolbox, try help gmdistribution

etwa 14 Jahre vor | 0

Beantwortet
calculating euclidean distance
It is likely that you have assigned D to some value, perhaps a plain numeric value, earlier in the function. So it is not a cell...

etwa 14 Jahre vor | 1

Beantwortet
Ridge regression coefficient question
Good question! This took a while to figure out, and I can see the help text is not clear about it. The calculations are actually...

etwa 14 Jahre vor | 0

| akzeptiert

Beantwortet
k-NN search. What is the difference between these 2-codes ?
You have supplied only x, not [x z], as the first argument to knnsearch. Your newpoint vector, on the other hand, has two column...

etwa 14 Jahre vor | 0

| akzeptiert

Beantwortet
Addition of gaussian noise
I don't know anything about ecg signals, but "help randn" will show you how to generate Gaussian noise.

etwa 14 Jahre vor | 0

Beantwortet
can someone help me to fix this error(Error using ==> kmeans at 382 An empty cluster error occurred in every replicate)
Type "help kmeans" and look at the description of the 'EmptyAction' parameter. Maybe that will help.

etwa 14 Jahre vor | 1

| akzeptiert

Beantwortet
Logistic mixed-effect regression example
You could use NLMEFIT to fit a response with normally distributed errors around a curve with a logistic shape. But there is no f...

etwa 14 Jahre vor | 0

Beantwortet
how to define link function in glmfit
Did you really mean to specify the normal distribution? This type of link is more commonly used with the binomial distribution. ...

etwa 14 Jahre vor | 0

Beantwortet
log-likelihoods from mnrfit; testing proportional-odds model
You are correct about the "dev" output. Here's an illustration using the "help mnrfit" example. I can calculate the binomial log...

etwa 14 Jahre vor | 0

| akzeptiert

Beantwortet
WBLFIT with Zeros
Suppose you record times to 0.01. Would it be reasonable to replace the zeros by 0.005 or some other number that would round to ...

etwa 14 Jahre vor | 0

Beantwortet
cdfplot
Also not 100% sure, but consider using the ECDF function and plotting however you want. Also you could use those outputs with a ...

etwa 14 Jahre vor | 0

Beantwortet
Principal Component Coefficients in princomp
The princomp function works on the centered data (variance/covariance matrix), so you need to remove the mean to reproduce the s...

etwa 14 Jahre vor | 0

| akzeptiert

Beantwortet
Interaction plot of medians
It is true that interactionplot wants all factor combinations present. Here's a little script that will plot medians as function...

etwa 14 Jahre vor | 0

| akzeptiert

Beantwortet
Is there any implemetation of the post hoc Nemenyi test in matlab?
Sorry, I'm not aware of an implementation of that test. I hope someone else may have one. In the Statistics Toolbox, the mult...

mehr als 14 Jahre vor | 0

| akzeptiert

Beantwortet
Type III sum of squares for all predictors using regstats
Aloha. You've run into the issue that regstats doesn't want to do anova, and anovan wants to treat its x variables as categorica...

mehr als 14 Jahre vor | 0

| akzeptiert

Beantwortet
P-value from nlinfit
For a function like f = @(b,x) b(1) + b(2)*x.^b(3); you might be interested in the p-value for a test of whether coeffic...

mehr als 14 Jahre vor | 0

| akzeptiert

Beantwortet
nlinfit not accurately modeling data
In your model function you have "1/<stuff>" where you almost certainly intended element-by-element division, "1./<stuff>". You'l...

mehr als 14 Jahre vor | 0

| akzeptiert

Beantwortet
finding slope/intercept/std.deviation of replicates
You can just include the x value once for each y value. If you're just talking about least squares coefficient estimation (no st...

mehr als 14 Jahre vor | 1

Beantwortet
Combinations of variables and step sizing for creation of DOE
Do you have the Statistics Toolbox available? It seems like what you want is a full factorial design, but with the variable leve...

mehr als 14 Jahre vor | 1

Beantwortet
regress and stats
One problem is that the model you fit is not the same as the "model" value you computed afterward. Or maybe the "x3" was just a ...

mehr als 14 Jahre vor | 0

Beantwortet
Multivariate GLMFIT and GLMVAL
Consider the code below. It fits a multi-predictor model, but plots the fit as a function of one predictor at a time, with the o...

mehr als 14 Jahre vor | 0

| akzeptiert

Beantwortet
Vertical boxplot?
Could it be that you want to use the 'positions' argument? rowvals = [1 2 4 8]'; x = bsxfun(@plus,rowvals,randn(4,20)); ...

mehr als 14 Jahre vor | 2

Beantwortet
How does one use output from mnrfit to forecast nominal values
You can use the mnrval function to compute fitted probabilities, then take the category with maximum probability. Here's an exam...

mehr als 14 Jahre vor | 0

Beantwortet
Control Chart from SQL query results
If the column is a series of measurements taken over time, with no particular grouping to them, then there are charts like the "...

mehr als 14 Jahre vor | 0

| akzeptiert

Beantwortet
Custom distribution in Distribution Fitting Tool
Konstantinos, I am not sure but here are some things to check. First, you create an options structure and supply it to mle like ...

mehr als 14 Jahre vor | 0

Beantwortet
Custom distribution in Distribution Fitting Tool
Konstantinos, this does not indicate a bad fit, as no preliminary fit is attempted. Distributions could be ruled out if they are...

mehr als 14 Jahre vor | 0

| akzeptiert

Beantwortet
Trouble with NaiveBayes object in Statistics toolbox (R2010a)
I would not expect this to be a problem unless your path was set up in an unusual way. If I type "which nansum" I see the stats ...

mehr als 14 Jahre vor | 0

Beantwortet
Trouble with NaiveBayes object in Statistics toolbox (R2010a)
This is odd. it appears to be having trouble concatenating mu and sigma, which came out of these two earlier lines: mu ...

mehr als 14 Jahre vor | 0

| akzeptiert

Beantwortet
Generate DoE matrix and test plan
Phillippe, you are right that the Statistics Toolbox offers a collection of DOE tools rather than a beginning-to-end DOE applica...

fast 15 Jahre vor | 1

| akzeptiert

Mehr laden