mattphotonman/bc
Template for Software Carpentry bootcamp site repository.
Code to solve the "Fox Hole Problem": http://gurmeet.net/puzzles/fox-in-a-hole/
This repository is cataloged as part of our automated global GitHub synchronization. Full telemetry, velocity snapshots, and code summaries are scheduled for continuous enrichment.
Template for Software Carpentry bootcamp site repository.
NOTE: CODE UNFINISHED. Code to find the optimal strategy for getting a certain combination (e.g. Yahtzee, four of a kind, full house) in a turn of Yahtzee, and to calculate the probability of getting it if you follow the optimal strategy. The desired combination is encoded by specifying point values for each possible roll of the dice at the end of the turn, and the code finds the strategy that maximizes the expectation value of the number of points. The expectation value of the number of points with the optimal strategy is also returned. If you want to know a probability of a certain combination, you can set the points for rolls belonging to that combination to 1, and set the points to 0 for all other rolls.
Simple example of the Metropolis algorithm to create a single random variable with a normal distribution, mean 0 and standard deviation 1.
This is an attempt at trying to explain the observed distribution of college graduates in some American cities. Within the framework of the model, it is possible to tell whether there is a clustering effect, i.e. college grads tend to go to cities with other college grads, or whether the distribution is consistent with college grads moving to cities at random. This project is in response to the following article: http://www.nytimes.com/2012/05/31/us/as-college-graduates-cluster-some-cities-are-left-behind.html