This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pylab import * | |
from scipy.stats import uniform, binom, expon, beta | |
true_gamma = 0.5 | |
N = 600 | |
T = 15 | |
data = zeros((2, N), dtype=float) | |
event_times = data[0,:] | |
event_times[:] = uniform(0,15).rvs(N) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from scipy.stats import t | |
def retroDesign(A, s, alpha=0.05, df=1000000, n_sims=10000): | |
""" | |
:param A: the hypothesized true effect size | |
:param s: standard error | |
:param alpha: confidence level | |
:param df: degree of freedom |
Description Miles / Time (Round trip) Map & Notes Bear Creek - CA 9 loop 60 / 1 hr 45 min https://goo.gl/maps/ZHvz1GqNxoufX2Cs9
I hereby claim:
- I am seekshreyas on github.
- I am seekshreyas (https://keybase.io/seekshreyas) on keybase.
- I have a public key ASDhDWEcjCEebaj7xzxHfy3A3SIzkrhTsPJZwTehkaXg7Qo
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
from numpy import asmatrix, asarray, ones, zeros, mean, sum, arange, prod, dot, loadtxt | |
from numpy.random import random, randint | |
import pickle | |
MISSING_VALUE = -1 # a constant I will use to denote missing integer values | |
def impute_hidden_node(E, I, theta, sample_hidden): |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var open = window.XMLHttpRequest.prototype.open, | |
send = window.XMLHttpRequest.prototype.send, | |
onReadyStateChange; | |
function openReplacement(method, url, async, user, password) { | |
var syncMode = async !== false ? 'async' : 'sync'; | |
console.warn( | |
'Preparing ' + | |
syncMode + | |
' HTTP request : ' + |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var probability = function(a,b, num_games){ | |
if (a === num_games) return 1; | |
if (b === num_games) return 0; | |
return 0.5*probability(a+1, b, num_games) + 0.5*probability(a,b+1, num_games) | |
} |
NewerOlder