<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.10.0">Jekyll</generator><link href="https://jme2103.github.io/feed.xml" rel="self" type="application/atom+xml" /><link href="https://jme2103.github.io/" rel="alternate" type="text/html" /><updated>2026-01-17T03:12:37+00:00</updated><id>https://jme2103.github.io/feed.xml</id><title type="html">Jonathan Epstein</title><subtitle>Mathematician &amp; Educator</subtitle><entry><title type="html">Standard Map</title><link href="https://jme2103.github.io/2026/01/16/twistmap.html" rel="alternate" type="text/html" title="Standard Map" /><published>2026-01-16T00:00:00+00:00</published><updated>2026-01-16T00:00:00+00:00</updated><id>https://jme2103.github.io/2026/01/16/twistmap</id><content type="html" xml:base="https://jme2103.github.io/2026/01/16/twistmap.html"><![CDATA[<p>A visualization of the standard map</p>

\[\begin{aligned} r_{n+1} &amp;= r_n + \epsilon \sin(\theta_n) \\ \theta_{n+1} &amp;= \theta_n + r_{n+1} \end{aligned}\]

<p>as it is perturbed from completely integrable ($\epsilon = 0$) to the coexistence of invariant tori with chaos. Fifty orbits corresponding to fifty initial conditions are plotted as $\epsilon$ ranges from $0$ to $1$.</p>

<p><img src="/assets/images/twistmap.gif" alt="image" /></p>]]></content><author><name>Jonathan Epstein</name></author><summary type="html"><![CDATA[A visualization of the standard map]]></summary></entry><entry><title type="html">Quirks of Shapefiles</title><link href="https://jme2103.github.io/2025/08/28/blk-overlay.html" rel="alternate" type="text/html" title="Quirks of Shapefiles" /><published>2025-08-28T00:00:00+00:00</published><updated>2025-08-28T00:00:00+00:00</updated><id>https://jme2103.github.io/2025/08/28/blk-overlay</id><content type="html" xml:base="https://jme2103.github.io/2025/08/28/blk-overlay.html"><![CDATA[<p>Don’t count on shapefiles from different sources playing nicely together.</p>

<p>Following the passage of a county council expansion ballot question in 2024, Baltimore County established a commission to redraw the councilmanic districts. The commission’s final proposal was released a few weeks ago along with the shapefile. Here is a plot of the proposed nine new new districts (currently there are seven). <img src="/assets/images/new_plan.png" alt="image" /> I was hoping to do some analysis on this plan and got some block-level shapefile and demographic data from the 2020 census. I tried to assign each block to one of the districts by checking which district polygon contains each block polygon. However, geopandas was unable to assign 722 of the 9125 blocks. The commission may have decided to split a census block into two separate districts. But the plot below of the unassigned blocks seems the suggest that this is a data issue. <img src="/assets/images/unassigned_blks.png" alt="image" /> The unassigned blocks seem to follow the boundaries of the districts (or they contain water features). I randomly selected one of the unassigned blocks (geoid: 240054036023003). This block (red) seems like it should have been assigned to the district 3 (blue). <img src="/assets/images/dist_blk_street_overlay.png" alt="image" /> Zooming in a little bit, you can see the presumably straight boundary between the Baltimore County and Baltimore City is not actually so… <img src="/assets/images/zoomed_in.png" alt="image" /> …and zooming in a little more… <img src="/assets/images/really_zoomed_in.png" alt="image" /> …you can see that the edge of the district polygon actually cuts through the very bottom of this block. This is why the <code class="language-plaintext highlighter-rouge">GeoPandas.contains</code> function was unable to assign this block to a district. Since the district map was drawn by the commission (presumably using County data) and the block data was taken from a federal agency, I presume that each entity has their own methods and error tolerances, resulting in misalignment. To get a 1-1 assignment of blocks to districts, I ended up using the <code class="language-plaintext highlighter-rouge">maup</code> package. It computes the area of each blocks intersection with each of the districts and assigns to the one with most.</p>]]></content><author><name>Jonathan Epstein</name></author><summary type="html"><![CDATA[Don’t count on shapefiles from different sources playing nicely together.]]></summary></entry></feed>