Question: [ bonus ( 1 0 points ) ] Statisticians used word frequency analysis to determine the author of the 1 2 unknown federalist papers ?

[bonus (10 points)] Statisticians used word frequency analysis to determine the author of the 12 unknown federalist papers ?3; basically, they counted how many times James Madison and Alexander Hamilton used individual words and noticed that Hamilton used "upon" way more than Madison. In this way, they were able to tell who wrote the 12 papers whose author was unknown.
Let's write a Python program to count how many times a given word appears in a sentence (it sure beats cutting out the individual words and then hand-sorting, which is how they did it before computers). You'll need to look up a string method for this, called "count", and maybe some other methods. (video demo)
4a)[2 points] What variables will we need to make? What variables will be inputs from the user? What variables will be outputs?
4b)[8 points] Write the code in a repl and paste the link here.
 [bonus (10 points)] Statisticians used word frequency analysis to determine the

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!