« first day (2722 days earlier)      last day (567 days later) » 

5:04 AM
Goodmorning all
 
 
2 hours later…
7:32 AM
Morning :)
 
 
4 hours later…
11:28 AM
Create two additional columns with names Nominations and Wins.
Both columns should be filled in by extracting random numbers from
a uniform distribution and should always satisfy the rule
NN ominations ≥ NW ins. The Nominations should be in the range [0,10]
If I sample from a uniform distribution for one column lets say, how can I ensure that the values sampled for the 2nd column will be uniformly distributed IF I restrict them to be smaller than column 1?
It's been bothering me for a couple of days now :P
 
12:20 PM
@Sotos can't you draw a uniform from your number + 1 ? or add numbers from a uniform ? (maybe I'm just suggesting garbage, sorry if that's the case :/ )
 
@Cath interesting. Let me try that :D
The +1 wont work
 
1:02 PM
Could it be you draw the Wins first, then draw the nominations from a uniform of min(Win):10 range with retry when the draw Nomination is < Win for the observation ? (Not super clear maybe)
 
@Tensibai yep, @Sotos, that was what I meant by "start at +1" :)
but probably "add number from a uniform" is a better bet ?
 
Wins <- runif(x, 0,10)
Nominations <- runif(x, min(Wins), 10)
Now the problem is ensuring there's enough Nominations ensuring Nominations > Wins
I.e: redo the Nominations draw if any(sort(Nominations) < sort(Wins)) ?
(Not ideal I know)
 
1:55 PM
Alright, I'll ask more questions in the first one — Cassiopeia 38 mins ago
^^^ this is why we should just close homework posts :D
 
2:42 PM
@Sotos sample both, say 10000 times, and subset as many as needed where condition is met.
 

« first day (2722 days earlier)      last day (567 days later) »