Jonathan W. Stokes

Jonathan W. Stokes header image 1

Friendship Equation

March 13th, 2012 · Fun

Work is preventing me from spending enough time with friends lately.  Rather than deal with this problem head on, I got curious about defining the relationship between friendship and time and came up with the following formula for calculating Friendship Value:

This assumes that Friendship Value = [1. Discounted perceived value of past interactions] + [2. perceived value of current interactions] + [3. discounted perceived value of future interactions]. Working backwards:

3. “Discounted Perceived Value of Future Interactions” can be expressed as the summation of all future interactions (t) years from the present (t=0) where “i” = the discount rate at which the net present value of the opportunity costs of a friendship equals the net present value of the benefits of the friendship:

Or, for those that want to graph friendship as a continuous rate (where d=discount rate and λ = log(1+i) ), by the integration:

2. “Perceived Value of Current Friendship Interaction” may be expressed as:

1. “Discounted Perceived Value of all Past Interactions” may be expressed as:

And thus, total Friendship Value can be expressed as =

By this we see that friendship is in a constant state of entropy, buoyed only by the value of our current interactions and the perceived value of our future interactions.  Without the hope of future interactions, the value of a friendship will decline asymptotally, approaching but never reaching zero.

If the value of perceived future interaction declines, it affects the net present value of the friendship.  So if I am going to be busy for the next six months, this dramatically affects the current value of my friendship.

We can calculate the relationship between time and friendship using an inverse square law:

Where FV1 = The Friendship value of a friend, FV2 = The Friendship value of me, and t = the amount of time spent apart.

By this equation, as the net present perceived value of either or both friends decreases, the force of attraction between the friends drops proportionately. But when time is spent apart, the overall value of the friendship drops exponentially.

Thus, friendship is a function of time.  And if I value friends, logic compels me to leave work alone at some point to spend some time with them. I probably need to get out more.

→ No CommentsTags:

Great Books I Read in 2011

December 30th, 2011 · Miscellaneous

I read 59 books this year, one more than last year. I’ve been tracking my books read since 2004, always with the goal of reading at least 50 books. What follows are the books I most enjoyed this year.

Jaw Breaker – Gary Berntsen – a really fascinating and fun tell-all by the lead CIA operative in Afghanistan.

John Adams – David McCoullough – An incredible American story and deeply inspiring.

True Grit – Charles Portis – Extremely fun although the ending didn’t sit very well.

Making Movies – Sidney Lumet – Worthwhile.

Islands in the Stream – Hemmingway – Strong and innovative writing; humorous dialog and fun adventure.

Carry On, Jeeves – P.G. Wodehouse – Always a complete delight – Wodehouse is pure genius.

The Good Earth – Pearl S. Buck – Really engaging story told with straight-forward powerful language; she’s fluent in Chinese and English so her language seems to reflect Chinese syntax and values.

Daydreaming and the Creative Writer – Sigmund Freud – more of an essay but makes great points equating the writing process to daydreaming, wish fulfillment, and the hero as the ego of the writer.

The Zombie Survival Guide – Max Brooks – In my opinion, this is the book that originated the current zombie fad in popular culture.

The Future of an Illusion – Sigmund Freud – Pretty astonishing work; he rather bravely asserts that religion and God are an illusion resulting from psychoanalytic needs and that the progress of humanity – from a standpoint of psychological maturity – rests in recognizing this illusion and embracing science.

Blink – Malcolm Gladwell – His stories and studies are fascinating and fun – always a pleasure.

Shooting to Kill – Christine Vachon – A specific and useful description of what an indy New York film producer does to actually produce a movie.

Game of Thrones, A Clash of Kings, A Storm of Swords, A Feast For Crows, A Dance With Dragons – George R. R. Martin – Extraordinary plotting and world building; brutal on the protagonists and therefore the reader. But an overwhelming literary accomplishment.

Tess of the D’Ubervilles – Thomas Hardy – Compelling and innovative in its day.

The Naked Sun, Robots of Dawn, Robots and Empire – Isaac Asimov – Fun, clever, and wonderfully plotted.

Island – Aldous Huxley – Lots of interesting ideas, but absolutely no plot whatsoever.

A House Boat on the Styx – John Kendrick Bangs – A Bangsian fantasy comprised of compelling sketches.

Cities of the Plain – Cormac McCarthy – So much skilled dialog and his usual fantastic writing sense.

Their Eyes Were Watching God – Zora Neale Hurston – Some fascinating writing – rich and colorful description and delightful dialog.

