# Ignore this (just simulating your data)
score = sort(rnorm(100, mean = 50, sd = 20))
# Weight (pnorm = cumulative normal distribution)
############### WEIGHT GENERATING FUNCTION #########
weight = 2 - pnorm(score, mean = 25, sd = 25)
####################################################
finalscores = score * weight
###
# plot it
plot(score,weight)

#plot final scores vs scores
matplot(cbind(score, finalscores), type = 'p', pch = 1:2)
legend(
'topleft',
legend = c('score', 'final score'),
col = 1:2,
pch = 1:2
)
