3. Here is a Python dictionary of the relative frequency of letters in English text: {...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
3. Here is a Python dictionary of the relative frequency of letters in English text: { "A": .08167, "B": .01492, "C": .02782, "D": .04253, "E": .12702, "F": .02228, "G": .02015, "H": .06094, "I": .06966, "J": .00153, "K": .00772, "L": .04025, "M": .02406, "N": .06749, "0": 07507, "P": .01929, "Q": .00095, "R": .05987, "S": .06327, "T": .09056, "U": .02758, "V": .00978, "W": .02360, "X": .00150, "Y": .01974, "Z": .00074 } Here is some plaintext: ethicslawanduniversitypolicieswarningtodefendasystemyouneedtobeabletot hinklikeanattackerandthat includesunderstandingtechniques that canbeusedt ocompromisesecurityhoweverusingthose techniques intherealworldmayviolate thelawortheuniversitysrulesanditmaybeunethical undersome circumstancesev enprobingforweaknessesmayresultinseverepenaltiesuptoandincludingexpuls ioncivilfinesandjailtimeourpolicyineecsisthatyoumustrespecttheprivacya ndpropertyrightsof othersatalltimesorelseyouwill fail the courseactinglawf ullyandethicallyisyourresponsibility carefullyreadthe computerfraudandab useactcfaaafederalstatute thatbroadlycriminalizes computerintrusionthisi soneofseverallaws that governhackingunderstand what thelawprohibitsifindou btwecanreferyoutoanattorneypleasereviewitsspolicies onresponsibleuseoft echnologyresourcesandcaenspolicydocumentsforguidelines concerningproper The population variance of a finite population X of size N and mean u is given by N Var(X) = (x₁ -μ)². (a) What is the population variance of the relative letter frequencies in English text? (b) What is the population variance of the relative letter frequencies in the given plaintext? (c) For each of the following keys-yz, xyz, wxyz, vwxyz, uvwxyz-encrypt the plaintext with a Vigenère cipher and the given key, then calculate and report the population variance of the relative letter frequencies in the resulting ciphertext. Describe and briefly explain the trend in this sequence of variances. (d) Viewing a Vigenère key of length k as a collection of k independent Caesar ciphers, calculate the mean of the frequency variances of the ciphertext for each one. (E.g., for key yz, calculate the frequency variance of the even numbered ciphertext characters and the frequency variance of the odd numbered ciphertext characters. Then take their mean.) Report the result for each key in part (c). Is the mean variance like those observed in part (b)? Part (c)? Briefly explain. (e) Consider the ciphertext that was produced with key uvwxyz. In part (d), you calculated the mean of six variances for this key. Revisit that ciphertext, and calculate the mean of the frequency variances that arise if you had assumed that the key had length 2, 3, 4, and 5. Does this suggest a variant to the Kasiski attack? (Don't say no!) Briefly explain. 3. Here is a Python dictionary of the relative frequency of letters in English text: { "A": .08167, "B": .01492, "C": .02782, "D": .04253, "E": .12702, "F": .02228, "G": .02015, "H": .06094, "I": .06966, "J": .00153, "K": .00772, "L": .04025, "M": .02406, "N": .06749, "0": 07507, "P": .01929, "Q": .00095, "R": .05987, "S": .06327, "T": .09056, "U": .02758, "V": .00978, "W": .02360, "X": .00150, "Y": .01974, "Z": .00074 } Here is some plaintext: ethicslawanduniversitypolicieswarningtodefendasystemyouneedtobeabletot hinklikeanattackerandthat includesunderstandingtechniques that canbeusedt ocompromisesecurityhoweverusingthose techniques intherealworldmayviolate thelawortheuniversitysrulesanditmaybeunethical undersome circumstancesev enprobingforweaknessesmayresultinseverepenaltiesuptoandincludingexpuls ioncivilfinesandjailtimeourpolicyineecsisthatyoumustrespecttheprivacya ndpropertyrightsof othersatalltimesorelseyouwill fail the courseactinglawf ullyandethicallyisyourresponsibility carefullyreadthe computerfraudandab useactcfaaafederalstatute thatbroadlycriminalizes computerintrusionthisi soneofseverallaws that governhackingunderstand what thelawprohibitsifindou btwecanreferyoutoanattorneypleasereviewitsspolicies onresponsibleuseoft echnologyresourcesandcaenspolicydocumentsforguidelines concerningproper The population variance of a finite population X of size N and mean u is given by N Var(X) = (x₁ -μ)². (a) What is the population variance of the relative letter frequencies in English text? (b) What is the population variance of the relative letter frequencies in the given plaintext? (c) For each of the following keys-yz, xyz, wxyz, vwxyz, uvwxyz-encrypt the plaintext with a Vigenère cipher and the given key, then calculate and report the population variance of the relative letter frequencies in the resulting ciphertext. Describe and briefly explain the trend in this sequence of variances. (d) Viewing a Vigenère key of length k as a collection of k independent Caesar ciphers, calculate the mean of the frequency variances of the ciphertext for each one. (E.g., for key yz, calculate the frequency variance of the even numbered ciphertext characters and the frequency variance of the odd numbered ciphertext characters. Then take their mean.) Report the result for each key in part (c). Is the mean variance like those observed in part (b)? Part (c)? Briefly explain. (e) Consider the ciphertext that was produced with key uvwxyz. In part (d), you calculated the mean of six variances for this key. Revisit that ciphertext, and calculate the mean of the frequency variances that arise if you had assumed that the key had length 2, 3, 4, and 5. Does this suggest a variant to the Kasiski attack? (Don't say no!) Briefly explain.
Expert Answer:
Answer rating: 100% (QA)
What is the population variance of the relative letter frequencies in English text The population variance of the relative letter frequencies in English text is given by N x 2 VarX N x 2 VarX N x 2 Va... View the full answer
Related Book For
College Mathematics for Business Economics Life Sciences and Social Sciences
ISBN: 978-0321614001
12th edition
Authors: Raymond A. Barnett, Michael R. Ziegler, Karl E. Byleen
Posted Date:
Students also viewed these mathematics questions
-
For Problems a - c (a) Using equation (20) from Problem 25, solve for the two values of {Jt¢ for which ( 1 9) is satisfied. (b) Substitute (one at a time) each value of {Jt¢ found in part...
-
For Problem 16-16, develop upper and lower control limits for the range. Do these samples indicate that the process is in control?
-
The equation from the previous problem but with water entering at a rate of 4.0 cm/s. Apply the stability theorem for autonomous differential equations to the following equations. Show that your...
-
Audrey has recently purchased a home with a $325,000 mortgage. She opted for monthly payments, a term of 5 years at a rate of 3.2%, and an amortization period of 25 years. Had Audrey chosen, instead,...
-
Predict the products of the following reactions. (a) (b) (c) (d) (1) NaOEt, EtOH (3) H2O (1) LDA (1) NaOEt, EtOH (2) H O (3) NaOH (4) CH,CH Br (1) NaOEt, EtOH 0 (3) HO
-
Following are the auditor's calculations of several key ratios for Cragston Star products. The primary purpose of this information is to understand the client's business and assess the risk of...
-
How would you use workforce analytics to support talent programs such as recruiting, retention, and employee development?
-
Helen Murvis, hospital administrator for Portland General Hospital, is trying to determine whether to build a large wing onto the existing hospital, a small wing, or no wing at all. If the population...
-
In your opinion, how does financial aid contribute to student success in the for-profit and not-for-profit institutions? Is there any value in viewing the higher education industry from a business...
-
Ritz Productss materials manager, Tej Dhakar, must determine whether to make or buy a new semiconductor for the wrist TV that the firm is about to produce. One million units are expected to be...
-
Explain how does the pricing matrix works? Operating Costs: Microsoft Licensing Fee Data Centre IT Operational Support Hardware Total Cost per User Margin (30%) Price per User per Month $0.55 per...
-
Complete the statements below regarding tax legislation. When enacting tax legislation, Congress is often guided by the concept of revenue neutrality so that any changes the net revenues raised under...
-
Ratios The following is selected accounting information from CoffeeBuddy Services Current assets 60,000 Current liabilities 20,000 Long-term assets 50,000 Long-term liabilities 40,000 Revenues 30,000...
-
turning to the impact of the interest rate cut communicated in Exhibit B on firms (businesses). How do lower interest rates affect a typical firm? Please explain and consider factors such as...
-
Question: Because they usually involve short periods and the difference in their present and maturity value is so small that it is immaterial, ________ are usually recorded and reported at full...
-
Compute and show the rate of return on common equity (ROCE) and Be sure to show your computations. If needed, you can assume a marginal income tax rate of 35%.
-
What are major methods of reimbursement for outpatient services?
-
Refrigerant R-12 at 30C, 0.75 MPa enters a steady flow device and exits at 30C, 100 kPa. Assume the process is isothermal and reversible. Find the change in availability of the refrigerant.
-
How many 4-person committees are possible from a group of 9 people if (A) There are no restrictions? (B) Both Jim and Mary must be on the committee? (C) Either Jim or Mary (but not both) must be on...
-
In Problem, could the given matrix be the transition matrix of a regular Markov chain? 110 001 090
-
In Problems 63-66, the left sum Ln or the right sum Rn is used to approximate the definite integral to the indicated accuracy. How large must n be chosen in each case? (Each function is increasing...
-
A hiker is helping a friend up a hill that makes an angle of \(30^{\circ}\) with level ground. The hiker, who is farther up the hill, is pulling on a cable attached to his friend. The cable is...
-
While designing a conveyor belt system for a new airport, you determine that, when a typical suitcase is moving up an incline of \(20^{\circ}\), the magnitude of the maximum forward acceleration a...
-
In the diagrams in Figure 10. 22, the velocity of an object is given along with the vector representing a force exerted on the object. For each case, determine whether the object's speed increases,...
Study smarter with the SolutionInn App