Skip to content

Instantly share code, notes, and snippets.

View chrishwiggins's full-sized avatar

chris wiggins chrishwiggins

View GitHub Profile
%%% little code to compute steady state "q" from creation+decay "wp,wm"
% wp=creation
% wm=destruction
function q=qdef(wp,wm);
% 1) most important line p=\Pi (wp_j/wm_{j+1})=S^+_n/S^-/n
p=cumprod( wp(1:(end-1)) ...
./ ...
wm((1+1):end) ...
);
%%% parameters
% forget what you know
clear
% set max N
N=500;
% set "turnover n", aka n0
n0=10;
% plotting parameters:
zmax=.2;
xmax=60;
import sys
import random
u_Health = 10
t_Health = 10
while u_Health*t_Health > 0:
they_attack=random.randint(0,1)
if they_attack == 0:
print ("they attack!")
u_Health=u_Health-1
#print (u_Health,t_Health)
long ago @wbialek pointed out to me the irony of his 2 most infamous quotes
- 1) "If your result needs a statistician then you should design a better experiment." and
- 2) "All science is either physics or stamp collecting."
is that,
- in the first case, his field of particle physics ended up
becoming far and away the most statistics-dependent of any subfield in physics, and
- in the second case, that his Nobel prize ended up being in chemistry not physics
@chrishwiggins
chrishwiggins / VU.md
Created March 4, 2016 16:22
referneces from VU talk 2016-03-04
On S'engage; Et Puis, On Voit
Allegedly a favorite saying of Napoleon’s. Later, Lenin.
- t1: "You commit yourself; and then, you see."
- t2: "First engage in a serious battle and then see what happens."
- t3: "One jumps into the fray, then figures out what to do next,"
rm doit.out ; touch doit.out ; yes | head -200 | awk '{print "echo "NR" `lynx -dump '"'"'https://en.wikipedia.org/wiki/"NR"_(number)'"'"' | wc -l` >> doit.out"}' > ! /tmp/doit.sh ; source /tmp/doit.sh ; sort -n -k 2 < doit.out | head -5

a good ask:

a good ask to a person (target) should

  • include a warm intro to target from someone trusted by the target
  • provide evidence of similarity or social connection to target
  • show understanding of target's perspective
  • explain how target was selected
  • show evidence you understand the field you are asking about

Data Science Lecture @ Brown: references/links

Talk delivered 2015-12-04

Slideshare link

context