ScratchData LogoScratchData
Back to JimmyC's profile

Letter Frequency in English Ver 1.2

JIJimmyC•Created November 26, 2021
Letter Frequency in English Ver 1.2
6
3
76 views
View on Scratch

Instructions

Once graph has rendered, press the 1, 2 or 3 key: 1 = show frequency value (f) for selected letter (press a letter to select) (This is the default) 2 = show population proportion value (P) for selected letter (press a letter to select) 3 = show population percentage value (%) for selected letter (press a letter to select) <space bar> = scroll through all 26 values

Description

"See inside" and paste in your own sample text string. The project counts and then plots the frequency of all 26 letters in your sample text. Press a letter to display exact frequency (once graph is fully rendered). Sample text used as default is the text from the English Wikipedia article: "solar system" (https://en.wikipedia.org/wiki/Solar_System) retrieved in November of 2021. Mathland Challenges: 1. After the letter frequencies are found, sort the frequencies from highest to lowest and display that information for the user. 2. Display the value for a letter's frequency if the mouse arrow touches the bar. 3. View another distribution and compare it to the one Scratch generates (e.g., https://www3.nd.edu/~busiforc/handouts/cryptography/letterfrequencies.html) More info: In English texts, the top ten most frequently used letters in order are: E, T, A, O, I, N, S, H, R, D Interesting to compare this frequency distribution with the one on this page: https://writings.stephenwolfram.com/2023/02/what-is-chatgpt-doing-and-why-does-it-work/ (in the section entitled "Where Do the Probabilities Come From?") Interesting to compare languages, too. https://en.wikipedia.org/wiki/Letter_frequency

Project Details

Project ID607215283
CreatedNovember 26, 2021
Last ModifiedOctober 28, 2023
SharedNovember 26, 2021
Visibilityvisible
CommentsAllowed