jeudi 29 octobre 2020

How can I create a random list of integers in python from 1 to 5 with mean 4.6 and length 557? [closed]

course A has 312 ratings and a avg rating of 4.7

course B has 557 ratings and a avg rating of 4.6

I want to know with which course do I have higher chances of having a good experience

I think if a create an array with random integers between 1 and 5 with the mean equal to the avg rating of the course and with size equal to the length of the number of ratings. Then I just need to add this list [1, 2, 3, 4, 5] simulating my experience with the course and finally I can calcule the new average then to know with which course do I have higher chances of having a good experience

Thank you!




Aucun commentaire:

Enregistrer un commentaire