implementation for graphical approach to distribution test.