Skip to content

Instantly share code, notes, and snippets.

View 57uff3r's full-sized avatar
🎯
Focusing

Andrey Korchak 57uff3r

🎯
Focusing
View GitHub Profile
@57uff3r
57uff3r / Makefile
Created December 24, 2018 07:39 — forked from playpauseandstop/Makefile
Setup aiohttp web app with Session Middleware to use Redis Storage and run under Gunicorn.
.PHONY: clean distclean install run
ENV ?= env
VENV = $(shell python -c "import sys; print(int(hasattr(sys, 'real_prefix')));")
ifeq ($(VENV),1)
GUNICORN = gunicorn
else
GUNICORN = $(ENV)/bin/gunicorn
endif

Assignment: Центральная предельная теорема своими руками

В этом задании вам предстоит проверить работу центральной предельной теоремы, а также поработать с генерацией случайных чисел и построением графиков в Питоне.

  1. Выберите ваше любимое непрерывное распределение (чем меньше оно будет похоже на нормальное, тем интереснее; попробуйте выбрать какое-нибудь распределение из тех, что мы не обсуждали в курсе).
  • Прочитать, что такое непрерывное распределение, выбрать то, которое нравится больше всех.
  • Кратко описать его в своём ноутбуке (определение + формулы + график + почему нравится).
  1. Сгенерируйте из него выборку объёма 1000, постройте гистограмму выборки и нарисуйте поверх неё теоретическую плотность распределения вашей случайной величи
@57uff3r
57uff3r / README
Last active August 29, 2015 14:26
netflix-prize
SUMMARY
================================================================================
This dataset was constructed to support participants in the Netflix Prize. See
http://www.netflixprize.com for details about the prize.
The movie rating files contain over 100 million ratings from 480 thousand
randomly-chosen, anonymous Netflix customers over 17 thousand movie titles. The
data were collected between October, 1998 and December, 2005 and reflect the
distribution of all ratings received during this period. The ratings are on a
import xml.sax
import xml.sax.handler
import re
class BodyNotFound(Exception):
pass
class BookHandler(xml.sax.handler.ContentHandler):
def __init__(self):
self.inBody = False