Issue with Making a Graph

Please be aware that the forum does have a homework policy, (FAQ: Homework Policy) . But perhaps you can ask a question (of your own construction) that involves sampling and the general sort of approach you hope to use, and then once you receive support and understand your tools better, you can go back and think about your original problem rather than tackling it directly with us.

Regards.