Community Profile # Jeff Miller

Last seen: Today Active since 2013

#### Statistics

All
• • • • • • • • • • • #### Content Feed

View by

Finding the minimum of a complicated function with variables and parameters
If I understand the problem correctly, then this should be close to what you want: function bestEsts = MyOuterFn(x,y) MyErrFn ...

ungefär 17 timmar ago | 0

How to get correct p-values for the Steel-Dwass test?
The problem is with the 'inf' value given as the degrees of freedom in this line p_steelDwass(i, 1) = 1 - tcdf(t_steelDwass...

en dag ago | 0

How to calculate for significant difference between Cohen's Kappa values?
As I understand it, the fundamental question is whether tests A & B agree better than tests A & C, beyond a minor improvement th...

3 dagar ago | 0

fsolve doesn't find a solution when the value of the objective function is obtained through a Montecarlo simulation
I don't know if it can be done in the context of your simulation, but sometimes it is helpful to pick the "random" variables sys...

4 dagar ago | 0

Question

speed up integrating the same function over many overlapping intervals?
I need to compute many different integrals of the same function fn, essentially like this: Xint = size(X); for i=1:numel(X) ...

6 dagar ago | 2 answers | 0

### 2

Differences between functions ezfit and Matlab's gamfit in fitting data to the gamma distribution?
There are two somewhat different parameterizations of the gamma distribution. In one (which I think is used by gamfit), the mean...

7 dagar ago | 0

How do I calculate the R^2?
Either of these: Rsqr = corr(x(:,2),y)^2; RsqrAlso = 1-(std(resids)/std(y))^2;

8 dagar ago | 1

I would like to find elements of a matrix that fulfill a condition but after every loop the condition is changing.
I think this will almost do what you want. edges = 0:0.05:30; [~,~,bin_numbers] = histcounts(diameters,edges); The output bin...

10 dagar ago | 0

| accepted

Generating a categorical array with group names
Is this what you are after? part1 = repmat({'Name1'},1055,1); part2 = repmat({'Name2'},1641,1); part3 = repmat({'Name3'},2055...

11 dagar ago | 0

| accepted

Forming a CDF by adding different types of PDF and generating random number
It seems like there are several different questions here. If you want to generate random numbers from a custom CDF, one simple ...

13 dagar ago | 2

| accepted

Calculating pdf and cdf for data extracted as a table
This command pdfwindspeed = pdf('Normal',A) returns the pdf of the A values within the standard normal with mu=0 and sigma=1. ...

13 dagar ago | 0

How to use one data set to find the mean of another?
NON1 = NON == 1; % this makes a boolean vector that is true for the positions where NON==1 mean(PLCm(NON1)); % this computes ...

16 dagar ago | 1

Question

Request for help computing convolution of random variables via fft
Inspired by the answers of @David Goodmanson to this earlier question, I have been trying to understand exactly how in general t...

22 dagar ago | 2 answers | 0

### 2

run glmfit , why get Warning: X is ill conditioned, or the model is overparameterized
The problem is that the x1-x5 values sum to 24 in every row. This means that any one of the x's can be predicted from the rest ...

28 dagar ago | 0

CDF of VOn Mises distribution
The Von Mises distribution is included in Cupid. You could use it like this to calculate CDF values: >> location = 10; >> conc...

29 dagar ago | 0

How do I get four different answers guaranteed generated randomly from several arrays?
One way is to put the two random selections inside a while loop, check whether any meals are repeated, and then only exit the lo...

30 dagar ago | 0

| accepted

How to load .mat data from another folder?
You need the folder name at the beginning of the string you pass to load, maybe something like this: for iFile = 1:numel(N1) ...

ungefär en månad ago | 1

Probplot for Generalized Extreme Value distribution
Cupid includes the Frechet distribution. It doesn't have probplot function, but you can easily produce something similar: % as...

ungefär en månad ago | 0

| accepted

How to NOT share variable with nested function?
It sounds like your "big code" is a script rather than a function, but now you want to make a function out of it. I suggest you...

ungefär en månad ago | 0

How to plot confidence bounds for a theoretical cumulative distribution function?
For a given X value, the theoretical cumulative probability is p = F(X). Suppose you have a sample of N observations and you le...

ungefär en månad ago | 0

How to loop through variable names and to save them on one file?
You can use strings for variable names like this: a = 'WD__Avr'; for.... [...] x = mean(data_measured.(a)(ind_time)); % no...

ungefär en månad ago | 0

| accepted

I need a quantitative method of identification of which distribution best represents my data set
One approach is to: get the maximum likelihood parameter estimates for fitting each candidate distribution to your actual data....

ungefär en månad ago | 0

How can I test for significance between expected and observed outcomes?
Another alternative: You might consider that you have three classes of items: those for which the predicted correlation was posi...

ungefär 2 månader ago | 0

Can one get fitted value without going to predict?
From your reference to 'predict', I'm guessing you have a vector of observed x values and you want to compute the predicted y fo...

ungefär 2 månader ago | 0

| accepted

Optimization of multiple variables without any toolbox
If I understand the question, your basic approach seems OK but your code isn't structured quite right. I think this is closer t...

ungefär 2 månader ago | 1

| accepted

correlation of nonlinear variables
It isn't really clear what you mean by "correlation coefficients for nonlinear variables", because an infinite number of nonline...

ungefär 2 månader ago | 0

Generating and storing lists of variable lengths?
There isn't really a good solution to this type of problem with "flat file" databases, but relational databases handle it very g...

ungefär 2 månader ago | 1

| accepted

How to linearize the nested parfor loop?
One approach is to set out all the desired pairs in advance. A crude way to do that is pairs = zeros(0,2); n = 3; for i = 1:...

| accepted