Réponse apportée
Hierarchical Clustering Algorithm
If you have the Statistics Toolbox, "help linkage" might get you pointed in the right direction. I assume you mean the input is ...

environ 14 ans il y a | 0

Réponse apportée
GMM implementation
If you have the Statistics Toolbox, you may want to look at gmdistribution and its "cluster" method.

environ 14 ans il y a | 0

Réponse apportée
Weighted Standard deviation?
The "var" function will accept weights, and you can take the square root of the result.

environ 14 ans il y a | 1

| A accepté

Réponse apportée
P-values on model coefficients, further explanation from "P-value from nlinfit" posted question
It looks like you have the correct interpretation. Using your own idea of comparing with glmfit, you can set that the p-value ar...

environ 14 ans il y a | 0

| A accepté

Réponse apportée
Truncated mean for truncated gaussian distribution
Consider using the Symbolic Toolbox, if you have it: >> syms x z >> pi = sym('pi'); >> zmean = int(x*exp(-x^2/2)/sqrt...

environ 14 ans il y a | 0

Réponse apportée
relationship between RMSE and R^2
R^2 = 1 - SSE/SST = 1 - DFE*RMSE^2/SST Here SSE is the error sum of squares, SST is the total sum of squares, and DFE is th...

environ 14 ans il y a | 0

A résolu


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

plus de 14 ans il y a

Réponse apportée
interaction dummies
Here is a specific example of how to do it. If you need to generalize it and can't figure that out, let me know. The idea is to ...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
grouped data: generating a random error with zero group mean
Your code generates each observation from a theoretical distribution that has zero mean. Consequently the theoretical mean is ze...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
Parametric mixture model of survival time data in matlab
Do you need to use the EM algorithm? The mle function may be able to handle a problem like this: x = [gamrnd(2,2,50,1); wbl...

plus de 14 ans il y a | 1

Réponse apportée
How to sample from custom 2D distribution?
There is a Statistics Toolbox function "slicesample" that could be useful. It does not generate independent samples from the dis...

plus de 14 ans il y a | 0

Réponse apportée
Working with grouped data - data access and analysis (standard deviation)
I can get you partway there. Here is code to generate some cycle values, generate random data, compute the medians for each cycl...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
Equal probability bins
The "edges" variable here seems to be what you need if you want 6 bins and your exponential distribution has mean 5.5: >> n...

plus de 14 ans il y a | 1

Réponse apportée
Return value calculation from gumbel cdf for MAXIMA not minima
It could be as simple as your needing to get the lower tail of the distribution of negative values, to produce the upper tail of...

plus de 14 ans il y a | 2

| A accepté

Réponse apportée
How to find the initial parameters for nlinfit?
I'm writing this as a separate answer just so I can use the mark-up feature. I took the code you supplied, including the data to...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
How to find the initial parameters for nlinfit?
I just tried your problem in R2010a using your code and my lambda0, and all worked well. In R2012a the directory structure of th...

plus de 14 ans il y a | 0

Réponse apportée
knn classifier
In your X,G values you specified that certain rows of X were in the 0, 1, or 2 stage. The "class" output is that same classifica...

plus de 14 ans il y a | 0

Réponse apportée
using ANOVAN to analyse categorical data
You should be able to adapt this for your logistic model: load hald [b,dev,st] = glmfit(ingredients,heat); dataset(b,...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
knn classifier
Sorry, I just don't understand what you have and what you want. If you had an n-by-20 matrix X containing features from pre-clas...

plus de 14 ans il y a | 0

Réponse apportée
constrained maximum likelihood matlab code
If you have the Optimization Toolbox, type "help fmincon." It does general minimization with constraints. You supply the negativ...

plus de 14 ans il y a | 0

Réponse apportée
matlab code for MLE gpfit
If you "edit gpfit" you can see the code. You'll also see some literature references. The code appears to be using the method of...

plus de 14 ans il y a | 0

Réponse apportée
Curve smoothing using smooth
It works just fine for me, if I make up random data. Try looking at x, y, yy1, and yy2. If that doesn't make it clear what went ...

plus de 14 ans il y a | 0

Réponse apportée
How to find the initial parameters for nlinfit?
Here's how I approach problems like this. Other variants may work for you. I'll approximate the mean as the sample mode (locatio...

plus de 14 ans il y a | 0

Réponse apportée
using ANOVAN to analyse categorical data
I don't mind supplying code comparing glmfit and the new feature, but of course you will have to adapt it for your own use. Here...

plus de 14 ans il y a | 0

Réponse apportée
using ANOVAN to analyse categorical data
You could use a logistic regression to predict the probability of "existence" using predictors temp, moisture, temp.*moisture. Y...

plus de 14 ans il y a | 0

Réponse apportée
How do you fit a gamma distribution?
Expanding on what Wayne wrote, you can supply your fixed-parameter version of the gamma distribution to the mle function. Try th...

plus de 14 ans il y a | 1

| A accepté

Réponse apportée
Matlab curve fitting toolbox
Do you have the Statistics or Optimization Toolbox available? (If not, you might get away with using fminsearch.) I'd recommend ...

plus de 14 ans il y a | 0

Réponse apportée
How to compute a cophenetic distance from dendrogram
If you are using the Statistics Toolbox hierarchical clustering functions, check out "help cophenet."

plus de 14 ans il y a | 0

Réponse apportée
knn classifier
You would give "sample" as the data you want to classify, "training" as the training data having known groups, and "group" as th...

plus de 14 ans il y a | 0

Réponse apportée
goodness of fit: Least absolute deviation
The function computes a robust estimate of the error standard deviation and calls this rmse. The sse is then dfe*rmse^2 where df...

plus de 14 ans il y a | 0

| A accepté

Charger plus