Community Profile

photo

Jeff Miller


200 total contributions since 2013

Contact

Jeff Miller's Badges

  • Revival Level 1
  • 12 Month Streak
  • Knowledgeable Level 3
  • Thankful Level 2
  • First Answer

View details...

Contributions in
View by

Answered
Loop to pick random variables from separate probability distributions
It sounds like you want to select the second number from a truncated version of the lognormal distribution. If I understand wha...

alrededor de 5 horas ago | 0

Answered
solve 3 parameter weibull using method of moments - integral with parameters inside a solve
Lauren, If you just want to get numerical estimates, Cupid will give them to you. Here is a script for that: load('Location_0...

alrededor de 6 horas ago | 0

Answered
Passing data through fminsearch
One way is to nest the rss function: function [ par_hat , rss ] = finder % A wrapper function to avoid globals ...

7 días ago | 0

Answered
generate n random number between two numbers follow exponential distribution
With Cupid the command is somerands = TruncatedX(Exponential(lambda),a,b).Random(n,1);

8 días ago | 1

Submitted


RNGMgr
A class to facilitate saving RNG seeds when it may be desirable to regenerate the same sequence of random numbers.

9 días ago | 0 downloads |

Answered
Regression analysis; How do I detect a delayed relation between two signals
It sounds like you are looking for what is sometimes called "lagged regression". The basic idea is to use regular regression to...

13 días ago | 0

Answered
Using chi2gof to test two distributions
Sorry, the x's really do have to be the data values. Try this: bins=[0:9:81] xvals = bins(1:end-1)+4.5; % Here are some fak...

13 días ago | 0

| accepted

Answered
Using chi2gof to test two distributions
It looks like chi2gof expects the values in x to be the actual, original scores, not the bin counts. Try adding 'Frequency',x t...

14 días ago | 0

Answered
Find flattest line from matrix of vectors plotted against x values
If you want to find the y-matrix row with the least variation, you could simply find the row with the small std, range, or mean ...

14 días ago | 0

| accepted

Answered
Fitting a Gaussian to multiple data sets
If you are just trying to save the fit outputs, it seems like this should work: saveme = cell(size(y_data,2),1) % before the l...

15 días ago | 0

Answered
How to randomly present stimuli a specific number of times
If you want to present 48 stimuli, you need to replace your line for a =randperm(numel(d)) with something like this for a =nu...

19 días ago | 0

| accepted

Answered
How to generate covariance matrix (SIGMA) for mvnrnd function, given the marginal normal probability density functions of two random variables X and Y.
Since you have two mu's, sigma will be a 2x2 covariance matrix. Then numbers on the diagonal are the variances of the two RVs. ...

20 días ago | 0

Answered
Sampling based on a correlation matrix for multiple parameters?
Use mvnrnd for this. The parameter mu is a vector of the means for your p's, i.e. mu = [1800, 900, etc]. The parameter sigma i...

20 días ago | 0

| accepted

Answered
bootstrap confidence intervals on MDS data?
I'm guessing that you have some starting dataset, D1, and that your code sequence looks something like this: DforMDS = someFunc...

21 días ago | 0

Answered
How to pass a class name as argument to a function
I think the first classdef ("Aclass") works fine, as long as you pass to its constructor the handle of the class you want instan...

21 días ago | 0

| accepted

Answered
HOW to calculate the regression coefficient and p-value between Y and x, while excluding the effect of other variable?
There are different ways to do this, depending on what you mean by "removing the effect of z". One possibility: use regression ...

25 días ago | 0

Answered
generating random numbers from mixed beta gamma distribution
Here is one way to do this with Cupid % Create a custom mixture distribution: % Use whatever distribution parameters and mixtu...

26 días ago | 1

Answered
How can i sample from a distribution already fitted with allfitdist?
Try output = random(My(2).result,10000,1) Your command gives a 10000 x 10000 output matrix.

27 días ago | 0

| accepted

Answered
HOW TO SEPARATE NUMERICAL DATA FROM A TEXTFILE?
Sorry, I misunderstood completely. Maybe this will do what you want: level1 = mod(1:507,3)==1; level1_medians = median_height...

29 días ago | 0

Answered
HOW TO SEPARATE NUMERICAL DATA FROM A TEXTFILE?
mydata = readtable('1Oct6AM.txt','Headerlines',16); mymedians = CondMedians(mydata,'Var13','Var1') gives mymedians = Va...

29 días ago | 0

Submitted


BudgetCluster
Routines for running many tasks in parallel across several computers---essentially a low-budget, low-hassle substitute for a clu...

alrededor de 1 mes ago | 11 downloads |

Answered
Significance test for least squares line
Look at the regress command. You will want something like: [b,bint,r,rint,stats] = regress(Wind,Year); stats will contain the...

alrededor de 1 mes ago | 0

Answered
Zero-Inflated and Hurdle Models in Matlab (statistical distribution fitting)
You might be able to fit the distributions you have in mind using Cupid. For example, the following commands would define and p...

alrededor de 1 mes ago | 1

| accepted

Answered
Checking Conditions on Multiple-Variable Functions
Try fminsearch. Write a global error function to sum up the deviations from all conditions you want to satisfy, and fminsearch w...

alrededor de 1 mes ago | 0

| accepted

Answered
Global fitting with one shared paramenter
> I did not undertand how to specify that the parameters for the fitting [b(1) and b(2)] can be different > among the 4 dataset...

alrededor de 1 mes ago | 0

| accepted

Answered
HistFit with skewness and kurtosis
All normals have skewness=0, so histfit can't give you a normal that matches the skewness in your data. You'll have to try fitt...

alrededor de 1 mes ago | 0

Answered
Fitting Log Pearson Type III distribution in MATLAB
I think you can make a Log Pearson III distribution and estimate its parameters with the routines in Cupid . The attached demo ...

alrededor de 2 meses ago | 0

Answered
Standar Errors for variance components of non-linear mixed effect models
One way is to use the bootstrp function. For each bootstrap sample, you would write your own function to call nlmefit and save ...

2 meses ago | 0

| accepted

Answered
How to interpret statistics from glmfit
For interpreting the b values from a logistic regression, this pretty detailed explanation might be helpful.

2 meses ago | 2

| accepted

Answered
How to plot Central/Non-central chi square pdf?
You need to estimate the distribution parameter(s) from your 1000 data values (call them x). In principle you would use fitdist...

2 meses ago | 1

Load more