Unfamiliar Fishes – Sarah Vowel – Always enjoy her voice and point of view.

Bury My Heart At Wounded Knee – Dee Brown – devastatingly good. Every American should read it – astonishing stories.

The Secret History – Donna Tartt – some really good prose writing.

The California Gold Rush and the Coming of the Civil War – Leonard Richards – Pretty interesting how everyone in congress in the 1800′s was packing guns and knives and dueling and brawling at every political debate.

Les Fleurs du Mal – Charles Baudelaire – Some of the poems are sensational; finding profound and beautiful ways to express new ideas on new topics, and influencing every poet who came after.

Michael Strogoff – Jules Vernes – He really created the art of modern adventure story-structure.

Breakfast of Champions – Kurt Vonnegut – Interesting.

The Lost Symbol – Dan Brown – When he sticks to plot he’s great.

→ No CommentsTags:

Math Puzzle

December 10th, 2011 · Fun

If you have so much time on your hands that you’ve ended up at this blog, here is a math puzzle I made up…

A broker is looking at three stock prices and notices a funny relationship. The three prices are all three-digit numbers. By subtracting the first number from the second number, she gets the same result as subtracting the second number from the third number. By subtracting the inverse of the first number from the inverse of the second number, and subtracting the inverse of the second number from the inverse of the third number, she still receives the exact same answer. Finally, each of the three numbers, minus its inverse, yields the same number (although a different number from the proceeding two operations).

What three numbers was she looking at? (NOTE: if you solve this without using palindromes, the solution is very elegant)

Email me your answer and I will send you a prize!*

 

*I do not have any prizes.  But you will have my heartfelt admiration.

→ No CommentsTags:

Victory Post Production

May 29th, 2011 · Victory

Post-Production for my next short film “Victory or Death” is almost complete. It’s a fun process beginning with the edit with Jay Trautman (pictured below).

Jay Trautman

After six rounds of edits, we choose music and send files to the rotoscoper. Then we begin color correction with the DP, Marlen Schlawin…

Jay and Marlen just love having their picture taken…

Then it’s time for Sound Design with Corey Eccles…

Sound Mix

“Victory or Death” uses of lot of sound design. Everything from earthquakes to humpback whales to ocean waves are layered into the sound mix.

I like these photos because it looks like Corey is flying a spaceship.

Next step is rendering end credits and then we’re just about complete!

→ No CommentsTags:········

Wikipedians by Political Party

March 7th, 2011 · Fun

Wikipedia founder Jimbo Wales once said Wikipedians are “more liberal than the U.S. population on average, because we are global and the international community of English speakers is slightly more liberal than the U.S. population.

I have crunched the numbers and it appears he is correct.  Wikipedia is more liberal than America.

wikipedians-by-political-party

DATA SET

Of the 14,000,000 registered Wikipedians, it appears 347,000 have created user pages.  Of these 347,000 users, 23,190 individuals, or 6.7%, appear to have professed a political affiliation in the bios on their user pages by mentioning key phrases like “Liberal Party of Australia” or “Social Democrat,” etc.  This provides the following data set:

wikipedians-by-political-party-data-set

Liberal, Conservative, and Libertarian Wikipedians

There are some 57 countries where English is the official or de facto language.  Any of these peoples and more may be contributing to the English language Wikipedia.  Lumping together these Wikipedians into four basic categories, we get the following totals:

wikipedians-conservative-liberal-libertarian

These totals contrast the overall US population in three important ways.

  1. Liberals are slightly overrepresented as compared to the US population
  2. Conservatives are decidedly underrepresented as compared to the US population
  3. Libertarians are dramatically overrepresented as compared to the US population

To illustrate the disparity between the American population and the Wikipedian population, here is a chart showing the USA by political party (2008), using data courtesy of ElectionStudies.org:

usa-political-party

Libertarians

What is particularly interesting is the preponderance of Libertarians on Wikipedia.  While Libertarians carried 0.04% of the vote in the latest US presidential election, they carry even less of a vote in other English speaking countries.  Indeed, it is somewhat unclear if any functioning Libertarian party currently exists in any English-speaking country besides the US.  So it is statistically interesting to find 10% of Wikipedians identifying as Libertarian.

Methodology, Notes, and Margin of Error

*This data was assembled using Boolean searches of the seed “en.wikipedia.org/wiki/User:”.

*Various search terms were excluded to prevent duplication.  For instance, a UK Wikipedian self-identifying as a “Liberal Democrat” must not be double counted in searches for the terms “Liberal” and “Democrat.”  Thus, Liberals were counted as follows:

