Rise of Kingdoms: Holiday Events
Using probability to estimate the number of items required to complete Rise of Kingdoms events
February 15, 2019
Table of Contents
Rise of Kingdoms holiday events come around every few months. The last one involved collecting ornaments for the Christmas tree, and the current Valentine’s Day event requires collection of roses. Using a rose gives you points, and you need a certain number of points to complete the event. We know how many points are needed in total to complete the event (2888 in the case of Valentine’s Day), but the problem is that each rose gives you a varying number of points due to critical hits. For example, using one rose could give you 1 point or it could give you 8 points. So how many roses do you actually need to complete the event? We can get an (approximate) answer to this using probability.
Data collection
First, we need some data. I used 500 roses and recorded how many points each rose gave. Here you can see the frequency with which a rose gave a certain number of points:
Points | Frequency |
---|---|
1 | 289 |
2 | 131 |
3 | 57 |
5 | 17 |
8 | 6 |
A few things to note. This is a small sample size, so I didn’t see any x4
, x6
, or x7
critical hits. They might be possible, they might not be. You will get 1 point the majority of the time, and there appears to be an decay in frequency as the point value increases.
Probabilities and Expected Values
Based on the sample data, we can calculate the probability of each point value occurring. To formalize things a bit, let X be a discrete random variable representing the number of points gained from a single use of a rose. The probability mass function can be calculated from the sample by dividing the frequency of each point value by the total number of observations:
Once we know the mass of X
we can calculate its expected value, which tells us the number of points we can expect to receive for each rose:
Therefore, we can expect to receive 1.71 points per rose.
How many roses do we need?
Given that we need 2888 points in total, and each rose provides 1.71 points, the total number of roses required is simply 2888 ÷ 1.71 = 1688.89
.
Bear in mind that 1) we had a small sample size and 2) we are dealing with probabilities, so there will be some amount of error around that estimate. Regardless, that is a good ballpark estimate of how many roses you should save up to complete the event.
Similar calculations can be done for any of the holiday events, although the probabilities may vary so it would be wise to gather a new sample for each event before calculating the expected value.
If you’re interested, you can find my other Rise of Kingdoms posts here.