2023 · open round · E · 5 points
Bengalese Finch Song
Malcolm Kennedy · writing systems · phonology · formal and computational
One important feature of human language is unpredictability. If you knew what people were going to say beforehand, they wouldn't need to say it!
But language isn't completely random either. If you've ever used the auto-complete feature on a phone, you'll know that it can often predict your next word based on the words you've already typed. For instance, after the word know, your phone might suggest if, or when, or that, since those are the words that are most frequent after know.
This type of prediction is not just relevant for words: it can also be done with letters. For example, in English, after the letter q, we can predict with nearly 100% certainty that the next letter will be (you guessed it!) u. But for most letters in English, the next letter is less certain. After t, the most common next letter is h, which follows it around 40% of the time (mostly because of a few common words like the, this, that, and then) — but it is also frequently followed by the vowels o, e, and i.
For a computer to predict what letter will come next, the computer needs to store transitional probabilities, which define how likely each letter is to appear after each other letter. For example, we might say:
p(t gives h) = 0.40
This means “the probability that t will be followed by h is 0.40.” We can calculate transitional probabilities by using a piece of text. For instance, p(t gives h) would be estimated as the number of times that th occurs in the text, divided by the number of times that t occurs.
Below is some text in Hawaiian, which uses 13 letters in its writing system. Spaces have been removed, and the symbol ` is a letter like any other, not punctuation — it's pronounced like the sound in the middle of the English exclamation uh-oh. Below the text is a partially-filled table showing the steps to computing Hawaiian transitional probabilities (L1 and L2 stand for letter 1 and letter 2).
ikinohihanakeakuaikalaniamekahonuahe`ano`ole kahonuaua`oloheloheamalunanookahohonukapouli ho`opunanaiholaka`uhaneokeakuamalunaokawai
(The three lines are one continuous stretch of text; read them straight through.)
| L1 | L2 | Count of L1 followed by L2 | Count of L1 | P(L1 gives L2) |
|---|---|---|---|---|
| i | h | 3 | 8 | 3/8 |
| k | u | 2 | 12 | 1/6 |
| k | e | 2 | 12 | 1/6 |
| k | i | |||
| k | a |
Below are four sequences of letters. Two of the sequences are Hawaiian written in code (each letter has been replaced with a different letter). Don't worry about trying to figure out which letter in the code stands for which Hawaiian letter — that is not necessary for solving the problem.
The other two sequences are from the songs of two Bengalese finches, a species of songbird originally from Southeast Asia. In the case of the Bengalese finch song, the letters represent “syllables,” which are the basic units that biologists have identified in their songs.
Bengalese finch song is interesting because, unlike many other types of birdsong, it is not entirely predictable — but it's still more predictable than human language. In other words, given that you hear one syllable, you can be more certain — on average — about which syllable you'll hear next, than you could be when reading human language.
Sequence A: abcbdaefbdgdabhijigdbcbhgdabkieidgdahbjaficblbfefkbcf Sequence B: abacdefghahbhicdefghahbhgicdefgbjklcdefgammlcdefgajkl Sequence C: abcdefbfcdefbfcdeaghijkbcdefafcdebcdeaghiffcdefafcdef Sequence D: abcdedfgfdfgbahibjdkbghcbfcbffjdcbgbidgdldbgfdibjdgba
Below are the transitional probabilities for a few English letters, estimated based on Wikipedia. For example, p(R gives E) = 0.40. The dash symbol - is used to indicate a space. Each row is a first letter; each column is the letter that follows it.
| after ↓ / next → | E | L | R | S | T | - |
|---|---|---|---|---|---|---|
| E | .05 | .05 | .15 | .15 | .05 | .55 |
| L | .35 | .20 | .03 | .05 | .02 | .35 |
| R | .40 | .02 | .03 | .10 | .15 | .30 |
| S | .12 | .03 | .00 | .05 | .20 | .60 |
| T | .35 | .05 | .10 | .05 | .03 | .42 |
| - | .10 | .10 | .10 | .20 | .50 | .00 |
Given a piece of text, we can label each letter with its transitional probability based on the previous letter. For instance, TREES-TREES-TREES would be labeled as shown here (with no label on the first letter, since it has no previous letter to use for determining the transitional probability):
| .10 | .40 | .05 | .15 | .60 | .50 | .10 | .40 | .05 | .15 | .60 | .50 | .10 | .40 | .05 | .15 | |
| T | R | E | E | S | - | T | R | E | E | S | - | T | R | E | E | S |
Here is a phrase labeled in the same way — but all of the letters are missing, leaving just the transitional probabilities:
| .40 | .15 | .20 | .05 | .35 | .15 | .05 | .60 | .10 | .35 | .05 | .03 | .35 | .15 | .10 | |
| ? | ? | ? | ? | ? | ? | ? | ? | ? | ? | ? | ? | ? | ? | ? | ? |
The rest of the questions are below, under Questions.
Questions
0 of 9 correctSuppose a Hawaiian speaker is typing, and the last letter they have typed is k. Based on the text above, what is the next letter most likely to be?
The most likely next letter after k is:
Which two of the four sequences (A, B, C, D) are Bengalese finch song? Note that the code used might be different between two texts of the same type.
The two finch-song sequences are:
The phrase below is labeled with transitional probabilities, but all of the letters are missing. What is the phrase? Capitalization does not matter, and you can use either a space or a dash to indicate a space.
The phrase is:
Explanation
Try the questions first. Use the Hint button next to any part if you need a nudge.
Reading the explanation costs no XP. Worth 5 points in the real exam.