Live data from Hacker News

Show HN: A basketball hoop to maximize shots that go in [video]

youtube.com

81–90 of 172 posts

Re: Show HN: A basketball hoop to maximize shots that go in [video]

#81
post #18
post #16

Any physics experts know what the actual optimal shape is? I imagine it would be a pretty gnarly problem to work out.

Well, IIRC, theatrical lights use parabolic reflectors to focus a non-point source into a point on a lens, so that might be a good place to start.

Light and sound gets to ignore gravity.

Re: Show HN: A basketball hoop to maximize shots that go in [video]

#83
post #69

Really impressed with the use of Monte Carlo method. A while back I ran into some resistance trying to advocate simpler statistical methods to solve a problem domain similar to this, while the team in question repeatedly wanted to reach for a machine learning solution. I'd love to know if I was wrong here. In my mind, when an algorithmic or heuristic path to a solution is available, we should attempt it first before…

The first arduous task of a ML solution is to get on parity with computing basic statistics on the data coming in, and there are many fail points before and after that point. Saying 'we need a ML solution' is a lot like saying 'we need to write this in assembly'

Re: Show HN: A basketball hoop to maximize shots that go in [video]

#84
post #78
post #69

Really impressed with the use of Monte Carlo method. A while back I ran into some resistance trying to advocate simpler statistical methods to solve a problem domain similar to this, while the team in question repeatedly wanted to reach for a machine learning solution. I'd love to know if I was wrong here. In my mind, when an algorithmic or heuristic path to a solution is available, we should attempt it first before…

A common trap in tech is to reach for the fanciest tool instead of the simplest. The best engineering often comes from mastery of the simple tools, and the most beautiful engineering is the one that makes you say 'that's so obvious, why didn't anyone ever come up with that before?'

One of my favorite software solutions that I came up with was “human learning” powered. A few years ago I was working as the engineering manager at a small company. I had 8 other people who I was in charge of and we had moved to a new office in the middle of this. Our team took up two rooms in the office and I had to figure out who would be sitting where. I had some preconceived notions of who would be productive together, who would annoy each other, etc., but there were enough possible combinations to make this a large enough search space.

So I wrote a very simple python script that would randomly generate layouts of who would sit in each room and next to whom. Every time it gave me a result I scanned it for conditions that would make it not work and add a rule to skip such configurations. After about six such edits I got a layout I thought was acceptable. The team as far as I know was happy and nobody questioned it for the entire time we were there. This saved me time because I didn’t have to pre-program all the conditions, only add ones I had already seen not work. Saved both CPU and brain cycles, so to speak.

Re: Show HN: A basketball hoop to maximize shots that go in [video]

#85
post #78
post #69

Really impressed with the use of Monte Carlo method. A while back I ran into some resistance trying to advocate simpler statistical methods to solve a problem domain similar to this, while the team in question repeatedly wanted to reach for a machine learning solution. I'd love to know if I was wrong here. In my mind, when an algorithmic or heuristic path to a solution is available, we should attempt it first before…

A common trap in tech is to reach for the fanciest tool instead of the simplest. The best engineering often comes from mastery of the simple tools, and the most beautiful engineering is the one that makes you say 'that's so obvious, why didn't anyone ever come up with that before?'

Another common trap is to believe a widely known simple method must be better just because you are unfamiliar with state of the art research.

Many times people have specifically researched why a certain method is better than status quo in practice, on real world data with real world operating constraints.

A good example is the paper “Let’s Put the Garbage-Can Regressions and Garbage-Can Probits Where They Belong” - explain an extremely common and hugely severe problem with “garbage can” regression models.

http://www.saramitchell.org/achen04.pdf

Re: Show HN: A basketball hoop to maximize shots that go in [video]

#86

Does this only work if you’re exactly aligned in front of the hoop? (eg Free-Throw Line)

Actually from the video, he miscalculated so it's optimized only when the basket is farther away then usual from the backboard. I would theorize that this may have made the solution work better, albeit unintentionally.

Re: Show HN: A basketball hoop to maximize shots that go in [video]

#87

Nope, expected something interesting, but this is based on a boring brute-force simulation. He did hint at using a parabolic shape, like in satellite dishes. Why not use some actual calculus and differential equations to figure out the optimal parabolic-like shape here?

How is it different from a Newton-Raphson approach, which requires you to make an initial guess as it iterates through several derivatives to get to the root?

Re: Show HN: A basketball hoop to maximize shots that go in [video]

#88
post #18

Earlier quoted context omitted.

Well, IIRC, theatrical lights use parabolic reflectors to focus a non-point source into a point on a lens, so that might be a good place to start.

Light and sound gets to ignore gravity.

Haha well light can, if far enough away from a black hole!

Re: Show HN: A basketball hoop to maximize shots that go in [video]

#89
post #29

Can someone briefly eli5 how the Monte Carlo simulations feed into learning the optimal surface?

You pick a random position and a random shot (angle, speed), see where it hits the backboard, and then change the angle of the backboard there to direct the ball through the rim after the bounce. Do this enough times, and you have a surface. (I don't know how the number work out, so there are probably points that have multiple values and surfaces with discontinuities. I guess you average the values at a given point and then smooth the surface, and call that "as good as possible".)

Re: Show HN: A basketball hoop to maximize shots that go in [video]

#90

Earlier quoted context omitted.

If you fix the position of the 'thrower' and just throw them at ridiculous speeds so gravity doesn't matter you'd end up with a hyperbolic backboard. So annoyingly for an 'optimal' solution you'd need to specify where people can throw from and how fast. Frankly you might as well just use a hyperbola with one foci on the hoop and the other on the middle of the court, or maybe a point slightly higher than the court its…

Wouldn't you rather want an ellipsoid with the thrower at one focus and the hoop at the other?

I may have gotten things the wrong way around. You definitely want whatever conic has the foci in the right spots.
Post reply on HN