mattphotonman/2014-03-18-nyu
Software Carpentry NYU Intermediate Python
Discovered public repositories for mattphotonman in the GitHub catalog.
Software Carpentry NYU Intermediate Python
Demo of unit tests for Software Carpentry March 2014.
Public repository.
Software Carpentry workshop at NYU, March 17-18 2014
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
Tools for calculating the Shannon entropy of a text file. Here we are considering text files to be streams of letters, and look at sets of n consecutive letters. (We are not considering the text file to be a stream of English words.)
Program for comparing jackknife estimates of the standard deviation of the mean of a quantity to the "actual" standard deviation. The "actual" standard deviation is calculate by repeating the experiment N times and calculating the standard deviation of the mean from these N samples.
Code to solve the "Fox Hole Problem": http://gurmeet.net/puzzles/fox-in-a-hole/
C++ classes that aid in doing jackknife resampling calculations. Some methods are general purpose, some are for specific projects of mine.