Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

1
Generating a random value and then adjusting it
Post Flair (click to view more posts with a particular flair)
Post Body

Hi. I have a dataset that, in part, contains a lot of rows that give Min, Mode (most likely) and Max values for a particular phenomenon, as follows;

Min Mode Max 1 2 10 3 7 20 2 13 19 5 22 60 Etc

For a simple simulation Iโ€™m doing, I need to generate, for each row, a value that lies between the Min and the Max (so RANDBETWEEN is fine), but is then adjusted in some way to take the Mode into account.

If I dont do this adjustment, the random value for each row would, over multiple runs, average out at the mean. But the given mode rarely lies at that point (it generally but not always lies somewhere to the left of the mean. I summed each of the Min, Mode and Max columns and the sum of the Modes is about a third of the way from the sum of the Mins and two thirds from the sum of the Maxs)

I also donโ€™t want to just use the Mode in my simulation, as I want to have the possibility that big or small values (ie close to the Max or Min) will fairly routinely feature on particular rows, as I know they replicates the real world situation Iโ€™m simulating.

What do people think a sensible formula would be in this situation?

Author
Account Strength
100%
Account Age
11 years
Verified Email
Yes
Verified Flair
No
Total Karma
9,711
Link Karma
7,163
Comment Karma
2,408
Profile updated: 5 days ago
Posts updated: 7 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
3 years ago