\(P_1=\frac{A_{weekend}}{A_{total}}\) (2)
Besides, what I want to do is to figure out if people born after 1980 are more likely to use CITIbike on weekend than people born before 1980 . In this case, I applied one-tailed Z-test to test if the difference of two samples statistically significant. The fraction formular are as (1),(2). The Z-test formular is as following.