Question

In: Computer Science

SAT Score Analysis You have been asked to analyze SAT scores (which may be 400 -...

SAT Score Analysis

You have been asked to analyze SAT scores (which may be 400 - 1600).  

You will be analyzing a population (a list) which consists of a number of

samples (lists) of student scores.

Here is the code to generate the  population/samples:

     import random

  population=[]

  for i in range(5):

  sample = []

  n = random.randint(5,10)

  for num in range(n):

  sample.append(random.randrange(400,1600))

  population.append(sample)  

The analysis should be conducted as follows:

  ##calculate the total number of scores  

  ##calculate the total value of all scores

  ##find the average score of the population  

  ##print the total number of scores  

  ##print the total value of all scores

  ##print the average of all of the scores

  ##while a sample has an average that is less than the

  ##average of all scores add a random value 1000 - 1600

  ##to the sample until the average is no longer less than

  ##the average of all scores

  ##please note: this could result in lots of numbers

  ##being appended to the sample

  ##print the population

  ##adjust the population by

  ##removing the highest and lowest scores from each sample

  ##print the (adjusted) population  

  ##calculate the total number of (adjusted) scores  

  ##calculate the total value of all (adjusted) scores

  ##find the average score of the (adjusted) population  

  ##print the total number of (adjusted) scores  

  ##print the total value of all (adjusted) scores

  ##print the average of all of the (adjusted) scores

Done in Python Format please

Solutions

Expert Solution

import random
population=[]
for i in range(5):
  sample = []
  n = random.randint(5,10)
  for num in range(n):
    sample.append(random.randrange(400,1600))
  population.append(sample)
total = score = 0;
for sample in population:
    total+=len(sample)
    score+=sum(sample)
avg = score/total
print("Sum of scores =",score)
print("Total no. of scores =",total)
print("Average score = ",avg)
print()
print("Population after average adjustment : ")
print()
for sample in population:
    savg = sum(sample)/len(sample)
    while(savg<avg):
        sample.append(random.randint(1000,1600))
        savg = sum(sample)/len(sample)
for sample in population:
    temp = list(map(str,sample))
    print(','.join(temp))
print()
print("Population after extremum adjustment : ")
print()
for sample in population:
    mx = max(sample)
    mn = min(sample)
    sample.remove(mx)
    sample.remove(mn)
    temp = list(map(str,sample))
    print(','.join(temp))
total = score = 0
for sample in population:
    total+=len(sample)
    score+=sum(sample)
avg = score/total
print()
print("Sum of adjusted scores =",score)
print("Total no. of adjusted scores =",total)
print("Average adjusted score = ",avg)

    
    

Related Solutions

SAT Score Analysis You have been asked to analyze SAT scores (which may be 400 -...
SAT Score Analysis You have been asked to analyze SAT scores (which may be 400 - 1600).   You will be analyzing a population (a list) which consists of a number of samples (lists) of student scores. Here is the code to generate the  population/samples:      import random   population=[]   for i in range(5):   sample = []   n = random.randint(5,10)   for num in range(n):   sample.append(random.randrange(400,1600))   population.append(sample)   The analysis should be conducted as follows:   ##calculate the total number of scores     ##calculate the total value...
SAT scores: Assume that in a given year the mean mathematics SAT score was 495, and...
SAT scores: Assume that in a given year the mean mathematics SAT score was 495, and the standard deviation was 111. A sample of 61 scores is chosen. Use the TI-84 Plus calculator. Part 1 of 5 (a) What is the probability that the sample mean score is less than 484? Round the answer to at least four decimal places. The probability that the sample mean score is less than 484 is? Part 2 of 5 (b) What is the...
Computation of z-scores and standardized scores You are a school psychologist and have been asked to...
Computation of z-scores and standardized scores You are a school psychologist and have been asked to administer a verbal intelligence test to a local senior high school English class to assess writing preparedness of the class. You have been given the mean (μ = 70) and population standard deviation (σ = 8) for the raw scores from this test. Based on the testing manual, you know that the developers of this assessment generate a standardized score using a predetermined mean...
You have been asked to write a report regarding who may receive freight. Analyze FIVE (5)...
You have been asked to write a report regarding who may receive freight. Analyze FIVE (5) principal parties to whom freight may be payable, when this would be the case and if there are any exceptions
Critical reading SAT scores are distributed as N(480, 99). Find: a) Find the SAT score at...
Critical reading SAT scores are distributed as N(480, 99). Find: a) Find the SAT score at the 75th percentile b) Find the SAT score at the 25th percentile
You are the CFO for a 400-bed hospital in your community. You have been asked to...
You are the CFO for a 400-bed hospital in your community. You have been asked to present information to the local business organization on financial information and its importance to the stability of any business. You have been presented a list of questions from the group to answer in your presentation: What is the importance of financial information to the hospital? Who are the various users of the hospital financial information and how is the information used in healthcare decision...
Math SAT Scores (Raw Data, Software Required): Suppose the national mean SAT score in mathematics is...
Math SAT Scores (Raw Data, Software Required): Suppose the national mean SAT score in mathematics is 520. The scores from a random sample of 40 graduates from Stevens High are given in the table below. Use this data to test the claim that the mean SAT score for all Stevens High graduates is the same as the national average. Test this claim at the 0.10 significance level (a) What type of test is this? This is a left-tailed test.This is...
28. SAT Scores the average national SAT score is 1019. If we assume a bell-shaped distribution...
28. SAT Scores the average national SAT score is 1019. If we assume a bell-shaped distribution and a standard deviation equal to 110, what percentage of scores will you expect to fall above 1129? Above 799? Source: New York Times Almanac. 28th Question Solution: 16%; 97.5% For above 1129: 16% For above 799: 97.5% Why? please someone send me from where 16% and 97.5% came from?
Math SAT Scores (Raw Data, Software Required): Suppose the national mean SAT score in mathematics is...
Math SAT Scores (Raw Data, Software Required): Suppose the national mean SAT score in mathematics is 520. The scores from a random sample of 40 graduates from Stevens High are given in the table below. Use this data to test the claim that the mean SAT score for all Stevens High graduates is the same as the national average. Test this claim at the 0.10 significance level. (a) What type of test is this? This is a left-tailed test. This...
imagine you are a business consultant to ExxonMobil and you have been asked to analyze, advise,and...
imagine you are a business consultant to ExxonMobil and you have been asked to analyze, advise,and create recommendations on how the firm can ensure its future success in it's current market. prepare a minimum of 1050 word analysis of economic data and business data to explain how the core economic principles impact the sustainability of the firm and what actions the firm can take to ensure success. address the following: •identify the market structure of ExxonMobil operates in, analyze its...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT