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
# --------------------------------------------------------------------------- | |
# | |
# Description: This file holds all my BASH configurations and aliases | |
# | |
# Sections: | |
# 1. Environment Configuration | |
# 2. Make Terminal Better (remapping defaults and adding functionality) | |
# 3. File and Folder Management | |
# 4. Searching | |
# 5. Process Management |
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
simulate.bad.test.for.reddit = function(j){ | |
accuracy = c() | |
head_injuries = c(rep(TRUE, 12), rep(FALSE, 17)) | |
for(i in 1:174){ | |
guesses = sample(c(TRUE, FALSE), size=12+17, replace=TRUE) | |
accuracy = c(mean(guesses==head_injuries), accuracy) | |
} | |
return(max(accuracy)) | |
} |
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
################################################################################ | |
################################################################################ | |
# author: hillz | |
# subject: CLT simulation: bootstrap vs CLT on right tailed distributions with | |
# many samples - bootstrap converges to CLT answer. No reason to use | |
# bootstrap. | |
################################################################################ | |
################################################################################ | |
################################################################################ |
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
########################################################################################## | |
########################################################################################## | |
# PREMISE | |
# hills | |
########################################################################################## | |
wd <- "~/Desktop/PREMISE/" | |
setwd(wd) | |
# source("Hillary_Premise/utils/env.R") | |
########################################################################################## | |
########################################################################################## |
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
###################################################################### | |
# hackbright stuffs | |
# Premise | |
###################################################################### | |
# Author: Hillary Sanders | |
###################################################################### | |
###################################################################### | |
# get data here: https://data.premise.com/ |
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
###################### | |
# outliers: | |
# supah simple outlier killer. Also kills right tails. | |
##' @param trim trim what % of the data off each tail before calcuating the mean and sd. | |
##' @param z how many standard deviations will you allow observations to be away from the | |
##' mean before you consider it an outlier? |