Community Profile # the cyclist

### Alden Scientific

Last seen: Today 2011 이후 활성

Head of Modeling and Statistics at Alden Scientific. Obsessive runner. Professional Interests: Predictive modeling, statistics. (I don't respond to email via author page, but will usually look at a question if you send me a link to it.)

Programming Languages:
Python, R, MATLAB, SQL
Spoken Languages:
English

#### Statistics

All
• • • • • • • • • • • • 배지보기

#### Content Feed

보기 기준

답변 있음
How to iterate until a point satisfies a certain condition?
You need to code the condition into a while loop. (I didn't fully understand the condition, so I can't be more specific than th...

4일 전 | 0

답변 있음
Changing data from a list to a matrix
Can we make a simplified example, to understand what you mean? Suppose you just have 3 columns of data, and your function is f(x...

4일 전 | 0

| 수락됨

답변 있음
How to fill surface with interpolated values?
Your code does not seem to have a call to interp2, so I'm not sure what might have gone wrong there. If you did not specify an ...

6일 전 | 0

답변 있음
add a row of summary statistics in a table
Here is one way: % The table T = table([10;5],[17;18],'VariableNames',{'visitor','temperature'},'RowNames',{'New York','Chicag...

7일 전 | 0

답변 있음
How can decimals not be rounded
Here is one way: roundTo = 2; % Set this value float_number = 5.126; % User's value % Algorithm roundToPower = 10^roundTo;...

9일 전 | 1

| 수락됨

답변 있음
Why I am getting Same p-value, h and stats while using Wilcoxon Rank test for 7 different data set?
That test statistic only depends on the count and relative ordering of the respective set elements. In your case, it looks like ...

12일 전 | 0

답변 있음
find the best linear regression model using stepwiselm
First, I feel obligated to mention that stepwise regression is often criticized as a technique. This wikipedia article discusses...

15일 전 | 0

| 수락됨

답변 있음
Error usin .* Too many output arguments. How to save three variables at the same time in a loop?
Given the image of the calculation you posted, I think you want matrix multiplication, not elementwise multiplication: [V01(a,1...

17일 전 | 0

답변 있음
Randomly generated numbers do not change themselves with each iteration
Can you post your code? This miniature version of what you described seems to work. rng default format long for l = 1:4 ...

17일 전 | 0

답변 있음
check each element of random vector c=[0, 1, 0, 1,.....n] one by one if value of current element is 0 and previous element is 0 perform this action otherwise another action.
I didn't fully understand what you are trying to do with your code, but I think the following will help you. To find all the lo...

17일 전 | 0

답변 있음
How to extract matches from results of a regexp match
Even when using a single character array input along with the 'match' option, MATLAB has to return outputs in a cell array, to b...

17일 전 | 0

답변 있음
Your question is not perfectly clear to me, but it seems that cellfun might do what you want: A = {1,[2,3;4,5],6}; B = {2,[3,4...

17일 전 | 0

답변 있음
plotting 2 models on one histogram
Here is a hint to get you started. N = 1000; x1 = randn(N,1); x2 = randn(N,1) + 2; figure hold on histogram(x1) histogr...

18일 전 | 0

답변 있음
Is it suitable to include dependent varible when conducting PCA?
I've never used PCA on time series data, and I had never heard of anyone doing so, but googling PCA time series does turn up som...

20일 전 | 0

답변 있음
How to write to in MATLAB, translated from R
String concatenation in MATLAB can be done as "addition": i = 7; "output/" + i + "_script.m"

23일 전 | 0

답변 있음
write superscript in string
It could be the interpreter. Does this work for you? R2 = 0.75; t = sprintf('R^2 = %0.2f',R2); title(t,'interpreter','tex') ...

25일 전 | 0

| 수락됨

답변 있음
How to replace non consecutive value on a vector?
Here is an absolutely terrible, obfuscated way to do this: A = [5,5,5,5,5,4,5,5,5,5,4,4,5,5,5,5,4,4,4,5,5,5,5]; SA = char(A)...

25일 전 | 0

답변 있음
Vector as an input in function
a = 2; b = 3; v = [a; b]; f_out = f(v) function out = f(v) out = 5*v(1) + 7*v(2); end

27일 전 | 2

답변 있음
How do I convert a non-normal distribution to an equivalent normal distribution?
A few thoughts that might be useful, if not exactly a complete answer to your question ... First, I hope it is clear that not a...

29일 전 | 2

답변 있음
I am trying to figure out how to plot my data.
You don't say what kind of figure you want. I suggest you look at the MATLAB Plot Gallery. If you see something like what you wa...

약 1달 전 | 0

답변 있음
roots(x) vs root= interp1(y,x,0)
It's not clear, at least to me, what you mean by "root = interp1 command". But, my best guess is that if you were somehow trying...

약 1달 전 | 0

답변 있음
How to present my outcomes in the form of a confusion matrix
If you have the Statistics and Machine Learning Toolbox, you could use the confusionchart or confusionmat command.

약 1달 전 | 0

답변 있음
Defining upper and lower control limits for a graph
Here is a simple example of setting plot limits based on the data. (The last line of code is where I set the limits.) x = 1:50;...

약 1달 전 | 0

답변 있음
Create a legend according to the colors of a scatter plot
Unless I have misunderstood your question, you should be able to do this using the gscatter command. The legend will be tied to ...

약 1달 전 | 1

답변 있음
why cntrd function error
If you are talking about this particle tracking code, you might want to reach out to that team. You might not find very many peo...

약 1달 전 | 0

답변 있음
split data into 5 train and test data
You can use the cvpartition function to do this, if you have the Statistics and Machine Learning Toolbox. If you don't have tha...

약 1달 전 | 0

| 수락됨

답변 있음
What is the Len function do? It used to exist in MatLab 4.2, but now it doesn't any insight?
To my knowledge, there has never been a function called len() or Len() in MATLAB. But, I wonder in your case if len() is a user...

약 1달 전 | 1

| 수락됨

답변 있음
find first& end of array
I expect someone will post a more elegant method, but I think this does what you want S=[0 1 5 2 0 0 0 9 3 50 53 0 0 5 7 4]; ...

약 1달 전 | 0

답변 있음
How do I make a World Cup simulator with MATLAB?
You can use the randperm function to select 2 out of 4 teams to advance in each section. rng default A={'Qatar';'Ecuador';'S...

약 1달 전 | 0

| 수락됨

답변 있음
Hypothetical Factorial Question Solution
I don't really intend this to be a serious answer to your question, but according to the internet, this formula will work up to ...

약 1달 전 | 0