2022: Week 5 The Prep School - Setting Grades

 Created by: Carl Allchin

The introductory challenges are over for 2022 so it's time to step up (a little). I've tried to use the techniques you've learnt over the past 4 challenges to form the basis for this week. Also, I will provide a little less direct instruction and more requirements that you will need to workout how to approach them. 

This week's challenge is looking to take the numeric score our students' have received and turn it to:

  • A letter grade (our students' parents prefer this) 
  • A score that goes towards their High School applications
The challenge's aim is understand how many points on average a student who receives an A gets. This will help us understand how many students would get a higher score than the average student receiving an A without receiving one. 

Input

One file (the same Grades as 2022 Week 3) of grades by student and subject:


Requirements

  • Input the data
  • Divide the students grades into 6 evenly distributed groups (have a look at 'Tiles' functionality in Prep)
    • By evenly distributed, it means the same number of students gain each grade within a subject
  • Convert the groups to two different metrics:
    • The top scoring group should get an A, second group B etc through to the sixth group who receive an F
    • An A is worth 10 points for their high school application, B gets 8, C gets 6, D gets 4, E gets 2 and F gets 1.
  • Determine how many high school application points each Student has received across all their subjects 
  • Work out the average total points per student by grade 
    • ie for all the students who got an A, how many points did they get across all their subjects
  • Take the average total score you get for students who have received at least one A and remove anyone who scored less than this. 
  • Remove results where students received an A grade (requirement updated 2/2/22)
  • How many students scored more than the average if you ignore their As?
  • Output the data

Output


7 data fields:
  • Student ID
  • Score
  • Subject
  • Points
  • Grade
  • Total points per Student
  • Avg student total points per grade
1361 rows (1362 including headers)

You can download the full outputs here

After you finish the challenge make sure to fill in the participation tracker, then share your solution on Twitter using #PreppinData and tagging @Datajedininja@JennyMartinDS14 & @TomProwse1

You can also post your solution on the Tableau Forum where we have a Preppin' Data community page. Post your solutions and ask questions if you need any help! 

Popular posts from this blog

2023: Week 1 The Data Source Bank

2023: Week 2 - International Bank Account Numbers

How to...Handle Free Text