← Math 221

Bike Flow

A town's bike-share company keeps its bikes at five stations: Downtown, the University, the Stadium, the Train Station, and Riverside. Each day, riders pick up bikes at one station and drop them off at another. Of the bikes at a station in the morning, an arrow's label is the percentage that end the day at the station it points to, and the loop is the percentage that end the day back where they started. The riders follow the same pattern every day.

The state vector

Number the days k = 0, 1, 2, \ldots. Write \htmlClass{cD}{D_k}, \htmlClass{cU}{U_k}, \htmlClass{cS}{S_k}, \htmlClass{cT}{T_k}, and \htmlClass{cR}{R_k} for the number of bikes at each station on the morning of day k. The state vector collects these five numbers. For example, a company with 100 bikes might start with 30 Downtown, 25 at the University, 10 at the Stadium, 25 at the Train Station, and 10 at Riverside:

p_k = \begin{bmatrix} \htmlClass{cD}{D_k} \\ \htmlClass{cU}{U_k} \\ \htmlClass{cS}{S_k} \\ \htmlClass{cT}{T_k} \\ \htmlClass{cR}{R_k} \end{bmatrix}, \qquad p_0 = \begin{bmatrix} \htmlClass{cD}{30} \\ \htmlClass{cU}{25} \\ \htmlClass{cS}{10} \\ \htmlClass{cT}{25} \\ \htmlClass{cR}{10} \end{bmatrix}.

The state vector tells us everything about the system on a given morning. Our goal is to predict p_{k+1} from p_k.