This is a difficult post... take your time to read please, and I am sorry if I have not explained myself very well

I would like to calculate the average frequency of an event in a tennis match: For example, let's say that Rodger Federer in the most of the tennis games he won, he won the game in this way: 15-0, then 15-15 then 30-15, then 40-15 . I would like to calculate (and report into a graphic ) the frequency of those kind of games and all statistical parameters that could give me a better understanding of what will happen to the next game against another player and how far he will be from the average frequency of '' the ways he used to win a game ''

I don't know if I explained myself ... I want to calculate the arithmetic avereage of the most ''usual way'' .. the ''frequency'' of ''how'' Federer wins his games ... for example: If he wins more frequently like this 15-0, 30-0, 40-0 ... or if he wins more frequently like this 15-0 15-15, 30-15. 40-15 and in which ratio ... I would like to calculate the frequency and put it into a software that will draw a graphic, and see how much the graphic '' deviates '' from the average frequency of the way he (usually) win the games

I want to know also if there is a sofwatare that could automate this... without me making all the calculations... thank you