Giter Club home page Giter Club logo

badscience-solutions's People

Contributors

mt-digital avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

josuema

badscience-solutions's Issues

Use Wright-Fisher for selection

From Leo Tiokhin: "This strongly selects against individuals who have phenotypes that aren't in the most extreme values and thereby selects for individuals who do anything possible to get in the top percentiles of phenotype values. For instance, if I'm in the bottom 20% of false alpha levels (e.g. 0.03 or something) but 15% of the population is composed of individuals who have alpha levels of 0.02, then even though I'm pretty rigorous relative to most people, I only get a grant 0.85^9= 23% of the time."

R code snippet showing differences, with resulting plots pasted below (all three also thanks to Leo):

#wright-fisher
nums <- 0:100
fitness <- 0:100
fitness2 <- fitness/sum(fitness)
nextgen <- sample(nums, size=1e4, replace=TRUE, prob=fitness2)
hist(nextgen, main = paste("Wright-Fisher. Mean = ", mean(nextgen), "SD = ", round(sd(nextgen), 3)))

#paul version
nextgen_paul <- rep(NA, 1e4)
d <- 10
for(i in 1:1e4){
  paul_sample <- sample(nums, size = d, replace = FALSE)
  indexes <- which(nums %in% paul_sample)
  fitnesses <- fitness2[indexes]
  selected_indv <- which.max(fitnesses)
  nextgen_paul[i] <- nums[indexes[selected_indv]]
}
hist(nextgen_paul, main = paste("Paul Implementation. Mean = ", mean(nextgen_paul), "SD = ", round(sd(nextgen_paul), 3)))

image

image

MIXED funding strategy

It has a parameter X, such that a proportion X of the time, funds are allocated to the most rigorous lab, and otherwise (1-X of the time) are allocated at random. We can vary X systematically, for a few values of r=p and G to consider how good the funders need to be to make a difference.

MODIFIED RANDOM funding strategy

Rank all proposals in terms of rigor (alpha). Eliminate any lab with an alpha less than some threshold Z. Randomly select one of the remaining proposals. We can then vary Z to see how good funding reviewers need to be for it to matter.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.