\documentclass[10pt]{article}
\usepackage{fullpage}
\usepackage{setspace}
\usepackage{parskip}
\usepackage{titlesec}
\usepackage[section]{placeins}
\usepackage{xcolor}
\usepackage{breakcites}
\usepackage{lineno}
\usepackage{hyphenat}
\PassOptionsToPackage{hyphens}{url}
\usepackage[colorlinks = true,
linkcolor = blue,
urlcolor = blue,
citecolor = blue,
anchorcolor = blue]{hyperref}
\usepackage{etoolbox}
\makeatletter
\patchcmd\@combinedblfloats{\box\@outputbox}{\unvbox\@outputbox}{}{%
\errmessage{\noexpand\@combinedblfloats could not be patched}%
}%
\makeatother
\usepackage[round]{natbib}
\let\cite\citep
\renewenvironment{abstract}
{{\bfseries\noindent{\abstractname}\par\nobreak}\footnotesize}
{\bigskip}
\titlespacing{\section}{0pt}{*3}{*1}
\titlespacing{\subsection}{0pt}{*2}{*0.5}
\titlespacing{\subsubsection}{0pt}{*1.5}{0pt}
\usepackage{authblk}
\usepackage{graphicx}
\usepackage[space]{grffile}
\usepackage{latexsym}
\usepackage{textcomp}
\usepackage{longtable}
\usepackage{tabulary}
\usepackage{booktabs,array,multirow}
\usepackage{amsfonts,amsmath,amssymb}
\providecommand\citet{\cite}
\providecommand\citep{\cite}
\providecommand\citealt{\cite}
% You can conditionalize code for latexml or normal latex using this.
\newif\iflatexml\latexmlfalse
\providecommand{\tightlist}{\setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}%
\AtBeginDocument{\DeclareGraphicsExtensions{.pdf,.PDF,.eps,.EPS,.png,.PNG,.tif,.TIF,.jpg,.JPG,.jpeg,.JPEG}}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\begin{document}
\title{Summary of Citibike miniproject}
\author[1]{Yaxuan Yin}%
\affil[1]{New York University Shanghai}%
\vspace{-1em}
\date{\today}
\begingroup
\let\center\flushleft
\let\endcenter\endflushleft
\maketitle
\endgroup
\sloppy
\textbf{Abstract -}
\par\null
Citi Bike is current biggest sharing system in New York. As we known,
there are a lot of external factors like the location of MTA stations
determining the number of customers, trip duration and so on. What is
more, there are some internal factors like gender, age taking the
important role in the Citi bike analysis as well.
\par\null
I will use the birth year of 1990 as the line , focus on the people who
born before and after 1990. And aim to develop is there any relationship
between age and customer.
\par\null
\textbf{Introduction -}
\textbf{}
Like all other sharing systems, ~Airbnb the housing sharing system, Uber
the car sharing system, Citi Bike is the network of bicycle rental
stations intended for point-to-point transportation.
Citi Bike is New York City's largest bike sharing system. It's a
convenient solution for trips that are too far to walk but too short for
a taxi or the subway. The bike sharing system is combined with all other
transportation methods available in the area for commuters.
Currently, there are about a million trips on average per month by Citi
Bike riders. The system has 10,000 bicycles and 610 stations. By end of
2017, the total size of Citi Bike system will be 12,000 bikes and 750
stations.
\par\null
\href{https://github.com/fedhere/PUI2018_fb55/tree/master/HW8_fb55\#data--}{}\textbf{Data
-}
The data is grabbed from Citi Bike open
data(~\url{https://www.citibikenyc.com/system-data}) starting from 2015.
I divided the data into 2 data frames by the birth year of 1990.
As the figure1 and figure2, the bar is concentrated by 1. It shows that~
the birth year of users is relatively concentrated.
Figure3 shows the scatter of birth year and trip duration simply.\selectlanguage{english}
\begin{figure}[h!]
\begin{center}
\includegraphics[width=0.70\columnwidth]{figures/hist/hist}
\caption{{The bar show the ratio of birth year.
{\label{616787}}%
}}
\end{center}
\end{figure}\selectlanguage{english}
\begin{figure}[h!]
\begin{center}
\includegraphics[width=0.70\columnwidth]{figures/WX20181110-225637@2x/WX20181110-225637@2x}
\caption{{Derivation of figure 1
{\label{574840}}%
}}
\end{center}
\end{figure}\selectlanguage{english}
\begin{figure}[h!]
\begin{center}
\includegraphics[width=0.70\columnwidth]{figures/WX20181110-225730@2x/WX20181110-225730@2x}
\caption{{The relationship between birth year and trip duration
{\label{975351}}%
}}
\end{center}
\end{figure}
\textbf{Methodology -}
NULL HYPOTHESIS:~
The proportion of weekend trips taken by riders born after 1990 is the
same or less than the proportion of weekend trips taken by riders born
in or before 1990.
H0:~
proportion(younger) - proportion(older) \textless{}= 0
ALTERNATIVE HYPOTHESIS:~
The proportion of weekend trips taken by riders born after 1990 is
greater than the proportion of weekend trips taken by riders born in or
before 1990.
HA:~
proportion(younger) - proportion(older) \textgreater{} 0
Alpha level: 0.05
I use Z-test to test the proportions of people born before 1990 and
after 1990. I defined the people who born before 1990 as 1, after 1990
as 0 and to sum up them by function of groupby.~\selectlanguage{english}
\begin{figure}[h!]
\begin{center}
\includegraphics[width=0.70\columnwidth]{figures/WX20181110-225835@2x/WX20181110-225835@2x}
\caption{{Distribution of Citi bike users by birth year
{\label{792168}}%
}}
\end{center}
\end{figure}
\subsection*{}\label{section}
\subsection*{Conclusions -}\label{conclusions--}
\par\null
According the he z statistics, we can not reject the Null Hypothesis
that the proportion of weekend trips taken by riders born after 1990 is
the same or less than the proportion of weekend trips taken by riders
born in or before 1990. In conclusion, The proportion of riders born
before 1990 takes a significant part. The weaknesses of analysis is lack
the compare the same data between the different time to make sure its
validation. And if Citi bike want to take more portion of market, they
should make effort to promote the people who born after 1990 using Citi
Bike.\selectlanguage{english}
\begin{figure}[h!]
\begin{center}
\includegraphics[width=0.70\columnwidth]{figures/WX20181110-225957@2x/WX20181110-225957@2x}
\caption{{Fraction of Citibike bikers per gender in January 2016 for week days
(left) and weekends (right)
{\label{932932}}%
}}
\end{center}
\end{figure}
\subsection*{~}\label{section}
The result and its significance, including the weaknesses and strengths
of the analysis. Either this session of the previous one should contain
figures as well to show the results.
\par\null
The analysis notebook is attached here:~
\url{https://github.com/ShellyYoon/PUI2018\_yy2908/blob/master/HW8\_yy2908/HW8\_Assignment2.ipynb}
\par\null
\selectlanguage{english}
\FloatBarrier
\end{document}