Ping-pong relief map of a given function $z=f(x,y)$ - MathOverflow most recent 30 from http://mathoverflow.net 2013-05-20T13:38:54Z http://mathoverflow.net/feeds/question/69635 http://www.creativecommons.org/licenses/by-nc/2.5/rdf http://mathoverflow.net/questions/69635/ping-pong-relief-map-of-a-given-function-zfx-y Ping-pong relief map of a given function $z=f(x,y)$ Joseph O'Rourke 2011-07-06T13:21:22Z 2011-07-06T20:27:33Z <p>I have an idea to design a type of <em>Galton's Board</em> to "draw" a relief map of a given two-dimensional function $z=f(x,y)$. A typical <a href="http://en.wikipedia.org/wiki/Bean_machine" rel="nofollow"><em>Galton's Board</em></a> drops, say, ping-pong balls through a series of evenly spaced pins into vertical bins to demonstrate that the balls distribute according to the binomial distribution, approximating the normal distribution: <br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <img src="http://cs.smith.edu/~orourke/MathOverflow/GaltonBoard.jpg" alt="Galton's Board" /> <br /> (See this <a href="http://animation.yihui.name/prob:bean_machine" rel="nofollow">this link</a> for an animation.)</p> <p>First I would like to generalize this design to approximate an arbitrary function $y=f(x)$, which leads to my first question:</p> <p><b>Q1.</b> Which class of functions can be represented as a convex combination of normal distributions?</p> <p>I know these functions are called <a href="http://en.wikipedia.org/wiki/Mixture_distribution" rel="nofollow">mixture distributions</a>, but I have not found a description of the total class representable. I am hoping that (say) any smooth function can be approximated.</p> <p><b>Q2.</b> Given a function $f(x)$ to approximate, how could one work backward to a pin distribution that would realize the approximation?</p> <p>The result would be a type of user-designed <a href="http://en.wikipedia.org/wiki/Pachinko" rel="nofollow">Pachinko machine</a>.</p> <p><b>Q3.</b> Can the above be generalized to two-dimensional functions $f(x,y)$?</p> <p>Presumably the answer is <em>Yes</em>. If so, one could imagine a potentially mesmerizing <a href="http://mathoverflow.net/questions/50343/" rel="nofollow">Museum of Math</a> display in which some famous visage emerges slowly as a ping-pong relief map. <br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <img src="http://cs.smith.edu/~orourke/MathOverflow/HandFaceImprint.jpg" alt="Imprint Toy" /> <br /> <b>Q4.</b> This final thought raises the question of which mathematician's face would be simultaneously most appropriate and most recognizable. :-) <a href="http://en.wikipedia.org/wiki/Galton" rel="nofollow">Sir Francis Galton</a> is certainly appropriate...</p> http://mathoverflow.net/questions/69635/ping-pong-relief-map-of-a-given-function-zfx-y/69656#69656 Answer by Gerhard Paseman for Ping-pong relief map of a given function $z=f(x,y)$ Gerhard Paseman 2011-07-06T18:44:46Z 2011-07-06T18:44:46Z <p>This is a partial answer to Q2, and suggests to me that there is a physical arrangement which would give a yes answer to Q3.</p> <p>If you use ordinary pins, you can probably get a dyadic approximation with some arrangement. Let me suggest using weighted pins as a partial solution, and then perhaps someone can implement a close enough approximation to a weighted pin with a series of dyadic pins.</p> <p>So normalize things so that the function f has integral one over the interval [0,1], and is to be approximated by 2^k bins. Suppose p in [0,1] is the fraction of balls needed to represent the function on [0, 1/2], equivalently p is the integral of f from [0,1/2]. Then place a weighted pin very high such that it dumps p of the balls toward the pin over the interval [0, 1/2]. (You may want to put a divider right under this pin so that the ball doesn't jump to the [1/2,1] side.) Now recurse (k-1) more levels. Working backwards from this to get a horizontal arrangement should be clear, and of course one can use the physics of the situation to change the endpoints from dyadic rationals to something more appropriate to the desired function f.</p> <p>It may be possible to emulate the bias by ever so slight horizontal adjustments of the pins, but you need to place the later pins just so that their bias accomodates the various trajectories of the incoming ball. But of course we have infinite precision pins and balls, so what's to worry?</p> <p>Gerhard "Likes The Unreality of Mathematics" Paseman, 2011.07.06</p>