Generating Function In Statistics