Rise of Kingdoms: Saving gold keys

Here it is. The answer to the age-old question. The question that shows up at least once a day on Reddit and Discord: "should I save my gold keys and open them all at once?". The assumption being that opening gold keys together in a batch gives more/better rewards than opening them one at a time. In this post we will test whether that is true. As always, you can find the code and dataset for this analysis in my GitHub repo here. Samples and expected distributions We'll begin with a quick primer on expected/population distributions and how they relate…

2 Comments

Rise of Kingdoms: Show Your Love Event

In a previous post I discussed the point requirements of the last holiday event (Valentine's Day - Pledge of Thorns). Here, I will do the same analysis with the new holiday event (Show Your Love) to confirm those findings. I'll be drawing comparisons between the two events throughout. The supporting code and data for this analysis can be found here. Data collection for event I began by using 800 items (Carnations) and recorded how many points each item provided. Below (left) you can see the frequency distribution of the points provided for each item, as well as the distribution from…

0 Comments

Rise of Kingdoms: Master’s Blueprints

In order to unlock Tier 5 research in Rise of Kingdoms you need a level 25 Academy. However, the upgrade to Academy level 25 has a number of nested building requirements, with the majority of those buildings needing a Master's Blueprint. So, what is the minimum number of Master's Blueprints required to unlock Tier 5 research? Here are the building requirements for a level 25 Academy and unlocking Tier 5: City hallAcademyTrading postGoldmineScout camp (no blueprint)Watchtower (no blueprint)WallTavernQuarryStorehouseHospitalCastle (no blueprint)Alliance centerSiege workshopBarracksFarmArchery rangeLumber MillStable(requires a Quarry but is already listed above) At minimum, you will need 16 Master's Blueprints, which…

0 Comments

Rise of Kingdoms: Holiday Events

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…

0 Comments

Rise of Kingdoms: Commander Pairings

Rise of Kingdoms (iOS, Android) has many possible primary/secondary commander pairings, some of which are amazing, while others are absolutely terrible. Tier lists for commander pairings have been discussed by many people on YouTube, but I wanted to find a way to condense the information in those lengthy videos into a more digestible form. The goal was to create a quick and easy-to-use resource that could answer the question: "which commander works best with ____?" I ended up creating D3.js force-directed graphs to show viable pairings between primary and secondary commanders, along with the rank for each pairing. One neat thing about…

10 Comments

Qualtrics: Conditional display of images

Let's say you want to create a Qualtrics survey where you assign respondents to groups, and you want to display certain images depending on their group assignment. For example, if they're assigned to Group 1 you want a question item to display one set of images, while a different set will be shown to Group 2. Qualtrics doesn't offer a built-in way to do this. However, it does provide the ability to use custom Javascript and CSS, which we can use to display images conditionally. You can see this in action here. The steps are fairly straightforward: In the question…

0 Comments

Overwatch Data Visualization

In a previous post I talked about an Overwatch dataset I've been collecting from my ranked games. Before running any statistical analysis on the Overwatch data, it is usually a good idea to explore and visualize the dataset. This helps us get a general sense of data patterns, which can help generate hypotheses that can then be tested with more formal statistical models. My own personal philosophy about data visualization/exploration is to approach it with targeted questions of interest. It is all too easy to fall down the rabbit hole of plotting absolutely everything, without a sense of what the…

0 Comments

Overwatch Ranked Data

I started playing Overwatch towards the end of Season 2 and I thought it would be interesting to start collecting data from my own ranked games. The goal was to maintain a dataset of Overwatch ranked data that I could analyze to better understand how skill rating (SR) changes as a function of, for example, win/loss streaks and medals. I have made the dataset public in case anyone wants to run their own statistics or visualizations. However, I only have a few seasons worth of data as I took a break from the game after Season 4, and picked it up again…

0 Comments

Colour image classification (CIFAR-10) using a CNN

As I mentioned in a previous post, a convolutional neural network (CNN) can be used to classify colour images in much the same way as grey scale classification. The way to achieve this is by utilizing the depth dimension of our input tensors and kernels. In this example I'll be using the CIFAR-10 dataset, which consists of 32x32 colour images belonging to 10 different classes. You can see a few examples of each class in the following image from the CIFAR-10 website: Although previously I've talked about the Lasagne and nolearn packages (here and here), extending those to colour images…

0 Comments

Visualizing Convolutional Neural Networks using nolearn

We previously talked about Convolutional Neural Networks (CNN) and how use them to recognize handwritten digits using Lasagne. While we can manually extract kernel parameters to visualize weights and activation maps (as discussed in the previous post), the nolearn package offers an easy way to visualize different elements of CNNs. nolearn is a wrapper around Lasagne (which itself is a wrapper around Theano), and offers some nice visualization options such as plotting occlusion maps to help diagnose the performance of a CNN model. Additionally, nolearn offers a very high level API that makes model training even simpler than with Lasagne. In…

0 Comments
  • 1
  • 2