Created
October 13, 2019 12:11
-
-
Save MariaLavrovskaya/360819ac05a60d7b34234f44c30d30b0 to your computer and use it in GitHub Desktop.
airbnb_8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #Calculate the standard deviation | |
| ##Calculate the variance to get std | |
| var_private = private_room['minimum_nights'].var(ddof=1) | |
| std_private = np.sqrt(var_private) | |
| var_entire = entire_subset['minimum_nights'].var(ddof=1) | |
| std_entire = np.sqrt(var_entire) | |
| std = np.sqrt((var_private + var_entire)/2) | |
| print(std_private, std_entire, std) | |
| st_error = np.sqrt(var_private /22326 + var_entire / 22326) | |
| print(st_error) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment