New Posts
  • Hi there guest! Welcome to PoliticalJack.com. Register for free to join our community?

Any stats or programming geeks out there?

Well this code doesn't quite do it... because it assumes that if Player1 does not score, Player2 gets possession. And "MakeItTakeIt" isn't quite played under those rules. For example if Player 1 "takes it in"...and player 2 steals the ball at the top of the key before the shot, Player 1 has to take it back to midcourt, but if Player 2 steals it back in the process, Player 2 still gets to drive for the basket.

You are making a bunch of simplifying assumptions. - which is OK, but understand how they are simpliflying.


What you really want underlying this statisitcally is A Markov Chain probability - IE where the Next State is dependent on the previous state http://www.dartmouth.edu/~chance/teaching_aids/books_articles/probability_book/Chapter11.pdf A Markov Chain is driven by a "Transition Matrix" between the states.

Player A takes in NextPlayer B Takes in NExt
Player A takes in (51%)51%49%
Loserly Player takes in (49%)49%51%

You then iterate on this matrix.

I believe the Arkady simulation is an example of a Markov process. If the state is "possession of ball" then who has the ball next depends on who currently has the ball. The Markov matrix is built into the 5.1/4.9 factors of the simulation.

I re-did the simulation using field goal percentage as the skill parameter. Say stats have been kept over time and Player 1 makes 51% of his shots when he has possession, and player 2 makes 49%. Note: there's no reason the 2 numbers need to add to 100. Also, the first player to 20 points wins, so no ties. When I carried out the simulation I got these results:

Game object: first player to 20 wins.
Possession rule: make-it-take-it
Player 1 skill: 51.0% field goal percent (based on stats over time)
Player 2 skill: 49.0% field goal percent (based on stats over time)
RESULTS:
Player 1: 56951 (%56.95) wins, Player 2: 43049 (%43.05) wins

If you change skill levels to 52% and 48%:

Game object: first player to 20 wins.
Possession rule: make-it-take-it
Player 1 skill: 52.0% field goal percent (based on stats over time)
Player 2 skill: 48.0% field goal percent (based on stats over time)
RESULTS:
Player 1: 64046 (64.05%) wins, Player 2: 35954 (35.95%) wins
 
You mean like Ayds Diet Candy.

Oh,yes,helped me lose 20 lbs after my first son was born.1000 calories a day,using Ayds caramels for sweet tooth and when I went back to the Doctor he did a double take when he saw me. One of the best moments of my life.

I had asked him for diet pills.They were all the rage back then.he told me the best exercise was to push back from the table. Made me mad and I showed him:eek:) I was skinny.
 
Yeah. Now that I'm thinking about it more clearly, I've got a better feel for why the stronger player is helped a little by being able to retain the ball.

Arkady,you have hit the big time,Jonny is the mastermind behind PJ and never posts. I would like to see inside his mind. He can solve anything:eek:)
 
I love this kind of thing. I should have gotten into programming. The problem-solving thing gives me such a kick. Nice to have someone who knows what he's doing put an oar in.
 
Wanna know the embarrassing thing? Since I was at work with no access to any programming tools, I just did my simulation on Excel, with functions like "RAND(0)" and some if-then functions. After I came up with a simple cell-based algorithm for one possession, I copy and pasted it for a hundred rows, and did a sum for the game, then copied and pasted all of that to the bottom of the spreadsheet, for as many games as I could fit, before doing a sum for the whole table. Clunky as hell, but the fact the numbers you got with Perl were nearly identical suggests it held together.
 
Free College education for any student that gets admitted. BUT for the next 20years - they pay a 5% excise tax on their income that goes back into the tuition fund

That's an interesting idea. However, as a money-saver, I'd probably also want to implement a few additional provisions. For example, the deal might be linked to having one of a certain set of majors -- to help encourage people to study under-supplied fields like engineering, versus fields where the state is unlikely to recover its investment. I'd also link it to maintaining a certain GPA. And I might require that for a school's students to be eligible for the deal, the school would need to keep its tuition and fees below some set level (inflated annually by CPI), so that schools have more of an incentive to control costs than they otherwise do in a situation where students aren't paying anything.
 
Back
Top