官术网_书友最值得收藏!

Some exercises

I'm going to give you a little assignment in this section. If you open up MeanMedianExercise.ipynb file, there's some stuff you can play with. I want you to roll up your sleeves and actually try to do this.

In the file, we have some random e-commerce data. What this data represents is the total amount spent per transaction, and again, just like with our previous example, it's just a normal distribution of data. We can run that, and your homework is to go ahead and find the mean and median of this data using the NumPy package. Pretty much the easiest assignment you could possibly imagine. All the techniques you need are in the MeanMedianMode.ipynb file that we used earlier.

The point here is not really to challenge you, it's just to make you actually write some Python code and convince yourself that you can actually get a result and make something happen here. So, go ahead and play with that. If you want to play with it some more, feel free to play around with the data distribution here and see what effect you can have on the numbers. Try adding some outliers, kind of like we did with the income data. This is the way to learn this stuff: master the basics and the advance stuff will follow. Have at it, have fun.

Once your're ready, let's move forward to our next concept, standard deviation and variance.

主站蜘蛛池模板: 石楼县| 额尔古纳市| 宣威市| 平顶山市| 礼泉县| 尼木县| 天水市| 榕江县| 栾川县| 资源县| 金乡县| 三门县| 涿鹿县| 青龙| 志丹县| 大英县| 武陟县| 永定县| 乌鲁木齐县| 新疆| 武夷山市| 铜陵市| 泽普县| 香港 | 贡嘎县| 安远县| 金门县| 建昌县| 贵定县| 大安市| 鹤山市| 昌宁县| 天祝| 浮山县| 仁化县| 寻甸| 宝兴县| 华坪县| 增城市| 织金县| 汝城县|