liberal democrat site:en.wikipedia.org/wiki/user:
liberal -democrat -”australia” -philippines site:en.wikipedia.org/wiki/user:
democrat -liberal -social site:en.wikipedia.org/wiki/user:
Social democrat -liberal site:en.wikipedia.org/wiki/user:

Note that the “Liberal Party of Australia” is center-right, and thus excluded from searches for “Liberal.”  Userpages that mentioned both “Philippines” and “Liberal” were excluded as well because while the Philippines has a “Liberal Party” there is no corresponding “Conservative Party” so a fair tally of left-vs-right Wikipedians would have been disrupted.

*”Labor party” and “Labour party” were conducted as separate searches seeing as Wikipedians may belong to the Labor Party in Jamaica, New Zealand, Australia, the UK, etc.

*”Independents” are almost certainly undercounted.  The word “Independent” appears in many contexts in user bios.  Thus, this search only counted “Independent Party.”

*Many Wikipedians identify as “Anti-Communist.”  So the search for Communist excluded the term “anti.”

*Similarly, “Nazi” was not included in this search as so many Wikipedians appear to identify as “Grammar Nazis” or “Deletion Nazis” or “Wikipedians who have been called Nazis by other Wikipedians,” etc.

*While India and Pakistan represent massive English speaking populations, their political parties – being somewhat unique and endemic – were not counted in this search.

*Further exclusions could be added to these boolean searches to refine the data.  For instance, a Wikipedian saying, “I disagree with the Labor Party” would be counted as a member of the Labor Party in this methodology.  Nevertheless, it is assumed such search errors would occur equally for all parties and thus keep proportions consistent.  Furthermore, random spot checks for associations like “Hate” & “Labor Party,” “Dislike” & “Labor Party,” and “Disagree” & “Labor Party,” yield zero results.  And moreover, the 6.7% sample size is fairly robust when accounting for margin of error.

→ No CommentsTags:···········

Still No Oscar for Best Casting Director

March 2nd, 2011 · Miscellaneous

Casting Director is the only above the line movie credit that does not receive an Academy Award.  For years, I have awkwardly cornered people at parties demanding to know why this is the case, but nobody seems to know the answer.

This month, the Los Angeles Times interviewed the Academy Executive Director, Bruce Davis, and it appears we finally have some answers.  According to Davis:

  1. “There’s no easy way to tell who did the casting in a movie.”
  2. “We’re not looking for a lot of new categories. People think the award show is long enough.”


Fascinating.  To the first point, Davis is referring to the fact that Producers often cast the starring roles, and Casting Directors often fill out the supporting roles.  To the second point, it’s just sort of interesting the Oscars can squeeze every above the line credit into a four hour show, with the sole exception of Casting Director.

To appreciate the role of Casting Director, consider how many thousands of teenagers Allison Jones had to wade through before discovering the likes of James Franco, Jason Segel, Seth Rogan, Jonah Hill, Linda Cardellini, and Christopher Mintz-Plasse.  Or consider Lisa Beach and Pat McCorkle’s casting of School Ties (1992) that launched the careers of Brendan Fraser, Matt Damon, Ben Affleck, Chris O’Donnell and Cole Hauser.

The Casting Society of America has petitioned the Academy three times in the past 15 years to add an award for Best Casting Director.  This would bring the Oscars in line with the Emmys and the Spirit Awards.  Here’s hoping they are someday included.

→ No CommentsTags:··

Anthropogenic Fibonacci Sequences

February 27th, 2011 · Fun

DNA measures 34 angstroms long by 21 angstroms wide for each full cycle of its double helix spiral. 34/21 = the Golden Ratio.

DNA measures 34 angstroms long by 21 angstroms wide for each full cycle of its double helix spiral. 34/21 = the Golden Ratio.

As folks know, the Fibonacci sequence and its corresponding Golden Ratio can be observed throughout nature, from the arrangement of leaves on a stem to the spiraled florets on the head of a sunflower.  But what about man-made Fibonacci sequences?

Here are some Fibonacci sequences I have observed that are created strictly from humans being human beings:

CHANGI AIRPORT, SINGAPORE 6:00 A.M.

Arriving for an early flight, I witness a terminal opening for the morning.  The first security guard enters the security check.  He walks through the metal detectors, passes his bags through the x-ray, and then runs the metal wand over his body.  Then clips on his security badge.

Thus screened, the first security guard performs the same operation on the second security guard.  While the new guard clips on his badge, the first guard screens a third guard.  Now the first two guards screen two more while the third clips on his badge.

