this is for holding javascript data
Shaiwal Sachdev added textit_textbf_Comparison_of_Uber__.tex
almost 8 years ago
Commit id: 73f55ee74b2818c716c5674569e007852b2cc266
deletions | additions
diff --git a/textit_textbf_Comparison_of_Uber__.tex b/textit_textbf_Comparison_of_Uber__.tex
new file mode 100644
index 0000000..ba0c9ce
--- /dev/null
+++ b/textit_textbf_Comparison_of_Uber__.tex
...
\textit\textbf{Comparison of Uber Fare with NYC fare ! Plotting the Cumulative distribution function(CDF) !}
\\First the intersection of all the Timezone 6,10,16,20 locations is taken.
\\Next,we make a json file which stores like key is location and values is difference between the fare
\\ uber_fare = (high_estimate +low_estimate)/2 - nyc_fare;
\\ DO this for all services:
\\
\noindent
{\it Example Result}
\begin{verbatim}
"40.690346_-73.960293_40.6904473_-73.9787192": {
"diff_black": 8.016,
"diff_family": 17.516,
"diff_pool": 7.516,
"diff_suv": 18.016,
"diff_x": 7.516,
"diff_xl": 11.516
},
\end{verbatim}
\\ Next task is finding the cdf for all the services. DO this for each service of Uber.
\\ Round off the differences and convert to int.
\\ Find the frequenct of each difference. Sum it up.
\\ Divide the freq/sumofallfreq
\\ Find the cumulative sum yaxis[i] = yaxis[i] + yaxis[i-1]
\\ And now plot the line with
\\ Differnece in Fare (X axis)
\\ CDF (Y axis) (Ranging between 0 to 1)
\\ Doing this for the Timezones Gives us four plots with 6 cdf lines each for each service of uber.
The Four plots are given below:
\\ Suppose make frequency table like