Your question, your audience. Choose who sees your identity—and your question—with question security.

Let's say i had a group of numbers and now i know the mean, median, mode, and range for this group how do i calculate the variance?

Now let's say i want to statistically create a new list based off of the information from the first list.

How would i go about doing that?

Basically what i'm looking for is a way to create a new list with the size of the new list to be specified by the user and once created it will have the same statistical distribution with some randomness and variance built into it.

Easy examples would be nice! :>)

Now let's say i want to statistically create a new list based off of the information from the first list.

How would i go about doing that?

Basically what i'm looking for is a way to create a new list with the size of the new list to be specified by the user and once created it will have the same statistical distribution with some randomness and variance built into it.

Easy examples would be nice! :>)

FTP Append Method Date: 07/02/2001 09:13AM PST

http://www.experts-exchange.com/visualbasic/Q_20144619.html

Thanks,

Anthony

Making the new list depends on the distribution type you are interested in.

So if my list was

1,2,3,4,5,6

The variance would be

1 + 4 + 9 + 16 + 25 + 36 = 91/6 = 15.1

I guess this seems high since each number is only 1 apart, or it's just because i don't know how you use the variance.

1,2,3,4,5,6

The average = (1+2+3+4+5+6)/6 = 21/6 = 3.5

The variance would be

(3.5-1)^2 + (3.5-2)^2 + (3.5-3)^2 + (3.5-4)^2 + (3.5-5)^2 + (3.5-6)^2 = 2.5^2 + 1.5^2 + .5^2 + -.5^2 + -1.5^2 + -2.5^2 = 17.5

It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will ask a Community Support Moderator to:

Accept aikimark's comment(s) as an answer.

jrcp, if you think your question was not answered at all or if you need help, just post a new comment here; Community Support will help you. DO NOT accept this comment as an answer.

EXPERTS: If you disagree with that recommendation, please post an explanatory comment.

==========

DanRollins -- EE database cleanup volunteer

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.

==========================

I would try to create your new list similar to the following:

For I=0 to Ubound(itemarray) -2 Step 2

itemarray(I) = avg + rnd() * (StandardDeviation/N)

itemarray(I+1) = avg - rnd() * (StandardDeviation/N)

Next

Where StandardDeviation/N is the square root of the variance divided by the number of items in the list.

Note: this assumes that you have an even number of items in your array. Otherwise, you will have to create a random number = (rnd() * (StandardDeviation/N) * 2) -(StandardDeviation/N)

to be added to each item in the array.