Factoring in the pause time while each newly screened guard clips on his badge and turns on equipment, I realize that the rate at which security guards pass each other through the security check is a Fibonacci sequence.

THE KISSING DISEASE

The incubation period for mononucleosis – the time between exposure to the contagion and the appearance of symptoms – is roughly one month.  Once exposed to the virus, a person carries it for life and can theoretically pass it on for several years.

Thus, imagining a population in which (1) the “Kissing Disease” is introduced by a single person and (2) every person kisses exactly one new person each month, the spread of mono throughout the population is a Fibonacci Sequence.

  1. MONTH ONE: 1 carrier; 1 incubating
  2. MONTH TWO: 2 carriers; 1 incubating
  3. MONTH THREE: 3 carriers; 2 incubating
  4. MONTH FOUR: 5 carriers; 3 incubating

CHRISTMAS FIBONACCI

I witnessed the following Fibonacci Sequence at a Midnight Mass on Christmas Eve.  In a special ceremony, the minister turned off the church lights and distributed unlit candles to every member of the congregation.

The minister’s candle was the only lit candle.  He used it to light the first candle in the first pew.  While that person’s candle flame gathered strength, the minister lit a second person’s candle.  Now two people could light candles while the third person’s flame gathered strength.  Soon there were eight people with lit candles and five who could light other people’s candles.  Thus the brightness of the dark room accelerated in accordance with the Fibonacci sequence.

→ No CommentsTags:·

Ode to Joy on a Chess Board

February 24th, 2011 · Fun

How would music appear if played on a chess board?

Following comments from my Chess Music post about translating famous chess games into music, a reader requested to see the Ode to Joy on a chess board. Again, mapping algebraic chess notation to scientific pitch notation allows us to play Beethoven on a chess board.

I transposed the Ode to Joy from D Major into C Major for simplicity’s sake (apologies to Beethoven). From there, you can see how the notes E, E, F, G, etc, become E3, E6, F3, G3, etc on the chess board.

Note: my chess program automatically flips the chess board every move which makes the video a bit tricky to follow. But you can still get a neat sense of the symmetry of Beethoven’s melody showing up visually on the chess board.

→ 2 CommentsTags:···

Fibonacci Scale

February 20th, 2011 · Fun

If the Fibonacci sequence (1,1,2,3,5,8,13,21…) were translated into music, how would it sound?  The answer – surprisingly – is, pretty good.

Creating the Fibonacci Scale

To play the Fibonacci sequence on a piano, one must assign a number value for every note of the keyboard; A=1, B=2, etc.  As every octave has seven notes, every eighth note starts over at A.  Therefore, 8=A, 9=B, 10=C, etc.  Because there are only 7 possible notes, determining where a given Fibonacci number falls on a scale essentially deals with remainders:

Scale Note = Mod (F,7)

The next, and trickiest step for playing the Fibonacci sequence is finding a piano keyboard that extends into infinity.   Playing only the Fibonacci numbers on your infinite keyboard, one discovers the repeating sixteen note group A-A-B-C-E-A-F-G-F-F-E-D-B-F-A-G (repeat). Expressed numerically (Fibonacci sequence, Modulo 7), the sequence is 1-1-2-3-5-1-6-7-6-6-5-4-2-6-1-7, repeatedly infinitely.

fibonacci-sequence

It’s pretty nifty to find an infinite recursive sequence yielding a repeating finite group under modulo 7. But then, the universe is a nifty place.

Playing the Fibonacci sequence on a regular piano (for instance, in one octave of A major) is not unpleasant as the sixteen notes fit squarely into four measures. The sequence begins on the tonic note and ends on the leading tone, musically resolving when the sequence repeats.

It sounds like this: Fibonacci Sequence MP3. Take a listen!

Proving the Finite Group

To prove the Fibonacci sequence under modulo seven has a finite order of sixteen, we can use mathematical induction…  Special thanks to Kiri Wagstaff for helping me with my math!

Since it’s known that Fn+1 = Fn + Fn-1, let’s assume that:

Mod (Fn+1, 7) = Mod (Fn + Fn-1, 7)

Or in other words:

Mod (Fn+1, 7) = Mod (Mod (Fn, 7) + Mod (Fn-1, 7), 7)

This holds true for our base cases, n = 1 and n = 2.

For our inductive step (to prove the sequence repeats every sixteenth natural number) let’s assume that:

Mod (F(n+1)+16, 7) = Mod (F(n+16) + F(n-1)+16 ,7)

OR

