답변 있음
Finding quantiles from bucket/frequency data
Check this out: x = (1:5)'; freq = [.4 .3 0 .2 .1]'; ecdf(x,'freq',freq) You can provide x values and their freque...

13년 초과 전 | 0

답변 있음
How to check if data is normally distributed
The functions you mention return H=0 when a test cannot reject the hypothesis of a normal distribution. They can't prove that th...

13년 초과 전 | 0

| 수락됨

답변 있음
Normal Distributions: Standard Deviation from Statistics Toolbox vs Standard Deviation computed using std(data)?
The expression you show for X defines grid of values over which the fitted pdf is to be calculated for plotting. I don't seen th...

13년 초과 전 | 0

답변 있음
Defining my own response model using Regstats function
One way to do this is to move all the known stuff to the left-hand-side: y - 3*x1 - 4*x2 - 5*x3 = a*x1^2*x2 + b*x2^2*...

13년 초과 전 | 0

| 수락됨

답변 있음
How to fit the Copula to the data beased on parametric marginal distribution?
If you have fit the marginals so that you have both the family (such as generalized Pareto) and the parameters, you could use a ...

13년 초과 전 | 0

| 수락됨

답변 있음
How does multcompare function work?
Can you be more specific about what code you ran? When I try this, I only get groups 1 and 2, comparing the two columns: >>...

13년 초과 전 | 1

| 수락됨

답변 있음
Group-specific predictors in nlmefit
If you are happy with a toy illustration rather than a realistic example, here's one. Set up some fake data following a linear m...

13년 초과 전 | 3

| 수락됨

답변 있음
Curve Fitting with Individual trial function
If you are talking about the Curve Fitting Toolbox, try this: f = @(a,b,c,x) a*sqrt(x).*(b*x.^2+exp(c*x)) y = f(1,2,-3...

거의 14년 전 | 0

| 수락됨

답변 있음
Error when using custom pdf for mle
The mle function needs a real pdf. Yours isn't normalized to integrate to 1. Here's an example that integrates to 1 from 0 to +I...

거의 14년 전 | 0

답변 있음
why square() cannot work with cftool
I suspect this is because the derivative of the function is always 0 or +/-Inf. The optimizer that tries to perturb the inputs i...

거의 14년 전 | 0

답변 있음
How to keep a Fixed Effect constant in NLMEFIT and NLMEFITSA?
I can't think of any way to fix the variance. To fix a parameter value, I suppose you could write a new function model=@(PH...

거의 14년 전 | 0

답변 있음
Testing for a Poisson Process
I find the same thing. I got 52/1000 rejected the first way. That's close to the 5% value that you would expect. I got fewer the...

거의 14년 전 | 0

| 수락됨

답변 있음
program for calculating skin probability not working. please help.
Best to keep the discussion in a single thread <http://www.mathworks.com/matlabcentral/answers/41974-why-change-in-mean-and-cova...

거의 14년 전 | 0

답변 있음
Problem in gmdistribution function
See <http://www.mathworks.com/matlabcentral/answers/41974-why-change-in-mean-and-covariance-doesnot-effect-gmdistribution this> ...

거의 14년 전 | 0

답변 있음
why change in mean and covariance doesnot effect gmdistribution
There are two ways to create a gmdistribution. One is by specifying the mean, covariance, and mixing proportion. The result is a...

거의 14년 전 | 0

| 수락됨

답변 있음
Differences between treefit() and classregtree() functions in Matlab
There's no difference. The treefit function is older. The classregtree object was intended to do this same thing with a cleaner ...

거의 14년 전 | 0

| 수락됨

답변 있음
Is that necessary to set the start points for fitting?
Starting points can be very important in some cases. Your analysis is correct. If you fit the 'exp2' model from the cftool GU...

거의 14년 전 | 1

| 수락됨

답변 있음
Copula family
If you type "help copularnd" or look at the documentation some other way, you'll find these families supported: Gaussian, t, C...

거의 14년 전 | 0

| 수락됨

답변 있음
Another Issue with Join
Your desired result has v=6 for x=2, but A and B provide different values for v in that case. One thing you could do is joi...

거의 14년 전 | 1

| 수락됨

답변 있음
Does the Kolmogorov smirnoff test implemented in matlab already perform a correction for small sample sizes?
If you "edit kstest" you'll see some references. The paper by Marsaglia et al. describes how the p-values are computed. The kste...

거의 14년 전 | 0

답변 있음
'histfit': change line color
h = histfit(randn(100,1)); set(h(1),'facecolor','g'); set(h(2),'color','m') Changing other properties is similar. Just r...

거의 14년 전 | 5

| 수락됨

답변 있음
Errorbar Plot
Since the points you mentioned appear to be the first two, I wonder if something is setting the axis limits and leaving them fix...

거의 14년 전 | 0

답변 있음
Obtaining smoother polynomials from polyfit for curve fitting (Best Fit Curve) or an alternate function.
It's hard to say what's going on without seeing your data or results. If you have more than 7 points with distinct x values, the...

거의 14년 전 | 0

답변 있음
Polyfitting in for loop
Without having your data and just looking at your code, I observe that you have for n = 1 : 1 : 48 ... clippedfP2=cli...

거의 14년 전 | 0

| 수락됨

답변 있음
Generate random numbers with custom PDF
If you have the Statistics Toolbox, then take a look at the beta distribution. Use it with disttool to see how the parameters af...

거의 14년 전 | 0

답변 있음
Generating data points according to a distribution
1. If RV is a set of possible data points, you can randomly sample from it. One way to do that if you have the Statistics Toolbo...

거의 14년 전 | 0

답변 있음
t-test weird degrees of freedom
I can think of two possibilities. First, if you have any NaN values, they are treated as missing and the df would be reduced acc...

거의 14년 전 | 0

| 수락됨

답변 있음
gscatter grouping variable
The idea is that the jth point on the plot is x=T(j) vs y=C(j) with the symbol chosen according to the group value group(j). The...

거의 14년 전 | 0

| 수락됨

답변 있음
Naive Bayes - within-class variance must be positive.
Suppose you have data X and classes C. Can you look at var(X(C==1,:) If you see that columns 5, 6, 12, etc. have zero va...

거의 14년 전 | 4

| 수락됨

답변 있음
expected correlation / transitivity ?
It seems like you are saying [1 c4 c2; c4 1 c3; c2 c3 1] is the correlation matrix of A,A',B'. This is a valid correlation for s...

거의 14년 전 | 0

| 수락됨

더 보기