Exploring the Book of Esther in the Tidy Verse

library(httr) library(tidytext) library(jsonlite) library(tidyverse) library(wordcloud) library(XML) source("~/keys.R") key <- biblia There is much to be learned in the form of writing and the relationship it has within and outside the text. The question we might want to ask is there a way to identify the story arc of the situation. Using spacy to tag all of the words will increase the likelyhood to better understand the style <- "oneVersePerLineFullReference" #oneVersePerLine, bibleTextOnly, oneVersePerLineFullReference output <- "html" passage <-"Esther1-10" resp <- GET(paste0("https://api....

November 30, 2017 · 2 min · 342 words · C Ried

Timeseries Analysis Using R and Advantager

Threw error due to the API In the past, the best way to get stock prices was to use either Google Finance or Yahoo Finance data streams. These have since become difficult to keep up to date and thus another outlet to get this information is AlphaVantager. Following is a simple R implementation to get up to date data. You will be able to thus use this to find the information....

November 11, 2017 · 1 min · 183 words · C Ried

Gantt Charts in R

In Progress Using timevis library(timevis) data <- data.frame( id = 1:4, content = c("Item one" , "Item two" ,"Ranged item", "Item four"), start = c("2016-01-10", "2016-01-11", "2016-01-20", "2016-02-14 15:00:00"), end = c(NA , NA, "2016-02-04", NA) ) timevis(data) Using DiagrammerR library(tidyr) library(dplyr) library(DiagrammeR) mermaid(" gantt dateFormat YYYY-MM-DD title A Very Nice Gantt Diagram section Basic Tasks This is completed :done, first_1, 2014-01-06, 2014-01-08 This is active :active, first_2, 2014-01-09, 3d Do this later : first_3, after first_2, 5d Do this after that : first_4, after first_3, 5d section Important Things Completed, critical task :crit, done, import_1, 2014-01-06,24h Also done, also critical :crit, done, import_2, after import_1, 2d Doing this important task now :crit, active, import_3, after import_2, 3d Next critical task :crit, import_4, after import_3, 5d section The Extras First extras :active, extras_1, after import_4, 3d Second helping : extras_2, after extras_1, 20h More of the extras : extras_3, after extras_1, 48h ") Using Plotly If you wanted to use a more...

October 17, 2017 · 2 min · 248 words · C Ried

Tips on Feature Engineering

Tips on Feature Engineering to fit how classifiers work; giving a geometry problem to a tree, oversized dimension to a kNN and interval data to an SVM are not a good ideas remove as much nonlinearities as possible; expecting that some classifier will do Fourier analysis inside is rather naive (even if, it will waste a lot of complexity there) make features generic to all objects so that some sampling in the chain won’t knock them out check previous works – often transformation used for visualisation or testing similar types of data is already tuned to uncover interesting aspects avoid unstable, optimizing transformations like PCA which may lead to overfitting experiment a lot

October 8, 2017 · 1 min · 113 words · C Ried

Great Statistics Books to Read

Following you will find a number of the best books to learn more about statistics and its philosophy. Opinionated Lessons on Statistics Introduction to Statistical Learning The Elements of Statistical Learning Applied Predicitive Modeling Statistical Inference Statistical Rethinking Data Analysis Using Regression and Multilevel/Hierarchical Models Mostly Harmless Econometrics Mastering Metrics: The Path from Cause to Effect All of Statistics Statistics Statistics for Experimenters Think Bayes Computer Age Statistical Inference Think Stats Machine Learning for Hackers Probability and Statistics Statistical Evidence: A likelihood paradigm

October 6, 2017 · 1 min · 83 words · C Ried

AB Testing in R from Scratch

Using Bayesian Systems Quantify the probability of all possibilites thus measuring risk insert institutional knowledge (add knowledge that changes the probability) learn in an online fashion A/B Testing with Approximate Bayesian Computation No mathematics required able to implement from scratch A/B Testing Measures and figures out the better design Approximate Bayesian Computation Generate a trial value for the thing we want to know (in this case its the conversion fraction of a layout) Simulate or data assuming the trail value, keep the trial value, otherwise discard it and try again If the simulation looks like the real data, keep the trial value, otherwise discard and try again Keep doing this until we’ve got lots of trial values that worked library(progress) library(ggplot2) library(reshape2) # Variables n_visitors_a <- 100 # number of visitors shown layout A n_conv_a <- 4 # number of vistors shown layout A who converted (4%) n_visitors_b <- 40 n_conv_b <- 2 Using Bayesian Systems...

September 29, 2017 · 3 min · 518 words · C Ried

Tips on Creating Effective and Functional Documentation in R

Just like any skill, there is a learning curve involved in creating effective communication. This involves the code written and the documentation of its usage. Writing functional code is a intricate thing to accomplish as a newbie. It takes time to know what is efficient and how to communicate it as such. Now, writing functional documentation is more complicated as there is a delicate balance between not reguritate what the code says, and giving usable pointers to the users on how a particular function was intended to be used....

September 22, 2017 · 3 min · 618 words · Chris R.

Tracking Change Improvements in Retail

In the ever changing world of retail; one always has to keep one step ahead of the competition and to engage with its customers. One of the best ways Formulate a test Implement Test Evaluate results Adjust the test Try again. These are all great ideas, but how do we truly watch tas things get better? library(qcc) library(xtable) library(SixSigma) library(qicharts) Cause and Effect Diagrams cManpower <- c("Recepcionist", "Record. Operator", "Storage operators") cMaterials <- c("Supplier", "Transport agency", "Packing") cMachines <- c("Compressor type", "Operation conditions", "Machine adjustment") cMethods <- c("Reception", "Transport method") cMeasurements <- c("Recording method", "Measurement appraisal") cGroups <- c("Manpower", "Materials", "Machines", "Methods", "Measurements") cEffect <- "Too high density" cause....

September 21, 2017 · 3 min · 578 words · Chris Ried

Rocket Propulsion

library(tidyverse) Accelerating force $$ F=mv_e $$ thrust of the rocket is expressed in terms of the *mass flow rate * m and the efficient exhaust velocity \(v_e\) $$ V = V_e\log_e\frac{M_0}{M} $$ $M_0$ - mass of the rocket at ignition $M$ - Current mass of the rocket mass ratio $$ R = \frac{M_0}{M} $$ AcceleratedForce <- function(m,v.e) { m*v.e } RocketEquation <- function(mass.ratio, exhaust.velocity) { exhaust.velocity*log(mass.ratio, base = exp(1)) } RocketEquationGraph <- data....

June 5, 2017 · 3 min · 639 words · Chris