Mod (F n+17, 7) = Mod (Mod (Fn+16, 7) + Mod (F n+15, 7), 7)

OR

Mod (2584, 7) = Mod (Mod (1597, 7) + Mod (987, 7), 7)

OR

1 = 1

AND

Mod (Fn, 7) = Mod (Fn+16, 7)

Fibonacci Fugue

Without further ado, here is a fugue I whipped up using the 16 note Fibonacci Scale as the main theme: Fibonacci Fugue MP3. Take a listen!

Order of Group for Non-Western Scales

What does the Fibonacci sequence sound like if played on non-Western scales? Repeating sequences again occur on scales of any length (excepting base 10-divisible scales which spit out gigantic Pisano periods before yielding an identity).  For instance, playing the Fibonacci sequence on a pentatonic scale yields the repeating pattern: A-A-B-C-E-C-C-A-D-E-D-D-C-B-E-B-B-D-A-E.   Playing in a nine note scale also yields a twenty note repeating pattern: A-A-B-C-E-H-D-C-G-A-H-I-H-H-G-F-D-A-E-F-B-H-A-I.

Fibonacci Scales in Bases 2 -15

Examining the modulo sequences, distinct patterns emerge.   The longer the modulo sequence, the more it approaches the Fibonacci sequence.   For instance, all of the sequences begin with 1-1-2-3-5, or A-A-B-C-E.   Furthermore, the sequences all end with the highest possible note in the scale.   Melodically, this means that every sequence begins on the tonic and ends on a leading tone, which is harmonically pleasing.  The second to last note is always A.  The third to last is always the second highest note in the scale.   The fourth to last note is always B, etc.   As larger sequences are generated, greater patterns emerge (see chart above).   Although it must be a mathematical coincidence, these patterns create harmonic consistencies that are not half-bad to listen to.

Perhaps most bizarrely, these Fibonacci scales all appear to obey the laws of musical phrasing.   Simply stated, the peak of a musical phrase is very often the highest note of a musical phrase, and tends to occur around 2/3rds (or maybe .618…) through the length of the phrase.   Furthermore, if a musical phrase begins and ends in the tonic key, the peak of the phrase will often be in the dominant key.   This pattern is bizarrely exhibited in the Fibonacci scales (chart above), which all contain a middle sequence of A-M-N-M-M-L-K, where N is the highest note in the scale, and M is the second highest, L is the third highest, and K is the fourth highest.

Square Scales and Cube Scales

Recurring sequences do not appear to be endemic to the Fibonacci sequence.  Playing the squares (1,4,9, etc) on the infinite piano yields a recurring order of seven {A,D,B,B,D,A,G}.  Playing the cubes (1,8,27) on the infinite piano yields a different recurring group order of seven {A-A-F-A-F-F-G}.   Perhaps these math-based melodies will one day provide inspiration for modern composers.

→ 1 CommentTags:·

Victory Filming

February 15th, 2011 · Victory

I had an absolute blast filming “Victory” this weekend with a fun and talented cast and crew.  Below I have posted a few set photos about how we shot the film…

ABOUT THE MOVIE

Actor Gary Cairns presented me with the idea for “Victory” a few months ago and asked if I would write and direct it.  ”Heck yes,” I said.

My friend Sarah Newman connected me with our wonderful DP, Marlen Schlawin.  Randy Wayne and Nick Slatkin came on board to produce.  And in the past two weeks we raised the budget, raised the crew, found the locations, and shot the movie.

FILMING

Marlen and I logged 16 hours preparing the shot list.  105 shots across 16 locations in 2.5 shooting days.

TRANSITION SHOTS

All of the movie’s dream sequences were filmed on the 7D and linked together using Michel Gondry-style transitions.  In the sequence below we start with actors Gary Cairns and Janina Gavankar rolling over in bed…

Janina and Gary

Peter Marr built us a wheel mount (above) and we rolled the 7D along the plank to follow the motion of the actors.  Then Marlen rigged the 7D on a slider to follow the motion of the actors in a top shot…

Placing the Actors

Once Gary rolls and hits his mark we transition into the next shot.  Gary spreads his arms…

Gary Filming

…and we match cut to Gary in the same position on a TV screen (it makes sense in the story)…

Gary Cairns on TV

Marlen’s crew lays down dolly tracks so we can dolly out of the TV set…

Dolly Shot

The camera will dolly back until we reveal Gary sitting on the couch (above), watching himself on TV.

Marlen looks happy with the shot…

Marlen Schlawin

I look happy too.

Gary Cairns and Jonathan W. Stokes

→ 1 CommentTags:·····