Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.88 KB | None | 0 0
  1. {
  2. "cells": [
  3. {
  4. "cell_type": "markdown",
  5. "metadata": {},
  6. "source": [
  7. "# Applied Data Science Capstone - Part I"
  8. ]
  9. },
  10. {
  11. "cell_type": "markdown",
  12. "metadata": {},
  13. "source": [
  14. "## Which is the best neighborhood in NYC to run my new business ?"
  15. ]
  16. },
  17. {
  18. "cell_type": "markdown",
  19. "metadata": {},
  20. "source": [
  21. "### Introduction"
  22. ]
  23. },
  24. {
  25. "cell_type": "markdown",
  26. "metadata": {},
  27. "source": [
  28. "The main objective of this project is to create a solution that get location data from New York City and find some recommendation of where are the best places to run a new business, according to density of business, visitation in the area and users rating for this categories in the neighborhoods."
  29. ]
  30. },
  31. {
  32. "cell_type": "markdown",
  33. "metadata": {},
  34. "source": [
  35. "#### Business problem"
  36. ]
  37. },
  38. {
  39. "cell_type": "markdown",
  40. "metadata": {},
  41. "source": [
  42. "If we try to answer the main question *Which is the best neighborhood in NYC to run my new business ?*, we need answer another questions:\n",
  43. "\n",
  44. "3. Which neighborhoods receive more visitors/customers ? \n",
  45. "1. Which neighborhoods there is few business like of yours ?\n",
  46. "2. Which neighborhoods has worst average rates from customers for this business category ?\n",
  47. "\n",
  48. "Of course, there are lots of questions that an entrepreneur should answer before we can start a new business, but we are data scientists so we will find the best answers with available data for them !"
  49. ]
  50. },
  51. {
  52. "cell_type": "markdown",
  53. "metadata": {},
  54. "source": [
  55. "#### Audience"
  56. ]
  57. },
  58. {
  59. "cell_type": "markdown",
  60. "metadata": {},
  61. "source": [
  62. "The audience for the results of this project is everyone that are analyzing neighborhoods and venues data and are looking for insights. The results will be presented in a straight and clear manner, so anyone that is interested in this subject like students, entrepreneurs, business analysts and so on can understand them and get some value, not only *number-crunchers*."
  63. ]
  64. },
  65. {
  66. "cell_type": "markdown",
  67. "metadata": {},
  68. "source": [
  69. "### Data"
  70. ]
  71. },
  72. {
  73. "cell_type": "markdown",
  74. "metadata": {},
  75. "source": [
  76. "#### Data needed to solve the problem"
  77. ]
  78. },
  79. {
  80. "cell_type": "markdown",
  81. "metadata": {},
  82. "source": [
  83. "In order to create a solution this problem, we need information of venues based on geographical data (latitude, longitude), ratings for that venues, # of visitors and its consumption profiles for each neighborhood. For our luck, some of that information we can get from FOURSQUARE API !\n",
  84. "For question 1, we will use the # of ratings posted about venues as a proxy for the # of visitors in the neighborhoods, then we can obtain it from FOURSQUARE API too !"
  85. ]
  86. },
  87. {
  88. "cell_type": "markdown",
  89. "metadata": {},
  90. "source": [
  91. "#### Data Sources"
  92. ]
  93. },
  94. {
  95. "cell_type": "markdown",
  96. "metadata": {},
  97. "source": [
  98. "The main source of data is FOURSQUARE API. However, we need to preprocessing and transform them to produce new datasets that will be used on machine learning models."
  99. ]
  100. },
  101. {
  102. "cell_type": "markdown",
  103. "metadata": {},
  104. "source": [
  105. "### Methodology"
  106. ]
  107. },
  108. {
  109. "cell_type": "markdown",
  110. "metadata": {},
  111. "source": [
  112. "The basic ideas underlying this solution are:\n",
  113. "1. Users must choose a business category based on FOURSQUARE venue´s categories\n",
  114. "\n",
  115. "2. I will build a dataframe to be the input of machine learning model with the following columns:\n",
  116. " - NEIGHBORHOOD\n",
  117. " - VENUE_COUNT\n",
  118. " - USER_COUNT\n",
  119. " - CATEGORY_AVG\n",
  120. " \n",
  121. "3. I will process FOURSQUARE data and:\n",
  122. "\n",
  123. " a. Count business for selected category for each neighborhood and write in the VENUE_COUNT column.\n",
  124. " \n",
  125. " b. Count user ratings for all business for each neighborhood for this category and write in the USER_COUNT column.\n",
  126. " \n",
  127. " c. Get the average rating for all business in this category for each neighborhood and write in CATEGORY_AVG column.\n",
  128. " \n",
  129. " d. Get the absolute minimum and maximum count of user ratings for this category and store in MIN_USER_COUNT and MAX_USER_COUNT variables.\n",
  130. " \n",
  131. " e. Get the absolute minimum and maximum # of venues for this category and store in MIN_VENUE_COUNT and MAX_VENUE_COUNT variables.\n",
  132. " \n",
  133. " f. Get the absolute minimum and maximum average ratings for this category and store in MIN_CATEGORY_AVG and MAX_CATEGORY_AVG variables.\n",
  134. "\n",
  135. "4. Normalize data for columns VENUE_COUNT, USER_COUNT and CATEGORY_AVG.\n",
  136. "\n",
  137. "5. Run models for all neighborhoods with the above calculated variables (VENUE_COUNT, USER_COUNT, CATEGORY_AVG)\n",
  138. "\n",
  139. "6. Predict the best places for a new business (VENUE_COUNT = 0, USER_COUNT = 1, CATEGORY_AVG = 0)\n",
  140. "\n",
  141. "7. The results will be a rank of neighborhoods with minimal distances, ascendenting ordered."
  142. ]
  143. },
  144. {
  145. "cell_type": "markdown",
  146. "metadata": {},
  147. "source": [
  148. "#### Machine Learning algorithms selected"
  149. ]
  150. },
  151. {
  152. "cell_type": "markdown",
  153. "metadata": {},
  154. "source": [
  155. "We will try K-Nearest Neighborhood with K = 1 (a single neighborhood) and Multiple Linear Regression and compare results."
  156. ]
  157. },
  158. {
  159. "cell_type": "code",
  160. "execution_count": null,
  161. "metadata": {},
  162. "outputs": [],
  163. "source": []
  164. }
  165. ],
  166. "metadata": {
  167. "kernelspec": {
  168. "display_name": "Python 3",
  169. "language": "python",
  170. "name": "python3"
  171. },
  172. "language_info": {
  173. "codemirror_mode": {
  174. "name": "ipython",
  175. "version": 3
  176. },
  177. "file_extension": ".py",
  178. "mimetype": "text/x-python",
  179. "name": "python",
  180. "nbconvert_exporter": "python",
  181. "pygments_lexer": "ipython3",
  182. "version": "3.6.8"
  183. }
  184. },
  185. "nbformat": 4,
  186. "nbformat_minor": 2
  187. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement