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

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.

主站蜘蛛池模板: 梨树县| 同德县| 镇远县| 温宿县| 汨罗市| 塔河县| 成都市| 合水县| 衡阳县| 淄博市| 昭苏县| 临湘市| 静海县| 娄底市| 朝阳市| 平乐县| 阳原县| 新河县| 济南市| 铜川市| 外汇| 长治市| 沙田区| 宁海县| 和硕县| 南和县| 康保县| 静乐县| 东山县| 武定县| 墨玉县| 根河市| 桐庐县| 馆陶县| 广平县| 渭南市| 资溪县| 岱山县| 资兴市| 舒城县| 贺州市|