Links for the Week of 2021-10-10
Links for the Week of 2021-10-10
Here are some links I covered in the past week.
Table of Contents
- Articles
- Books
- General
- R for Facebook
- Delta Neutral Trading for Short Straddles
Articles
- From R Views: August 2021: “Top 40” New CRAN Packages. Link - DB. Notable packages:
- nflreadr provides functions for downloading data from the GitHub repository for the nflverse project.
- CRAN - Package meltr provides functions to read non-rectangular data, such as ragged forms of csv (comma-separated values), tsv (tab-separated values), and fwf (fixed-width format) files.
- CRAN - Package tidycharts Provides functions to generate charts compliant with the International Business Communication Standards (IBCS) including unified bar widths, colors, chart sizes, etc. There is a Getting Started guide and vignettes on EDA, Customization, and Joining Charts.
Books
Statistical Inference via Data Science

A ModernDive into R and the Tidyverse by Chester Ismay and Albert Y. Kim.
General
FEATURED: Introducing {cssparser} - parse CSS into R lists and apply CSS to html within R - coolbutuseless
An amazing package that parses css from existing html into R lists and vice versa applies css onto html using vanilla R. Look for an upcoming post using this package.
prettydoc: Creating Pretty Documents From R Markdown
tags: package
With a few lines of code - put prettydoc::html_pretty in your R Markdown header, you can use a prettydoc built-in themes and syntax highlighters.
Ten awesome R Markdown tricks
tags: markdown
Up & running with blogdown in 2021 - Alison Hill
Feeding Cattle Seaweed Reduces Their Greenhouse Gas Emissions 82 Percent
Surf and turf anyone? This steak tastes fishy! (I’ll be here all night). “Agriculture is responsible for 10 percent of greenhouse gas emissions in the U.S., and half of those come from cows and other ruminant animals that belch methane and other gases throughout the day as they digest forages like grass and hay.” The article also says that only a small fraction of the earth is fit for crop production, with “far more” available for grazing. The real question is whether it works for humans…
Pricing of European Options with Monte Carlo – Predictive Hacks
Basic rundown of using R to predict option prices.
How Tough is that Football Match?
tags: sports
The article breaks down how to compare the relative strength among teams. “KL divergence value shows how unbalanced a match was, but to convert it into a difficulty metric we need to understand who the better team is in the match, our more typically put, the favourite. Again, we can simply use the odds and multiply the KL divergence by 1 or -1 depending on whether the team is the favourite or the underdog.” By combining the difficulty metric and odds, the author is able to show how you can: (1) forecast the outcome of a match using a multinomial neural net with some degree of success; and (2) predict the number of goals with a higher degree of accuracy.
Jekyll E-commerce Solutions – Jekyll Themes
List of available solutions for e-commerce that integrate with a Jekyll site. For Shopify users, see Creating a Buy Button.
RoutineHub
A collection of user submitted shortcuts for Apple iOS users.
The Ultimate List of Data Science Podcasts – Real Python
tags: podcast
R for Facebook
Facebook Data Mining using R
In-depth post on using R to mine data on Facebook.
Analyze Facebook with R - ThinkToStart
Analyzing Facebook with R - senthilpazhani - R-Programming Wiki
Great list of (slightly outdated) links to use R to analyze Facebook posts.
Delta Neutral Trading for Short Straddles
How to Use the Symbol ATM Straddle Performance History
Market Chameleon has an interesting scan involving long at-the-money option straddles. It looks at the change in value of the straddles over different holding periods. “At a base level, the report tries to answer the question: If I bought a straddle on a certain day of the week and held it until the close of a different day, how often would that straddle gain value?”
Three basic strategies are examined (historically):
- Unhedged ATM Straddle is a naked option straddle, 1 call and 1 put on the same at-the-money strike, with no additional stock traded. The resultant value is based solely on the value of the options themselves. Any net delta made from the trade is left untouched.
- Delta-Neutral ATM Straddles is based on hedging the straddle’s initial net delta to neutral, and then leaving the trade untouched for the remainder of the week.
- Daily Delta-Rehedging is based on hedging the net delta both initially at the “opening” of the trade, and then daily at the end of each day to neutralize the delta. For techniques that include delta-hedging, the straddle return and the win rate would both be affected by the gain or loss in value of the underlying stock that results from hedging.