{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Computing the optimal path for finding Waldo" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "This notebook provides the methodology and code used in the blog post, [Here’s Waldo: Computing the optimal search strategy for finding Waldo](http://www.randalolson.com/2015/02/03/heres-waldo-computing-the-optimal-search-strategy-for-finding-waldo/).\n", "\n", "### Notebook by [Randal S. Olson](http://www.randalolson.com/)\n", "\n", "Please see the [repository README file](https://github.com/rhiever/Data-Analysis-and-Machine-Learning-Projects#license) for the licenses and usage terms for the instructional material and code in this notebook. In general, I have licensed this material so that it is widely useable and shareable as possible." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Read the data into a pandas DataFrame" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Since we already have all 68 locations of Waldo from [Slate](http://www.slate.com/content/dam/slate/articles/arts/culturebox/2013/11/131111_heresWaldo920_1.jpg.CROP.original-original.jpg), we can jump right into analyzing them. " ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", " | Book | \n", "Page | \n", "X | \n", "Y | \n", "
---|---|---|---|---|
count | \n", "68.000000 | \n", "68.000000 | \n", "68.000000 | \n", "68.000000 | \n", "
mean | \n", "3.514706 | \n", "6.058824 | \n", "6.700776 | \n", "3.875306 | \n", "
std | \n", "1.856756 | \n", "3.411492 | \n", "3.703276 | \n", "1.941349 | \n", "
min | \n", "1.000000 | \n", "1.000000 | \n", "0.625000 | \n", "0.333333 | \n", "
25% | \n", "2.000000 | \n", "3.000000 | \n", "3.513889 | \n", "2.250000 | \n", "
50% | \n", "3.000000 | \n", "6.000000 | \n", "6.694444 | \n", "3.927083 | \n", "
75% | \n", "5.000000 | \n", "9.000000 | \n", "10.062500 | \n", "5.291667 | \n", "
max | \n", "7.000000 | \n", "12.000000 | \n", "12.444444 | \n", "7.708333 | \n", "