5.1. Statistical Analysis of the Nighttime Economy–Housing Imbalance
The nighttime economy–housing imbalance intensity in each sub-district unit was calculated. The statistical description of imbalance intensity is shown in
Table 2. The imbalance intensity ranged from −215.42 to 676.49, with median and standard deviation values of 2.06 and 107.16, respectively. To capture a statistical description of the nighttime economy–housing imbalance, we divided the imbalance intensities into nine categories based on the natural break algorithm [
63]. The frequency of each category is shown in
Figure 3.
The results showed that the number of residential sub-districts with negative imbalance intensities was roughly equal to the number of sub-districts with positive imbalance intensities (53 vs. 54). However, the distribution of each category of residential units and activity units was different. Most residential units were distributed in categories for which the absolute value of the imbalance intensity was low. This means that in most residential units, the vitality during the sleep period was not that different from the vitality during the nighttime activity period. In contrast, most activity units were distributed in categories with high imbalance intensities. This phenomenon can be explained by the study area characteristics. For the residential units, the relatively convenient transportation and relatively mature supporting facilities in the study area have led to the formation of some residential units that foster nighttime activities. Thus, vitality differences between the sleep period and nighttime activity period are minimal. For the activity units, the relatively high land price has concentrated the use of activity units for activity types that can generate high value (such as office land and commercial land). The area of residential land is relatively low, and houses are expensive. Thus, some middle- and low-income residents who act in these units at night live in distant parts of the metropolitan area to balance living and transportation costs. This phenomenon was also reflected in the statistical results, where the absolute value of the maximum positive imbalance intensity was greater than the absolute value of the minimum negative imbalance intensity.
5.2. Spatial Patterns of the Nighttime Economy–Housing Imbalance Intensity
Figure 4 show the spatial distribution of the nighttime economy–housing imbalance intensity. Intuitively, the imbalance development of nighttime economy and housing is a relatively common phenomenon, and its spatial distribution shows spatial divergence. The activity units with high imbalance intensities exhibit a structure superimposing ring and stripe shapes. The ring-shaped area, which is also the core region of activity units, roughly coincides with the geometric center of Shanghai. This area includes many well-known landmarks, such as the Oriental Pearl TV Tower, the Lokatse, Nanjing Road, the Bund, and the People’s Square; these are the traditional commercial and tourist centers of Shanghai. The stripe-shaped area runs through northern and southern Shanghai. By reviewing the public transportation map of Shanghai, we found that this strip basically follows the direction of Shanghai Metro Line 1. The metro line promoted the expansion of urban commercial spaces and business areas by providing fast, convenient, and orderly transportation. In turn, nighttime social activities have become popular in the units along the metro line. Most residential units are distributed near activity units, allowing residents to easily participate in nighttime activities; this overall distribution pattern reflects a relative balance between activity units and residential units in Shanghai.
To determine whether the spatial distribution of the imbalance intensity was spatially correlated and calculate the degree of correlation, the global Moran’s I index was used. This index can reflect whether the obtained pattern is clustered, dispersed, or random, and it is often used to quantitatively describe dependence in space. According to the analysis results, the z-score equals 8.999, which is obviously greater than the strictest threshold value of 2.58. This result suggests that the imbalance intensity exhibits a significant clustered distribution pattern. Moreover, the p-value was close to 0, indicating that this result is reliable. This conclusion was consistent with Tobler’s First Law of Geography: “Everything is related to everything else, but near things are more related to each other” [
64]. Furthermore, the spatial clusters of units with high or low imbalance intensities and spatial outliers were detected using Anselin Moran’s I index, as shown in
Figure 5. The sub-districts were divided into five categories according to the results: nonsignificant, high-high cluster, low-low cluster, high-low outlier, and low-high outlier. In this study, the high-high clusters represent densely concentrated nighttime activity sub-districts, the low-low clusters represent densely concentrated residential sub-districts, the high-low outlier clusters represent nighttime activity centers near densely concentrated residential sub-districts, and the low-high outlier clusters represent residential sub-districts near nighttime activity centers. The results suggested that the high-high clusters were associated with the geometric center of Shanghai, and there are some low-low clusters and high-low outlier areas near the high-high cluster area. This result further confirms the previously described spatial patterns.
5.3. Associations between the Imbalance Intensity and Built Environment Factors
In this section, the associations between the imbalance intensity and built environment factors were analyzed to explore the mechanism through which the nighttime economy–housing imbalance is formed. First, a correlation analysis was conducted to assess the relationships between various factors and the imbalance intensity. The analysis results are shown in
Table 3. The metric r represents Spearman’s rho correlation coefficient, which reflects the linear correlation between each built environment factor and the imbalance intensity, and the
p-value represents the probability that the correlation occurred by chance. The results showed that there were significant linear correlations between the imbalance intensity and all built environment factors (
p < 0.01). In terms of the density dimension, the company, education, food, and entertainment POI densities were strongly related to the imbalance intensity, with correlation coefficient values larger than 0.4. This finding was consistent with the results of previous studies: overtime work at companies and nighttime tutoring lessons at education institutions lead to people gathering in the corresponding spatial units, and dining and entertainment activities were the main forms of nighttime economic activities [
14,
65]. The residence, shopping, and public service POI densities exhibited relatively weak correlations. In terms of the transport accessibility dimension and land use diversity dimension, the factors were positively correlated with the imbalance intensity. This result indicates that the higher land-use diversity and better accessibility, the higher the nighttime economy–housing imbalance intensity. This phenomenon can be explained as the flexible travel services provide residents with easy access to gathering in these spatial units. The high land-use diversity indicates multiple and diverse facilities in this area, including types such as public service, food, and entertainment. It can satisfy the diverse need for the economic activities of residents and helps facilities potentially serve complementary functions [
59,
66]. Meanwhile, the relatively high cost of living makes few people live in these areas [
67,
68], thus making the nighttime economy–housing imbalance intensity higher. The results of the above correlation analysis provide some basis for the selection of parameters for the subsequent regression analysis.
To avoid the adverse effect of the multicollinearity problem, seven explanatory factors, company, residence, shopping, entertainment, public service, bus stations, and POI entropy, were selected through a collinearity test (condition number < 30), and all the factors were standardized with the z-score algorithm. The R
2 and adjusted R
2 values of the fitted GWR model were 0.8245 and 0.6973, respectively, which were significantly higher than the estimation result of the OLS regression model (0.490 for R
2 and 0.457 for adjusted R
2). This finding indicated that the proposed regression model is acceptable for exploring the mechanism driving the formation of the nighttime economy–housing imbalance from the perspective of the built environment. The coefficient distributions for the GWR results are shown in
Figure 6, and the statistical descriptions of the coefficients are shown in
Table 4.
The company, residence, shopping, entertainment, and public service POI densities were used to measure the effects of the nighttime economy–housing imbalance in the density dimension. The coefficient of company density reflected the positive impacts of companies on imbalance intensity. The high-value units were mainly distributed in the central area of Shanghai and nearby areas to the southeast and northwest (shown in
Figure 6a). The northwest area was one of the main regions with industrial parks, and the central area and southeast area were the main regions with financial and commerce firms. This phenomenon reflects the agglomeration effect of company clustering on imbalance intensity; that is, a dense company distribution is associated with increased nighttime economic activities [
69]. The distribution of the residence density coefficients displayed a gradually decreasing trend from the central area to the surrounding areas, and this trend was roughly related to the distribution of house prices in these areas (shown in
Figure 6b). This phenomenon can be explained by the consumption levels of residents. The units with high consumption levels often included comprehensive supporting nighttime economic facilities and low residential density, as reflected by the positive influence on the nighttime economy–housing imbalance. The surrounding units had few supporting facilities and high residential density, leading to a negative impact on the nighttime economy–housing imbalance. The shopping POI coefficients reflected the positive impacts of consumption on the nighttime economy–housing imbalance in most units and the high-value-area distribution was roughly consistent with the direction of Shanghai Metro Line 1 (shown in
Figure 6c). This trend reflects the positive influence of business and shopping activities on the nighttime economy–housing imbalance and implicates the role of public transport, especially metro lines, in promoting commercial development to a certain extent. The coefficients of the entertainment POI density reflected the generally positive effects of entertainment facilities on the nighttime economy–housing imbalance, with the high-value-unit distribution pattern being roughly opposite those for the company and residence POI densities (shown in
Figure 6d). These findings reflect the potential for developing the entertainment industry to promote nighttime economic activities in various areas. In addition, the public service POI density displayed negative effects on the nighttime economy–housing imbalance. This phenomenon can be explained by the convenience of public service facilities as an important condition for housing site selection. Public service facility accessibility is more important for residential choices than for participating in nighttime economic activities [
70,
71].
The bus station density coefficient was used to measure the effects of transportation accessibility on the nighttime economy–housing imbalance intensity in the transport accessibility dimension. The various coefficients generally exhibited a positive impact on the nighttime economy–housing imbalance. The distribution presented an increasing trend from northwest to southeast (shown in
Figure 6f); this distribution is related to the main residential areas in Shanghai, such as the Minhang District, Songjiang District, and Qingpu District, which is located in the southwestern part of the metropolitan area. An increase in transportation convenience in this area would promote the development of the nighttime economy.
POI entropy was used to measure the effects of land use diversity on the nighttime economy–housing imbalance intensity in the diversity dimension. The coefficients of POI entropy also reflected the positive association between the mixed and complementary land-use types and the nighttime economy–housing imbalance intensity. Notably, increasing the mixing of land use can help satisfy the nighttime activity demands of residents and attract individuals from underdeveloped areas to these areas. This finding was generally consistent with the research conclusions on vitality presented by Tu et al. and Yue et al. [
53,
59]. Moreover, the intercept factor also had a certain impact on the nighttime economy–housing imbalance intensity. The corresponding distributions are shown in
Figure 6h.
It is worth noting that the selection of explanatory factors will significantly affect the analysis results. Three criteria were used in this study to support the selection of explanatory factors. First, we must ensure that there are no highly locally correlated explanatory variables in the geographically weighted regression model to avoid estimation errors induced by local multicollinearity problems [
72]. Second, a combination of explanatory factors with higher adjusted coefficients of determination (adjusted R-square) is preferred to ensure that the model can represent the proportion of the variance in the dependent variable well [
73]. Third, the combination with more explanatory factors that have a strong influence on prior knowledge is preferred to more comprehensively explain variation in the dependent variable. Based on the above criteria, even though the explanatory factors of food and education are highly correlated with the imbalance intensity, they were not applied in the regression model due to the highly local correlation with many other factors. In addition, taking into account the determination coefficient value, the importance of the public transportation system in urban travel, and the coverage in the study area, the explanatory factor of bus station density was chosen as the representative factor of traffic accessibility. The selection of explanatory variables may vary due to the difference in data characteristics in the study area.