In this chapter, we examine how the institutional design of Vietnamese equity markets, such as trading sessions, price limits, order types, and investor composition, shapes observed prices, returns, and liquidity. We quantify microstructure frictions and demonstrate why ignoring these frictions leads to biased inference in asset pricing tests.
Market microstructure is the study of how trading rules, order handling mechanisms, and market design affect price formation, transaction costs, and liquidity. The field, pioneered by Kyle (1985), Glosten and Milgrom (1985), and Hasbrouck (2007), provides the analytical toolkit for understanding why observed prices may deviate from fundamental values and for how long.
In developed markets with continuous electronic trading, designated market makers, and minimal regulatory constraints on price movement, microstructure frictions are typically second-order concerns for researchers working at monthly or lower frequencies. In Vietnam’s equity markets, this is emphatically not the case. Daily price limits, thin trading, a predominantly retail investor base, discrete tick sizes, and the absence of formal market-making arrangements generate frictions that propagate into monthly returns, distort factor loadings, and bias portfolio-level inference. Any serious empirical analysis of Vietnamese equities must therefore begin with a careful assessment of market microstructure.
This chapter provides that assessment. We first describe the institutional architecture of Vietnamese equity trading. We then develop diagnostics for the most consequential frictions, such as price limit hits, zero-return days, illiquidity, and non-synchronous trading, and quantify their severity in the cross-section of listed firms. Finally, we derive practical guidance for adjusting portfolio construction and asset pricing tests.
4.1 What Is Market Microstructure?
The textbook assumption of frictionless markets implies that prices continuously and costlessly incorporate information. Under this assumption, the observed return on any asset at any frequency equals the “true” return dictated by fundamentals. Market microstructure relaxes this assumption by recognizing that prices are generated by a specific trading process with real costs, constraints, and imperfections.
The canonical framework of Kyle (1985) models a market with three types of participants:
an informed trader who knows the asset’s fundamental value,
noise traders who trade for liquidity reasons, and
a market maker who sets prices to break even in expectation.
The key insight is that the market maker cannot distinguish informed from uninformed order flow, so prices adjust gradually to information, creating a wedge between the transaction price and the fundamental value. The size of this wedge (the bid-ask spread) and the speed of price adjustment (market depth) are the core objects of microstructure theory.
Glosten and Milgrom (1985) extend this framework to a sequential trade setting and show that the bid-ask spread has two components: an adverse selection component (compensation for trading against informed traders) and an order processing component (compensation for the mechanical costs of trading). Huang and Stoll (1997) further decompose the spread into realized spread and price impact components. These decompositions are important because they reveal different sources of trading costs and have different implications for market quality.
For empirical asset pricing, the key question is: at what frequency and under what conditions do microstructure effects become negligible? In highly liquid markets, Bali, Engle, and Murray (2016) argue that monthly returns are largely free of microstructure contamination. In Vietnam, as we demonstrate below, this is not the case. Microstructure effects persist at monthly and even quarterly frequencies for a substantial fraction of listed firms.
4.1.1 The Microstructure-Asset Pricing Interface
The interface between microstructure and asset pricing operates through several channels. First, illiquidity itself may be a priced risk factor. Amihud (2002) shows that expected illiquidity is positively related to expected stock returns, implying a liquidity premium. Pástor and Stambaugh (2003) develop an equilibrium model in which liquidity risk (i.e., the covariance of a stock’s liquidity with market liquidity) commands a risk premium. Second, microstructure noise in prices biases estimated betas, factor loadings, and test statistics. Scholes and Williams (1977) first identified this bias in the context of non-synchronous trading, and Dimson (1979) proposed an aggregated-coefficients estimator to correct it. Third, price limits and other regulatory constraints censor the return distribution, creating truncation bias in volatility estimates, return moments, and extreme-value statistics (Kim and Rhee 1997).
Table 4.1 summarizes these channels and their empirical consequences.
Table 4.1: Channels Through Which Microstructure Affects Asset Pricing
Channel
Mechanism
Empirical Consequence
Illiquidity premium
Compensation for bearing transaction costs and inventory risk
Cross-sectional return predictability by liquidity measures
Non-synchronous trading
Infrequent trading creates stale prices
Downward-biased betas, attenuated correlations, and spurious lead-lag
Price limits
Regulatory censoring of daily returns
Truncated return distributions, volatility spillover, and artificial autocorrelation
Vietnam operates two stock exchanges: the Ho Chi Minh Stock Exchange (HOSE), established in 2000, and the Hanoi Stock Exchange (HNX), established in 2005. HOSE lists larger firms and accounts for the majority of market capitalization and trading volume. HNX lists smaller firms and also operates the Unlisted Public Company Market (UPCoM) for firms that have not yet met full listing requirements. All three venues operate electronic limit order book systems without designated market makers.
4.2.1 Exchange Characteristics
Table 4.2 presents the key structural differences between HOSE, HNX, and UPCoM. These differences have direct implications for liquidity, price discovery, and the severity of microstructure frictions.
Table 4.2: Exchange Comparison: HOSE, HNX, and UPCoM
Feature
HOSE
HNX
UPCoM
Established
2000
2005
2009
Listing tier
Large-cap
Mid/small-cap
Pre-listing
Daily price limit
\(\pm\) 7%
\(\pm\) 10%
\(\pm\) 15%
Tick size regime
Tiered by price
Tiered by price
100 VND
Trading lot
100 shares
100 shares
100 shares
Short selling
Limited
Not available
Not available
Foreign ownership cap
Industry-specific
Industry-specific
Industry-specific
The heterogeneous price limit bands across exchanges create a natural experiment for studying limit effects. HOSE’s tighter \(\pm\) 7% band means that large-cap stocks are more frequently constrained than mid-cap stocks on HNX, conditional on the same information shock. UPCoM’s wider \(\pm\) 15% band provides the least constrained environment, though its stocks are also the least liquid.
4.2.2 Trading Sessions
Each exchange operates a structured trading day with distinct sessions. Understanding session structure is essential because price formation mechanisms differ across sessions, and certain sessions are disproportionately important for benchmark pricing (Table 4.3).
Table 4.3: Trading Session Structure on HOSE
Session
Time
Mechanism
Price Discovery Role
Pre-opening
08:30–09:00
Order entry only, no matching
Reveals pre-open demand/supply
Opening auction (ATO)
09:00–09:15
Batch auction, single price
Sets opening price from accumulated orders
Continuous trading (Morning)
09:15–11:30
Continuous limit order matching
Primary price discovery
Lunch break
11:30–13:00
No trading
—
Continuous trading (Afternoon)
13:00–14:30
Continuous limit order matching
Primary price discovery
Closing auction (ATC)
14:30–14:45
Batch auction, single price
Sets closing price (benchmark)
Post-closing
14:45–15:00
Put-through (negotiated) trades
Block and negotiated transactions
The closing auction (ATC) deserves particular attention. The ATC price is the official closing price used for index calculation, NAV computation, and margin requirements. Because it is determined by a single-bid auction, it can be manipulated by strategically timed orders, a phenomenon documented in numerous emerging markets (Comerton-Forde and Tang 2009; Hillion and Suominen 2004). Researchers using daily closing prices should be aware that ATC prices may not reflect the continuous-session equilibrium, particularly for less liquid stocks where a single large order can move the closing price.
4.2.3 Order Types and Matching Rules
Vietnamese exchanges support a limited set of order types compared to developed markets (Table 4.4).
Table 4.4: Available Order Types
Order Type
Description
Availability
Limit order (LO)
Specifies price and quantity
All sessions
Market order (ATO/ATC)
Matches at auction price
Auction sessions only
Market-to-limit (MTL)
Converts to limit at best available
HNX only
The absence of iceberg orders, stop orders, and hidden orders means that the full limit order book is visible to all participants. While this enhances pre-trade transparency, it also means that large institutional orders face significant information leakage risk, which may deter institutional participation and reduce market depth.
Orders are matched on a strict price-time priority basis during continuous sessions. During auction sessions, a single clearing price is determined that maximizes executed volume. If multiple prices satisfy this criterion, the price closest to the previous closing price is selected.
4.2.4 Tick Size Structure
Tick sizes on HOSE are tiered by price level, which creates discontinuities in the bid-ask spread as a percentage of price (Table 4.5).
Table 4.5: Tick Size Schedule on HOSE
Price Range (VND)
Tick Size (VND)
Minimum Spread as % of Midpoint
< 10,000
10
0.10% at 10,000
10,000–49,900
50
0.10% at 50,000
≥ 50,000
100
0.20% at 50,000
The jump from a 50 VND tick to a 100 VND tick at the 50,000 VND boundary means that the minimum percentage spread doubles discontinuously. This creates a “tick size cliff” that can affect the cross-sectional distribution of bid-ask spreads and, consequently, the measurement of illiquidity (Vo and Doan 2023). Bessembinder (2003) document similar effects in other markets with tiered tick structures.
4.2.5 Investor Composition
The Vietnamese equity market is predominantly driven by retail investors. While foreign institutional investors account for a meaningful share of market capitalization (particularly in blue-chip stocks subject to foreign ownership limits), daily trading volume is overwhelmingly generated by domestic retail accounts.
This retail dominance has several consequences for microstructure. First, retail investors tend to submit smaller orders and trade more frequently, generating high message-to-trade ratios but limited depth at each price level. Second, retail order flow is more susceptible to herding and sentiment, which can amplify momentum and generate excess volatility (Barber et al. 2009; Kaniel et al. 2012). Third, the limited institutional presence means that sophisticated liquidity provision is scarce, particularly in mid- and small-cap stocks.
4.3 Price Limits and Their Consequences
Vietnam enforces daily price limits on all listed equities. A stock’s price cannot move beyond a fixed percentage of the previous day’s closing price within a single trading day. The limit bands are \(\pm\) 7% on HOSE, \(\pm\) 10% on HNX, and \(\pm\) 15% on UPCoM.
4.3.1 Theoretical Framework
Price limits were introduced with the stated goal of reducing volatility and preventing panic-driven price dislocations. However, the academic literature presents a more nuanced picture. The “magnet effect” hypothesis (Subrahmanyam 1994) predicts that price limits actually accelerate price movement toward the limit as traders rush to execute before the limit is hit. The “delayed price discovery” hypothesis (Fama and French 1989) argues that limits merely postpone inevitable price adjustments, creating volatility spillover into subsequent days.
Formally, let \(P_t^*\) denote the equilibrium price on day \(t\) and \(P_{t-1}^c\) the previous closing price. The observed return is:
where \(r_t^* = \ln(P_t^* / P_{t-1}^c)\) is the latent (unconstrained) return, \(\bar{L}\) is the upper limit, and \(\underline{L}\) is the lower limit. The observed return \(r_t^{obs}\) is a censored version of the true return. This censoring has several consequences:
Truncated moments: The observed variance \(\text{Var}(r_t^{obs}) < \text{Var}(r_t^*)\) because extreme returns are clipped. This biases downward any volatility-based risk measure.
Artificial autocorrelation: When \(r_t^{obs} = \bar{L}\) and \(r_{t+1}^{obs} > 0\) (continued adjustment the next day), the return series exhibits positive autocorrelation that is purely mechanical, not informational.
Volatility spillover: Define excess volatility on day \(t+1\) as \(\sigma_{t+1}^2 - E[\sigma_{t+1}^2 | \text{no limit hit on day } t]\). Kim and Rhee (1997) and Chu and Qiu (2019) document significant positive spillover, where days following limit hits exhibit abnormally high volatility.
Biased extreme value statistics: Measures such as Value-at-Risk, Expected Shortfall, and maximum drawdown are mechanically bounded by the limit, understating true tail risk.
4.3.2 Detecting Price Limit Hits
We now implement a diagnostic to detect price limit hits in the daily data.
Show code
import pandas as pdimport numpy as npimport sqlite3# Load daily price datatidy_finance = sqlite3.connect(database="data/tidy_finance_python.sqlite")# Assume prices_daily contains: symbol, date, close, exchangeprices_daily = pd.read_sql_query(# , exchange sql=""" SELECT symbol, date, close FROM prices_daily """, con=tidy_finance, parse_dates=["date"]).dropna()
Show code
# Define limit bands by exchangelimit_bands = {"HOSE": 0.07, "HNX": 0.10, "UPCoM": 0.15}prices_daily = prices_daily.sort_values(["symbol", "date"])prices_daily["prev_close"] = prices_daily.groupby("symbol")["close"].shift(1)prices_daily["ret"] = prices_daily["close"] / prices_daily["prev_close"] -1prices_daily["limit_band"] = prices_daily["exchange"].map(limit_bands)# A limit hit occurs when the return is within 0.1% of the theoretical limittolerance =0.001prices_daily["upper_hit"] = ( prices_daily["ret"] >= prices_daily["limit_band"] - tolerance)prices_daily["lower_hit"] = ( prices_daily["ret"] <=-prices_daily["limit_band"] + tolerance)prices_daily["limit_hit"] = ( prices_daily["upper_hit"] | prices_daily["lower_hit"])
Following Kim and Rhee (1997), we test whether days following a limit hit exhibit abnormally high volatility. Define the dummy variable \(D_t = 1\) if a limit hit occurred on day \(t\), and estimate:
A significant positive coefficient on the limit hit dummy confirms that Vietnamese price limits do not eliminate volatility, they merely redistribute it across days. This has direct implications for risk management: daily VaR measures computed from censored returns understate true risk exposure.
4.3.5 Return Autocorrelation Induced by Price Limits
Price limits mechanically induce positive autocorrelation in returns. To quantify this, we compute the first-order autocorrelation coefficient separately for stocks that hit limits frequently versus those that do not.
Table 4.6: Return Autocorrelation by Price Limit Hit Frequency
Show code
# Classify stocks by limit hit frequencystock_limit_freq = ( prices_daily .groupby("symbol") .agg( hit_rate=("limit_hit", "mean"), n_obs=("ret", "count") ) .query("n_obs >= 250") # At least 1 year of data)stock_limit_freq["limit_group"] = pd.qcut( stock_limit_freq["hit_rate"], q=3, labels=["Low", "Medium", "High"])# Compute autocorrelation by groupdef compute_autocorr(group_symbols): subset = prices_daily[prices_daily["symbol"].isin(group_symbols)].copy() subset["ret_lag"] = subset.groupby("symbol")["ret"].shift(1)return subset[["ret", "ret_lag"]].dropna().corr().iloc[0, 1]autocorr_results = []for group in ["Low", "Medium", "High"]: symbols = stock_limit_freq[stock_limit_freq["limit_group"] == group].index ac = compute_autocorr(symbols) n_stocks =len(symbols) avg_hit_rate = stock_limit_freq.loc[symbols, "hit_rate"].mean() autocorr_results.append({"Group": group,"N Stocks": n_stocks,"Avg Limit Hit Rate (%)": round(avg_hit_rate *100, 2),"AR(1)": round(ac, 4) })pd.DataFrame(autocorr_results).style.hide(axis="index")
The expected pattern is a monotonically increasing autocorrelation from the Low to High limit-hit group, confirming that the observed serial dependence in returns is at least partly an artifact of price censoring rather than genuine return predictability.
4.4 Liquidity, Thin Trading, and Zero Returns
Liquidity (i.e., the ability to trade quickly at low cost without moving the price) is a first-order concern in Vietnamese equities. A substantial fraction of listed firms, particularly on HNX and UPCoM, experience chronic illiquidity characterized by infrequent trading, wide bid-ask spreads, and frequent zero-return days.
4.4.1 Measuring Liquidity
The academic literature has developed numerous liquidity measures, each capturing a different dimension of market quality. @#tbl-liquidity-measures summarizes the measures most applicable to Vietnamese data, given typical data availability.
Table 4.7: Liquidity Measures for Vietnamese Equities
The Amihud illiquidity ratio (Amihud 2002) is particularly useful because it requires only daily return and volume data. It captures the price impact of trading (i.e., the return per unit of currency volume) and has been shown to correlate well with more sophisticated microstructure-based measures such as the effective spread Goyenko and Ukhov (2009).
4.4.2 Computing Liquidity Diagnostics
Show code
# Compute standard liquidity measures at the stock-month levelprices_daily["abs_ret"] = prices_daily["ret"].abs()prices_daily["zero_return"] = (prices_daily["ret"] ==0).astype(int)prices_daily["year_month"] = prices_daily["date"].dt.to_period("M")# Assume volume is in shares and value is in VND# Amihud: average |ret| / value (in billions VND)prices_daily["amihud_daily"] = np.where( prices_daily["value"] >0, prices_daily["abs_ret"] / (prices_daily["value"] /1e9), np.nan)liquidity_monthly = ( prices_daily .groupby(["symbol", "year_month"]) .agg( zero_return_share=("zero_return", "mean"), avg_turnover=("turnover", "mean"), amihud=("amihud_daily", "mean"), trading_days=("ret", "count"), avg_daily_value=("value", "mean") ) .reset_index())# Flag severely illiquid stock-monthsliquidity_monthly["illiquid_flag"] = ( (liquidity_monthly["zero_return_share"] >0.5) | (liquidity_monthly["trading_days"] <10) | (liquidity_monthly["avg_daily_value"] <1e8) # < 100M VND/day)
4.4.3 Cross-Sectional Distribution of Liquidity
Table 4.8: Cross-Sectional Distribution of Liquidity Measures (Latest Full Year)
The distributions typically reveal a bimodal pattern: HOSE stocks cluster at low illiquidity values, while HNX and especially UPCoM stocks exhibit a long right tail of extreme illiquidity. This heterogeneity implies that a single liquidity filter or treatment is insufficient for the entire cross-section.
4.4.5 Time Variation in Aggregate Liquidity
Market-wide liquidity is not constant. It deteriorates during crises, policy uncertainty, and periods of capital outflow, and improves during bull markets and periods of foreign inflow. The time variation in aggregate liquidity is itself a risk factor (Pástor and Stambaugh 2003).
Before any asset pricing analysis, apply the following liquidity filter: exclude stock-months where the zero-return share exceeds 50%, where fewer than 15 trading days are observed, or where average daily trading value falls below a threshold (e.g., 100 million VND). Document the filter explicitly, and report sensitivity of results to alternative thresholds.
4.5 Bid-Ask Spread Estimation
In the absence of comprehensive quote data, the effective bid-ask spread can be estimated from transaction data using the method of Roll (1984). The Roll estimator exploits the fact that if the bid-ask bounce is the sole source of negative serial covariance in returns, then:
where \(\Delta p_t = p_t - p_{t-1}\) is the price change. When the autocovariance is positive (which occurs when information-driven serial correlation dominates the bid-ask bounce), the Roll estimator is undefined. Hasbrouck (2009) proposes a Bayesian variant that handles this case by imposing a prior on the spread.
Show code
# Compute Roll spread estimate at the stock-month levelprices_daily["dprice"] = prices_daily.groupby("symbol")["close"].diff()prices_daily["dprice_lag"] = prices_daily.groupby("symbol")["dprice"].shift(1)roll_cov = ( prices_daily .groupby(["symbol", "year_month"]) .apply(lambda g: g[["dprice", "dprice_lag"]].dropna().cov().iloc[0, 1], include_groups=False ) .reset_index(name="autocovariance"))# Roll spread is defined only when autocovariance is negativeroll_cov["roll_spread"] = np.where( roll_cov["autocovariance"] <0,2* np.sqrt(-roll_cov["autocovariance"]), np.nan)# As a percentage of priceroll_cov = roll_cov.merge( prices_daily.groupby(["symbol", "year_month"])["close"].mean() .reset_index(name="avg_price"), on=["symbol", "year_month"])roll_cov["roll_spread_pct"] = roll_cov["roll_spread"] / roll_cov["avg_price"] *100
Table 4.9: Distribution of Roll Spread Estimates (% of Price)
When stocks do not trade at the same frequency or at the same times, observed returns are misaligned. This non-synchronous trading bias, first formalized by Scholes and Williams (1977) and Lo and MacKinlay (1990), is one of the most consequential microstructure effects for asset pricing in thin markets.
4.6.1 The Problem
Suppose the true (unobserved) return process for stock \(i\) follows a single-factor model:
where \(r_{m,t}^*\) is the true market return and \(\beta_i\) is the true beta. If stock \(i\) last traded \(k\) days before the end of day \(t\), the observed return incorporates information only up to day \(t - k\). Scholes and Williams (1977) show that the OLS estimate of beta from regressing observed returns on observed market returns is:
where \(\pi_i\) is the probability that stock \(i\) trades on any given day. For a stock that trades on only 50% of days, the OLS beta is biased downward by 50%. This bias is severe in Vietnam, where many small-cap stocks trade on fewer than half of all trading days.
The Dimson-corrected beta is \(\hat{\beta}_i^{Dimson} = \sum_{k=-K}^{K} \hat{\beta}_{i,k}\). Typically \(K = 1\) or \(K = 2\) is sufficient. The summed coefficients capture the full response of the stock’s observed return to market information, regardless of when the stock actually trades.
The scatter plot should reveal a systematic pattern: Dimson betas exceed OLS betas for most stocks, with the discrepancy largest for thinly traded stocks. Points above the 45-degree line indicate stocks whose OLS betas are biased downward by non-synchronous trading.
Table 4.10: Beta Bias by Trading Frequency Tercile
For the thinnest-traded tercile, OLS beta underestimates true systematic risk by 20-40% on average. Using uncorrected betas for cost of equity estimation or factor model tests will produce systematically incorrect results for these stocks.
4.6.4 The Scholes-Williams Estimator
An alternative correction, proposed by Scholes and Williams (1977), estimates beta as:
where \(\hat{\beta}_{i,k}\) is the slope from regressing \(r_{i,t}\) on \(r_{m,t-k}\) alone, and \(\hat{\rho}_m\) is the first-order autocorrelation of the market return. The Scholes-Williams estimator is consistent under the assumption that non-trading is the sole source of serial cross-correlation, while the Dimson estimator is more robust to additional sources of lead-lag structure.
The microstructure frictions documented above have direct consequences for portfolio construction, particularly for strategies that involve rebalancing across the full cross-section of listed firms.
4.7.1 Equal-Weighted vs. Value-Weighted Returns
Equal-weighted portfolio returns give the same weight to each stock, including illiquid small-cap stocks that may contribute stale or noisy prices. Value-weighted returns tilt toward large, liquid stocks and are less susceptible to microstructure contamination.
A persistent divergence between equal-weighted and value-weighted cumulative returns is a hallmark of microstructure effects: the equal-weighted portfolio overstates attainable returns because it implicitly assumes costless trading in illiquid stocks.
4.7.2 Recommended Liquidity Filters
Based on the diagnostics developed in this chapter, we recommend the following pre-analysis filters:
Tip
Always report results with and without liquidity filters. If results are qualitatively different, the baseline findings may be driven by microstructure artifacts rather than genuine economic effects.
4.7.3 Monthly vs. Daily Frequency
For most asset pricing applications, monthly return aggregation is preferable to daily analysis in Vietnam because:
Monthly returns smooth out intraday noise, bid-ask bounce, and price limit effects.
Stocks that trade infrequently within a month still produce a meaningful monthly return.
Factor portfolio sorts are conventionally conducted at monthly frequency.
Statistical tests have better size properties when microstructure noise is reduced.
However, monthly aggregation does not eliminate all biases. Stocks with zero returns for an entire month still contribute stale observations. The Dimson and Scholes-Williams corrections should still be applied at monthly frequency for beta estimation.
4.8 Implications for Asset Pricing Tests
4.8.1 Factor Model Estimation
Standard factor model estimation assumes that returns are observed synchronously and without censoring. In Vietnam, both assumptions are violated. The practical consequences are in Table 4.11
Table 4.11: Standard Assumptions and Their Violations
Assumption
Violation in Vietnam
Consequence
Synchronous observation
Thin trading
Biased betas, attenuated R²
Uncensored returns
Price limits
Truncated distributions, biased moments
Continuous trading
Discrete ticks
Return discreteness, bid-ask bounce
No transaction costs
Wide spreads
Overstated portfolio returns
4.8.2 Adjusted Testing Procedure
We recommend the following adjustments to standard asset pricing tests when applied to Vietnamese data:
Beta estimation: Use Dimson (\(K \ge 1\)) or Scholes-Williams betas, not OLS betas.
Factor construction: When forming size and value portfolios, apply liquidity filters before sorting. Consider excluding the smallest quintile of stocks by market capitalization, which is most affected by thin trading.
Return aggregation: Use monthly frequency. If daily analysis is necessary, include lagged market returns in the time-series regression.
Robust inference: Cluster standard errors by stock to account for persistent microstructure-induced serial correlation. Use Newey-West HAC standard errors with sufficient lags.
Price limit adjustment: For volatility analysis or risk measurement, consider the Chu and Qiu (2019) approach of modeling the latent (uncensored) return distribution using truncated regression:
Sensitivity reporting: Always report key results under alternative specifications: with and without liquidity filters, using OLS vs. Dimson betas, at daily vs. monthly frequency, and using observed vs. truncation-corrected volatility.
4.9 Summary
This chapter has established that Vietnamese equity markets exhibit microstructure characteristics that materially affect observed prices, returns, and risk measures. The key findings are:
Price limits censor daily returns, inducing positive autocorrelation, volatility spillover, and truncated distributions. The \(\pm\) 7% band on HOSE is particularly restrictive for volatile stocks.
Thin trading and zero returns afflict a substantial fraction of listed firms. Trading probabilities below 50% are common on HNX and UPCoM, generating non-synchronous trading bias that attenuates OLS beta estimates by 20-40%.
Illiquidity varies dramatically across the cross-section, with Amihud ratios spanning several orders of magnitude. Value-weighted portfolio returns are less contaminated than equal-weighted returns.
The Dimson and Scholes-Williams beta corrections effectively address non-synchronous trading bias and should be used as the default beta estimator for Vietnamese equities.
Liquidity filters should be applied before any asset pricing analysis, and results should be reported with and without these filters as a robustness check.
Ignoring these frictions does not merely add noise to empirical results, it systematically biases estimates in predictable directions. The diagnostics and corrections presented in this chapter provide the foundation for credible empirical asset pricing in Vietnam.
Amihud, Yakov. 2002. “Illiquidity and Stock Returns: Cross-Section and Time-Series Effects.”Journal of Financial Markets 5 (1): 31–56. https://doi.org/10.1016/S1386-4181(01)00024-6.
Bali, Turan G, Robert F Engle, and Scott Murray. 2016. Empirical Asset Pricing: The Cross Section of Stock Returns. John Wiley & Sons.
Barber, Brad M, Yi-Tsung Lee, Yu-Jane Liu, and Terrance Odean. 2009. “Just How Much Do Individual Investors Lose by Trading?”The Review of Financial Studies 22 (2): 609–32.
Bessembinder, Hendrik. 2003. “Trade Execution Costs and Market Quality After Decimalization.”Journal of Financial and Quantitative Analysis 38 (4): 747–77.
Chu, Xiaojun, and Jianying Qiu. 2019. “Forecasting Volatility with Price Limit Hits—Evidence from Chinese Stock Market.”Emerging Markets Finance and Trade 55 (5): 1034–50.
Comerton-Forde, Carole, and Kar Mei Tang. 2009. “Anonymity, Liquidity and Fragmentation.”Journal of Financial Markets 12 (3): 337–67.
Dimson, Elroy. 1979. “Risk Measurement When Shares Are Subject to Infrequent Trading.”Journal of Financial Economics 7 (2): 197–226. https://doi.org/10.1016/0304-405X(79)90013-8.
Fama, Eugene F., and Kenneth R. French. 1989. “Business conditions and expected returns on stocks and bonds.”Journal of Financial Economics 25 (1): 23–49. https://doi.org/10.1016/0304-405X(89)90095-0.
Glosten, Lawrence R, and Paul R Milgrom. 1985. “Bid, Ask and Transaction Prices in a Specialist Market with Heterogeneously Informed Traders.”Journal of Financial Economics 14 (1): 71–100. https://doi.org/10.1016/0304-405X(85)90044-3.
Goyenko, Ruslan Y, Craig W Holden, and Charles A Trzcinka. 2009. “Do Liquidity Measures Measure Liquidity?”Journal of Financial Economics 92 (2): 153–81.
Goyenko, Ruslan Y, and Andrey D Ukhov. 2009. “Stock and Bond Market Liquidity: A Long-Run Empirical Analysis.”Journal of Financial and Quantitative Analysis 44 (1): 189–212.
Hasbrouck, Joel. 2007. Empirical Market Microstructure: The Institutions, Economics, and Econometrics of Securities Trading. Oxford University Press.
Hillion, Pierre, and Matti Suominen. 2004. “The Manipulation of Closing Prices.”Journal of Financial Markets 7 (4): 351–75.
Huang, Roger D, and Hans R Stoll. 1997. “The Components of the Bid-Ask Spread: A General Approach.”The Review of Financial Studies 10 (4): 995–1034.
Kaniel, Ron, Shuming Liu, Gideon Saar, and Sheridan Titman. 2012. “Individual Investor Trading and Return Patterns Around Earnings Announcements.”The Journal of Finance 67 (2): 639–80.
Kyle, Albert S. 1985. “Continuous Auctions and Insider Trading.”Econometrica: Journal of the Econometric Society 53 (6): 1315–35. https://doi.org/10.2307/1913210.
Lo, Andrew W, and A Craig MacKinlay. 1990. “An Econometric Analysis of Nonsynchronous Trading.”Journal of Econometrics 45 (1-2): 181–211.
Pástor, L’uboš, and Robert F Stambaugh. 2003. “Liquidity Risk and Expected Stock Returns.”Journal of Political Economy 111 (3): 642–85. https://doi.org/10.1086/374184.
Scholes, Myron, and Joseph Williams. 1977. “Estimating Betas from Nonsynchronous Data.”Journal of Financial Economics 5 (3): 309–27. https://doi.org/10.1016/0304-405X(77)90041-1.
Subrahmanyam, Avanidhar. 1994. “Circuit Breakers and Market Volatility: A Theoretical Perspective.”The Journal of Finance 49 (1): 237–54.
Vo, Duc Hong, and Bao Doan. 2023. “Minimum Tick Size, Market Quality and Costs of Trade Execution in Vietnam.”Plos One 18 (5): e0285821.
# Market Microstructure in Vietnam::: callout-noteIn this chapter, we examine how the institutional design of Vietnamese equity markets, such as trading sessions, price limits, order types, and investor composition, shapes observed prices, returns, and liquidity. We quantify microstructure frictions and demonstrate why ignoring these frictions leads to biased inference in asset pricing tests.:::Market microstructure is the study of how trading rules, order handling mechanisms, and market design affect price formation, transaction costs, and liquidity. The field, pioneered by @kyle1985continuous, @glosten1985bid, and @hasbrouck2007empirical, provides the analytical toolkit for understanding why observed prices may deviate from fundamental values and for how long.In developed markets with continuous electronic trading, designated market makers, and minimal regulatory constraints on price movement, microstructure frictions are typically second-order concerns for researchers working at monthly or lower frequencies. In Vietnam's equity markets, this is emphatically not the case. Daily price limits, thin trading, a predominantly retail investor base, discrete tick sizes, and the absence of formal market-making arrangements generate frictions that propagate into monthly returns, distort factor loadings, and bias portfolio-level inference. Any serious empirical analysis of Vietnamese equities must therefore begin with a careful assessment of market microstructure.This chapter provides that assessment. We first describe the institutional architecture of Vietnamese equity trading. We then develop diagnostics for the most consequential frictions, such as price limit hits, zero-return days, illiquidity, and non-synchronous trading, and quantify their severity in the cross-section of listed firms. Finally, we derive practical guidance for adjusting portfolio construction and asset pricing tests.## What Is Market Microstructure?The textbook assumption of frictionless markets implies that prices continuously and costlessly incorporate information. Under this assumption, the observed return on any asset at any frequency equals the "true" return dictated by fundamentals. Market microstructure relaxes this assumption by recognizing that prices are generated by a specific trading process with real costs, constraints, and imperfections.The canonical framework of @kyle1985continuous models a market with three types of participants:1. an informed trader who knows the asset's fundamental value,2. noise traders who trade for liquidity reasons, and3. a market maker who sets prices to break even in expectation.The key insight is that the market maker cannot distinguish informed from uninformed order flow, so prices adjust gradually to information, creating a wedge between the transaction price and the fundamental value. The size of this wedge (the bid-ask spread) and the speed of price adjustment (market depth) are the core objects of microstructure theory.@glosten1985bid extend this framework to a sequential trade setting and show that the bid-ask spread has two components: an adverse selection component (compensation for trading against informed traders) and an order processing component (compensation for the mechanical costs of trading). @huang1997components further decompose the spread into realized spread and price impact components. These decompositions are important because they reveal different sources of trading costs and have different implications for market quality.For empirical asset pricing, the key question is: at what frequency and under what conditions do microstructure effects become negligible? In highly liquid markets, @bali2016empirical argue that monthly returns are largely free of microstructure contamination. In Vietnam, as we demonstrate below, this is not the case. Microstructure effects persist at monthly and even quarterly frequencies for a substantial fraction of listed firms.### The Microstructure-Asset Pricing InterfaceThe interface between microstructure and asset pricing operates through several channels. First, illiquidity itself may be a priced risk factor. @amihud2002illiquidity shows that expected illiquidity is positively related to expected stock returns, implying a liquidity premium. @pastor2003liquidity develop an equilibrium model in which liquidity risk (i.e., the covariance of a stock's liquidity with market liquidity) commands a risk premium. Second, microstructure noise in prices biases estimated betas, factor loadings, and test statistics. @scholes1977estimating first identified this bias in the context of non-synchronous trading, and @dimson1979risk proposed an aggregated-coefficients estimator to correct it. Third, price limits and other regulatory constraints censor the return distribution, creating truncation bias in volatility estimates, return moments, and extreme-value statistics [@kim1997price].@tbl-microstructure-interface summarizes these channels and their empirical consequences.| Channel | Mechanism | Empirical Consequence ||--------------------|------------------|----------------------------------|| Illiquidity premium | Compensation for bearing transaction costs and inventory risk | Cross-sectional return predictability by liquidity measures || Non-synchronous trading | Infrequent trading creates stale prices | Downward-biased betas, attenuated correlations, and spurious lead-lag || Price limits | Regulatory censoring of daily returns | Truncated return distributions, volatility spillover, and artificial autocorrelation || Discrete tick sizes | Prices constrained to a grid | Bid-ask bounce, return discreteness, biased volatility || Investor composition | Retail-dominated order flow | Noise trading, herding, sentiment-driven pricing |: Channels Through Which Microstructure Affects Asset Pricing {#tbl-microstructure-interface}## Trading Architecture in VietnamVietnam operates two stock exchanges: the Ho Chi Minh Stock Exchange (HOSE), established in 2000, and the Hanoi Stock Exchange (HNX), established in 2005. HOSE lists larger firms and accounts for the majority of market capitalization and trading volume. HNX lists smaller firms and also operates the Unlisted Public Company Market (UPCoM) for firms that have not yet met full listing requirements. All three venues operate electronic limit order book systems without designated market makers.### Exchange Characteristics@tbl-exchange-comparison presents the key structural differences between HOSE, HNX, and UPCoM. These differences have direct implications for liquidity, price discovery, and the severity of microstructure frictions.| Feature | HOSE | HNX | UPCoM ||-------------------|------------------|------------------|------------------|| Established | 2000 | 2005 | 2009 || Listing tier | Large-cap | Mid/small-cap | Pre-listing || Daily price limit | $\pm$ 7% | $\pm$ 10% | $\pm$ 15% || Tick size regime | Tiered by price | Tiered by price | 100 VND || Trading lot | 100 shares | 100 shares | 100 shares || Short selling | Limited | Not available | Not available || Foreign ownership cap | Industry-specific | Industry-specific | Industry-specific |: Exchange Comparison: HOSE, HNX, and UPCoM {#tbl-exchange-comparison}The heterogeneous price limit bands across exchanges create a natural experiment for studying limit effects. HOSE's tighter $\pm$ 7% band means that large-cap stocks are more frequently constrained than mid-cap stocks on HNX, conditional on the same information shock. UPCoM's wider $\pm$ 15% band provides the least constrained environment, though its stocks are also the least liquid.### Trading SessionsEach exchange operates a structured trading day with distinct sessions. Understanding session structure is essential because price formation mechanisms differ across sessions, and certain sessions are disproportionately important for benchmark pricing (@tbl-trading-sessions).| Session | Time | Mechanism | Price Discovery Role ||---|---|---|---|| Pre-opening | 08:30–09:00 | Order entry only, no matching | Reveals pre-open demand/supply || Opening auction (ATO) | 09:00–09:15 | Batch auction, single price | Sets opening price from accumulated orders || Continuous trading (Morning) | 09:15–11:30 | Continuous limit order matching | Primary price discovery || Lunch break | 11:30–13:00 | No trading | — || Continuous trading (Afternoon) | 13:00–14:30 | Continuous limit order matching | Primary price discovery || Closing auction (ATC) | 14:30–14:45 | Batch auction, single price | Sets closing price (benchmark) || Post-closing | 14:45–15:00 | Put-through (negotiated) trades | Block and negotiated transactions |: Trading Session Structure on HOSE {#tbl-trading-sessions}The closing auction (ATC) deserves particular attention. The ATC price is the official closing price used for index calculation, NAV computation, and margin requirements. Because it is determined by a single-bid auction, it can be manipulated by strategically timed orders, a phenomenon documented in numerous emerging markets [@comerton2009anonymity; @hillion2004manipulation]. Researchers using daily closing prices should be aware that ATC prices may not reflect the continuous-session equilibrium, particularly for less liquid stocks where a single large order can move the closing price.### Order Types and Matching RulesVietnamese exchanges support a limited set of order types compared to developed markets (@tbl-order-types).| Order Type | Description | Availability ||-----------------------|-------------------------|-------------------------|| Limit order (LO) | Specifies price and quantity | All sessions || Market order (ATO/ATC) | Matches at auction price | Auction sessions only || Market-to-limit (MTL) | Converts to limit at best available | HNX only |: Available Order Types {#tbl-order-types}The absence of iceberg orders, stop orders, and hidden orders means that the full limit order book is visible to all participants. While this enhances pre-trade transparency, it also means that large institutional orders face significant information leakage risk, which may deter institutional participation and reduce market depth.Orders are matched on a strict price-time priority basis during continuous sessions. During auction sessions, a single clearing price is determined that maximizes executed volume. If multiple prices satisfy this criterion, the price closest to the previous closing price is selected.### Tick Size StructureTick sizes on HOSE are tiered by price level, which creates discontinuities in the bid-ask spread as a percentage of price (@tbl-tick-sizes).| Price Range (VND) | Tick Size (VND) | Minimum Spread as % of Midpoint ||---|---|---|| < 10,000 | 10 | 0.10% at 10,000 || 10,000–49,900 | 50 | 0.10% at 50,000 || ≥ 50,000 | 100 | 0.20% at 50,000 |: Tick Size Schedule on HOSE {#tbl-tick-sizes}The jump from a 50 VND tick to a 100 VND tick at the 50,000 VND boundary means that the minimum percentage spread doubles discontinuously. This creates a "tick size cliff" that can affect the cross-sectional distribution of bid-ask spreads and, consequently, the measurement of illiquidity [@vo2023minimum]. @bessembinder2003trade document similar effects in other markets with tiered tick structures.### Investor CompositionThe Vietnamese equity market is predominantly driven by retail investors. While foreign institutional investors account for a meaningful share of market capitalization (particularly in blue-chip stocks subject to foreign ownership limits), daily trading volume is overwhelmingly generated by domestic retail accounts.```{python}#| label: fig-investor-composition#| include: false#| fig-cap: "Approximate Investor Composition by Trading Value on HOSE"import matplotlib.pyplot as pltimport numpy as npcategories = ["Domestic Retail","Domestic Institutional","Foreign Institutional","Foreign Retail"]shares = [85, 5, 8, 2]colors = ["#2C73D2", "#0089BA", "#00B7C7", "#5DCEAF"]fig, ax = plt.subplots(figsize=(6.5, 4))bars = ax.barh(categories, shares, color=colors, edgecolor="white", height=0.6)for bar, share inzip(bars, shares): ax.text( bar.get_width() +1, bar.get_y() + bar.get_height() /2,f"{share}%", va="center", fontsize=10 )ax.set_xlabel("Share of Trading Value (%)")ax.set_xlim(0, 100)ax.spines["top"].set_visible(False)ax.spines["right"].set_visible(False)plt.tight_layout()plt.show()```This retail dominance has several consequences for microstructure. First, retail investors tend to submit smaller orders and trade more frequently, generating high message-to-trade ratios but limited depth at each price level. Second, retail order flow is more susceptible to herding and sentiment, which can amplify momentum and generate excess volatility [@barber2009just; @kaniel2012individual]. Third, the limited institutional presence means that sophisticated liquidity provision is scarce, particularly in mid- and small-cap stocks.## Which Prices Get Chosen: Digit Preferences and Superstition {#sec-micro-superstition}The tick schedule in @tbl-tick-sizes determines which prices are *possible*. It does not determine which of the possible prices are *chosen*. If traders were indifferent between adjacent grid points, the final digit of a transaction price would be close to uniformly distributed whenever the price ranges over many ticks, so any systematic departure from uniformity is evidence about how the price was set. This is an old diagnostic in microstructure. @harris1991stock documents that stock prices cluster on round fractions, more so for higher-priced and more volatile stocks, and interprets clustering as traders economizing on negotiation costs by using a coarser effective grid than the exchange requires. @christie1994nasdaq use the same object for a sharper purpose: NASDAQ dealers' near-total avoidance of odd-eighth quotes in active stocks could not be explained by negotiation costs and pointed instead to implicit collusion on wider spreads. In both cases the distribution of the final digit is a footprint of the price-formation process, recoverable from nothing more than a price series.Culture supplies a reason for digit preferences that has nothing to do with negotiation or collusion. In Chinese, 8 is lucky because its pronunciation evokes prosperity, and 4 is unlucky because it sounds like the word for death. @hirshleifer2018superstition show that Chinese IPO firms receive lucky listing codes more often than chance allows, trade at a premium, and subsequently underperform. @bhattacharya2018superstitious find that in Taiwan's index futures market individual investors submit disproportionately more limit orders at prices ending in 8 than in 4, institutions do not, and the superstitious traders lose money. Both papers locate superstition among retail participants in a single market.### Superstition Everywhere {#sec-micro-superstition-evidence}@chang2026superstition ask two broader questions: whether the same digit preference appears in the prices of every major Chinese asset class, including those traded almost exclusively by institutions, and whether its presence implies mispricing. Their measurement follows the Chinese reading convention, under which the last *nonzero* digit of a quoted price is the one that counts. A price of 20.58 ends in 8; a price of 20.50 is read as 20.5 and ends in 5. The core statistic is therefore a conditional probability,$$H_d = \Pr\left(\text{hundredths digit} = d \;\middle|\; \text{hundredths digit} \neq 0\right), \qquad d = 1, \dots, 9,$$ {#eq-micro-digit-prob}which equals $1/9 \approx 11.1\%$ for every $d$ when the final digit is set by chance. The test is whether $H_8$ lies above $1/9$ and $H_4$ below it. Instruments quoted to more decimal places are treated the same way at their own last place: the fourth decimal for exchange rates, the integer unit for commodity futures. Commodity contracts whose minimum price increment does not allow all ten final digits are dropped rather than corrected, since on a grid of 5 the final digit can only be 0 or 5.The effect turns out to be pervasive. The magnitudes below are from the authors' working-paper version and may differ slightly from the published article.- **IPOs.** From 1995 to June 2014, when IPO prices were set with considerable market input, $H_8 = 33.2\%$ and $H_4 = 4.6\%$. The preference is strong enough to appear even at the tenths place among IPO prices that end there ($23.0\%$ versus $6.2\%$). It vanishes the moment a binding regulatory P/E ceiling took effect in July 2014 and the market stopped setting the price: in the strict-control period neither $H_8$ nor $H_4$ differs significantly from $1/9$.- **Seasoned offerings.** Private placements, negotiated with at most ten investors, show a smaller but persistent effect ($13.9\%$ versus $8.2\%$).- **Secondary-market stock prices.** Opening prices, set by call auction, show $H_8 = 13.6\%$ and $H_4 = 8.6\%$, and closing prices set by call auction show $12.4\%$ versus $9.9\%$. Closing prices computed as the volume-weighted average of the final minute's trades, the rule before each exchange adopted a closing auction, show no effect ($11.5\%$ versus $10.9\%$), and the gap between $H_8$ and $H_4$ opens immediately after each exchange switched mechanism.- **Bonds.** Issuance coupon rates show no effect for Treasury, policy-bank, or local-government bonds, but a strong one for bonds that carry credit risk. It rises from financial bonds ($17.6\%$ versus $7.1\%$) to public non-financial corporate bonds ($20.3\%$ versus $7.4\%$) to privately placed non-financial corporate bonds ($24.2\%$ versus $5.2\%$), and within each category it strengthens as the rating falls, reaching $30.6\%$ versus $3.5\%$ for privately placed bonds rated below AAA. It is stronger for bonds issued on the exchange market than in the institutions-only interbank market, but present in both.- **Exchange rates and commodities.** Interbank closing rates of the US dollar, euro, yen, and Hong Kong dollar against the renminbi all show the effect. Opening rates, which are anchored by the central bank's published central parity, do not. Pooled opening prices of 29 commodity futures show $13.7\%$ versus $8.7\%$.The design is persuasive less because of any single number than because of the placebos built into it. Wherever a price is set mechanically, by a regulator's formula, a central parity, or an arithmetic average, the effect disappears. Wherever a price is set by aggregating prices that people submit, it appears. A cultural preference cannot survive averaging, and it cannot operate where no one chooses the price.### Why Sophisticated Investors Do It Too {#sec-micro-superstition-mechanism}The presence of the effect in the interbank bond market, a wholesale market of banks and large institutions, is the paper's most surprising finding. It forces a distinction between two mechanisms.The first is **anchoring under ambiguity**. No valuation model pins a price down to the last tick. If careful analysis can only narrow a bond's yield to somewhere between 5.52% and 5.62%, every point in the interval is defensible, and a culturally shared focal point such as 5.58% makes it easier for buyer and seller to settle. This is the reference-point behavior of @tversky1974judgment applied to an interval that fundamentals leave undetermined. It predicts a stronger effect where value is more ambiguous (credit-risky bonds rather than sovereigns, IPOs rather than seasoned placements, lower ratings rather than higher), which is exactly the pattern above. In the secondary stock market the authors test the prediction directly. Using the ambiguity measure of @brenner2018asset, which is built from the month-to-month variation in a stock's estimated daily return distribution, they find in a firm-year panel with firm and year fixed effects that higher ambiguity predicts more lucky and fewer unlucky auction prices, holding return volatility constant. Ambiguity, not risk, predicts the digit.The second is **overoptimism among unsophisticated investors**. Investors who are already enthusiastic about an asset reach for the lucky number as an expression of that enthusiasm. This predicts a stronger effect where optimism is likely to be high, and the authors find one: among IPOs, $H_8$ rises from $29.3\%$ in the lowest P/E group to $46.0\%$ in the highest, whereas private placements, whose buyers are sophisticated, show no such gradient. In the secondary-market panel, a lower book-to-market ratio predicts a stronger effect.The two mechanisms carry different implications for prices, and this is what earns the paper a place in a microstructure chapter. Anchoring picks a point from an interval that fundamentals have already determined, so it should leave no systematic mispricing. Overoptimism should leave some. The evidence lines up accordingly.- In Fama-MacBeth regressions of monthly market-adjusted returns over the three years after listing, IPOs priced with a final 8 underperform by about $0.47\%$ a month in the flexible-pricing period, roughly 15% cumulatively. The coefficient is insignificant in the strict-control period and for private placements.- In the secondary market, a portfolio long the quintile of stocks with the smallest excess of lucky over unlucky auction closes in the previous month, and short the quintile with the largest, earns a Fama-French three-factor alpha of about $0.48\%$ a month among small stocks. It earns nothing among large stocks, even though large stocks show the digit effect too, and nothing when closes are volume-weighted averages.- Among public non-financial corporate bonds issued on the exchange market, a lucky coupon is associated with an issuance spread about 5.4 basis points lower, controlling for issuer and bond characteristics. There is no such discount in the interbank market or for privately placed bonds, whose buyers are the most sophisticated.The general lesson reaches well beyond superstition: **a behavioral footprint in prices is not by itself evidence of mispricing.** A digit preference can be strong, statistically unambiguous, and present in markets dominated by professionals while costing no one anything, because it only selects among prices that are equally consistent with fundamentals. Mispricing appears only where the same footprint is a symptom of optimism among investors who set the *level* of the price as well as its last digit.### What This Means for Vietnamese Research {#sec-micro-superstition-vietnam}The premise transfers to Vietnam, though not unchanged. Vietnamese numerology overlaps with the Chinese: 4 (*tứ*) is avoided for its closeness to *tử*, death, and 8 (*bát*) is favored for its association with *phát*, prosperity. The Vietnamese ranking differs, however, in ways that matter for test design. Nine is at least as favored as eight, 6 (*lộc*, fortune) is favored, two-digit endings such as 68, 39, and 79 carry meanings of their own, and 7 is avoided by some. The public auctions of vehicle license plates held since 2023, in which plates made of repeated favored digits have sold at very large premia, show that these preferences command real money. A study that imposes the Chinese 8-versus-4 contrast risks missing the main effect, so the first step should be a test of the full digit distribution against uniformity, followed by tests of digits named before the data are examined.The tick grid determines which digit can carry a preference at all, and on HOSE the grid changes with the price level (@tbl-tick-sizes). Prices are displayed in thousands of dong, so 25.35 means 25,350 VND. Below 10,000 VND the tick is 10 VND, and the displayed final digit (tens of dong) can take any value. Between 10,000 and 50,000 VND the tick is 50 VND, so the tens digit can only be 0 or 5 and the only digit free to express a preference is the hundreds. Above 50,000 VND, and on UPCoM at every price level, the tick is 100 VND and the hundreds digit is again the free one. The Vietnamese analogue of @eq-micro-digit-prob must therefore be computed tier by tier, on the last digit the grid leaves unconstrained, in the same spirit in which @chang2026superstition drop commodity contracts whose increments make some digits unreachable. Pooling across tiers mixes a free digit with a constrained one and yields a distribution that is non-uniform by construction.Two mechanical forces specific to Vietnam must also be removed before a digit can be read as anyone's choice.**Limit prices are arithmetic, not choices.** A stock that closes at its ceiling or floor closes at the reference price multiplied by one plus or minus the band, rounded to the tick, so its final digit is fixed by yesterday's price rather than chosen by anyone today. Limit hits are frequent, especially among small stocks (@sec-price-limit-prevalence). Failing to drop them dilutes the effect precisely in the segment where the overoptimism mechanism predicts it should be strongest.**The auction tie-break rule pulls toward yesterday's close.** When several prices maximize executed volume, the auction selects the one closest to the previous closing price, as described under order types and matching rules above. The previous close's final digit is therefore a mechanical attractor for today's auction price, and part of any day-to-day persistence in digits is a rule rather than a preference. Conditioning on the reference price's final digit separates the two.Vietnam also offers a natural counterpart to the placebo that makes the Chinese evidence convincing. HOSE opening and closing prices are set by call auctions (@tbl-trading-sessions), the mechanism under which digit preferences survive aggregation. The UPCoM reference price, by contrast, is the volume-weighted average of the previous day's round-lot continuous-matching prices, rounded to the tick: the averaging mechanism under which the Chinese effect disappears. A digit preference in HOSE auction prices that is absent from UPCoM reference prices is the Vietnamese version of their placebo, provided the comparison is made on the digit that rounding to a 100 VND grid leaves free.The primary markets are where the overoptimism mechanism can be tested most sharply. Auctions of shares in equitized state-owned enterprises collect sealed price bids, and the published results, which report winning prices, give a first look at the prices bidders choose. Privately placed corporate bonds are an even closer match to the strongest Chinese result. Their issuance terms, including coupon rates, are disclosed on the Hanoi Stock Exchange's specialized corporate bond information page. In the 2019–2021 boom a substantial share of these bonds was bought by individuals, often through bank and securities-company channels, and the 2022 tightening of who qualifies as a professional investor eligible to buy them (Decree 65/2022/ND-CP) changed the sophistication of the buyer base almost overnight. The @chang2026superstition framework yields two testable predictions: the share of coupons ending in favored digits should fall after the tightening, and bonds issued before it with favored coupons should have fared worse in the 2022–2023 wave of payment extensions and defaults. Government bond auctions on HNX, whose bidders are banks and insurers, serve as the risk-free placebo, for which the framework predicts no effect.Seven practical rules follow.1. **Use raw, unadjusted prices.** Adjustment for dividends and share issues rescales prices by factors that destroy the final digit. Every digit test must be run on the traded price, which many data products do not deliver by default.2. **Compute digit distributions within tick tiers, on the last digit the grid leaves free.** Never pool prices across the 10,000 and 50,000 VND boundaries.3. **Drop limit-hit closes, and condition on the reference price's final digit.** Both remove digits that a rule set rather than an investor.4. **Test the full distribution before testing named digits.** Report a test of uniformity across all free digits, then test digits chosen in advance, such as 8, 9, and 6 against 4 and 7. With nine digits, several tick tiers, and three venues, the multiple-testing logic of @sec-factor-zoo-multiple-testing applies on a small scale.5. **Let the price-formation mechanism do the identifying.** Compare HOSE auction prices with continuous-session trade prices and with UPCoM reference prices. A pattern common to all three is more likely a data artifact than a preference.6. **Separate presence from pricing.** A digit preference is a fact about how prices are formed. Whether it costs anyone money is a separate question, answered by return or yield tests in which the digit is the treatment, run within groups of differing investor sophistication.7. **Mind the sample size per stock.** A monthly lucky index built from twenty closes, some of them limit hits or days without trades, is noisy. Require a minimum number of eligible auction prices, and compare the realized statistic with its distribution when digits are randomly permuted within each stock.## Price Limits and Their ConsequencesVietnam enforces daily price limits on all listed equities. A stock's price cannot move beyond a fixed percentage of the previous day's closing price within a single trading day. The limit bands are $\pm$ 7% on HOSE, $\pm$ 10% on HNX, and $\pm$ 15% on UPCoM.### Theoretical FrameworkPrice limits were introduced with the stated goal of reducing volatility and preventing panic-driven price dislocations. However, the academic literature presents a more nuanced picture. The "magnet effect" hypothesis [@subrahmanyam1994circuit] predicts that price limits actually accelerate price movement toward the limit as traders rush to execute before the limit is hit. The "delayed price discovery" hypothesis [@Fama1989] argues that limits merely postpone inevitable price adjustments, creating volatility spillover into subsequent days.Formally, let $P_t^*$ denote the equilibrium price on day $t$ and $P_{t-1}^c$ the previous closing price. The observed return is:$$r_t^{obs} = \begin{cases}\bar{L} & \text{if } r_t^* \geq \bar{L} \\r_t^* & \text{if } \underline{L} < r_t^* < \bar{L} \\\underline{L} & \text{if } r_t^* \leq \underline{L}\end{cases}$$ {#eq-price-limit}where $r_t^* = \ln(P_t^* / P_{t-1}^c)$ is the latent (unconstrained) return, $\bar{L}$ is the upper limit, and $\underline{L}$ is the lower limit. The observed return $r_t^{obs}$ is a censored version of the true return. This censoring has several consequences:1. **Truncated moments**: The observed variance $\text{Var}(r_t^{obs}) < \text{Var}(r_t^*)$ because extreme returns are clipped. This biases downward any volatility-based risk measure.2. **Artificial autocorrelation**: When $r_t^{obs} = \bar{L}$ and $r_{t+1}^{obs} > 0$ (continued adjustment the next day), the return series exhibits positive autocorrelation that is purely mechanical, not informational.3. **Volatility spillover**: Define excess volatility on day $t+1$ as $\sigma_{t+1}^2 - E[\sigma_{t+1}^2 | \text{no limit hit on day } t]$. @kim1997price and @chu2019forecasting document significant positive spillover, where days following limit hits exhibit abnormally high volatility.4. **Biased extreme value statistics**: Measures such as Value-at-Risk, Expected Shortfall, and maximum drawdown are mechanically bounded by the limit, understating true tail risk.### Detecting Price Limit HitsWe now implement a diagnostic to detect price limit hits in the daily data.```{python}#| label: detect-limit-hitsimport pandas as pdimport numpy as npimport sqlite3# Load daily price datatidy_finance = sqlite3.connect(database="data/tidy_finance_python.sqlite")# Assume prices_daily contains: symbol, date, close, exchangeprices_daily = pd.read_sql_query(# , exchange sql=""" SELECT symbol, date, close FROM prices_daily """, con=tidy_finance, parse_dates=["date"]).dropna()``````{python}#| eval: false# Define limit bands by exchangelimit_bands = {"HOSE": 0.07, "HNX": 0.10, "UPCoM": 0.15}prices_daily = prices_daily.sort_values(["symbol", "date"])prices_daily["prev_close"] = prices_daily.groupby("symbol")["close"].shift(1)prices_daily["ret"] = prices_daily["close"] / prices_daily["prev_close"] -1prices_daily["limit_band"] = prices_daily["exchange"].map(limit_bands)# A limit hit occurs when the return is within 0.1% of the theoretical limittolerance =0.001prices_daily["upper_hit"] = ( prices_daily["ret"] >= prices_daily["limit_band"] - tolerance)prices_daily["lower_hit"] = ( prices_daily["ret"] <=-prices_daily["limit_band"] + tolerance)prices_daily["limit_hit"] = ( prices_daily["upper_hit"] | prices_daily["lower_hit"])```### Frequency of Limit Hits```{python}#| eval: false#| label: fig-limit-hit-frequency#| fig-cap: "Monthly Frequency of Price Limit Hits by Exchange"prices_daily["year_month"] = prices_daily["date"].dt.to_period("M")limit_hit_monthly = ( prices_daily .groupby(["year_month", "exchange"]) .agg( total_obs=("limit_hit", "count"), limit_hits=("limit_hit", "sum") ) .reset_index())limit_hit_monthly["hit_rate"] = ( limit_hit_monthly["limit_hits"] / limit_hit_monthly["total_obs"])limit_hit_monthly["date"] = limit_hit_monthly["year_month"].dt.to_timestamp()fig, ax = plt.subplots(figsize=(8, 4))for exchange, color inzip( ["HOSE", "HNX", "UPCoM"], ["#2C73D2", "#FF6B6B", "#5DCEAF"]): subset = limit_hit_monthly[limit_hit_monthly["exchange"] == exchange] ax.plot( subset["date"], subset["hit_rate"] *100, label=exchange, color=color, linewidth=1.2 )ax.set_ylabel("Limit Hit Rate (%)")ax.set_xlabel("")ax.legend(frameon=False)ax.spines["top"].set_visible(False)ax.spines["right"].set_visible(False)plt.tight_layout()plt.show()```### Volatility Spillover TestFollowing @kim1997price, we test whether days following a limit hit exhibit abnormally high volatility. Define the dummy variable $D_t = 1$ if a limit hit occurred on day $t$, and estimate:$$\sigma_{t+1}^2 = \alpha + \beta D_t + \gamma \sigma_t^2 + \varepsilon_{t+1}$$ {#eq-vol-spillover}where $\sigma_t^2$ is the squared return. A positive and significant $\beta$ indicates volatility spillover attributable to the price limit.```{python}#| eval: false#| label: volatility-spillover-testimport statsmodels.api as sm# Panel-level volatility spillover testprices_daily["sq_ret"] = prices_daily["ret"] **2prices_daily["sq_ret_lead"] = prices_daily.groupby("symbol")["sq_ret"].shift(-1)prices_daily["limit_hit_int"] = prices_daily["limit_hit"].astype(int)spillover_data = prices_daily.dropna(subset=["sq_ret_lead", "sq_ret"])X = sm.add_constant(spillover_data[["limit_hit_int", "sq_ret"]])y = spillover_data["sq_ret_lead"]model = sm.OLS(y, X).fit(cov_type="cluster", cov_kwds={"groups": spillover_data["symbol"]})spillover_results = pd.DataFrame({"Coefficient": model.params,"Std. Error": model.bse,"t-stat": model.tvalues,"p-value": model.pvalues}).round(6)print(spillover_results)```::: callout-tipA significant positive coefficient on the limit hit dummy confirms that Vietnamese price limits do not eliminate volatility, they merely redistribute it across days. This has direct implications for risk management: daily VaR measures computed from censored returns understate true risk exposure.:::### Return Autocorrelation Induced by Price LimitsPrice limits mechanically induce positive autocorrelation in returns. To quantify this, we compute the first-order autocorrelation coefficient separately for stocks that hit limits frequently versus those that do not.```{python}#| eval: false#| label: tbl-autocorrelation-by-limit#| tbl-cap: "Return Autocorrelation by Price Limit Hit Frequency"# Classify stocks by limit hit frequencystock_limit_freq = ( prices_daily .groupby("symbol") .agg( hit_rate=("limit_hit", "mean"), n_obs=("ret", "count") ) .query("n_obs >= 250") # At least 1 year of data)stock_limit_freq["limit_group"] = pd.qcut( stock_limit_freq["hit_rate"], q=3, labels=["Low", "Medium", "High"])# Compute autocorrelation by groupdef compute_autocorr(group_symbols): subset = prices_daily[prices_daily["symbol"].isin(group_symbols)].copy() subset["ret_lag"] = subset.groupby("symbol")["ret"].shift(1)return subset[["ret", "ret_lag"]].dropna().corr().iloc[0, 1]autocorr_results = []for group in ["Low", "Medium", "High"]: symbols = stock_limit_freq[stock_limit_freq["limit_group"] == group].index ac = compute_autocorr(symbols) n_stocks =len(symbols) avg_hit_rate = stock_limit_freq.loc[symbols, "hit_rate"].mean() autocorr_results.append({"Group": group,"N Stocks": n_stocks,"Avg Limit Hit Rate (%)": round(avg_hit_rate *100, 2),"AR(1)": round(ac, 4) })pd.DataFrame(autocorr_results).style.hide(axis="index")```The expected pattern is a monotonically increasing autocorrelation from the Low to High limit-hit group, confirming that the observed serial dependence in returns is at least partly an artifact of price censoring rather than genuine return predictability.## Liquidity, Thin Trading, and Zero ReturnsLiquidity (i.e., the ability to trade quickly at low cost without moving the price) is a first-order concern in Vietnamese equities. A substantial fraction of listed firms, particularly on HNX and UPCoM, experience chronic illiquidity characterized by infrequent trading, wide bid-ask spreads, and frequent zero-return days.### Measuring LiquidityThe academic literature has developed numerous liquidity measures, each capturing a different dimension of market quality. @#tbl-liquidity-measures summarizes the measures most applicable to Vietnamese data, given typical data availability.| Measure | Formula | Interpretation | Data Required ||------------------|------------------|------------------|------------------|| Turnover ratio | $\text{TO}_{i,t} = \frac{\text{Volume}_{i,t}}{\text{Shares Outstanding}_{i}}$ | Trading intensity relative to float | Volume, shares outstanding || Amihud illiquidity | $\text{ILLIQ}_{i,t} = \frac{1}{D} \sum_{d=1}^{D} \frac{|r_{i,d}|}{V_{i,d}}$ | Price impact per unit of volume | Daily returns, daily volume || Zero-return proportion | $\text{ZR}_{i,t} = \frac{\#\{d : r_{i,d} = 0\}}{D}$ | Frequency of non-trading or stale pricing | Daily returns || Roll spread | $\hat{S}_i = 2\sqrt{-\text{Cov}(r_{i,d}, r_{i,d-1})}$ | Effective bid-ask spread estimate | Daily returns || Bid-ask spread | $\text{BA}_{i,d} = \frac{\text{Ask}_{i,d} - \text{Bid}_{i,d}}{(\text{Ask}_{i,d} + \text{Bid}_{i,d})/2}$ | Direct transaction cost | Quote data |: Liquidity Measures for Vietnamese Equities {#tbl-liquidity-measures}The Amihud illiquidity ratio [@amihud2002illiquidity] is particularly useful because it requires only daily return and volume data. It captures the price impact of trading (i.e., the return per unit of currency volume) and has been shown to correlate well with more sophisticated microstructure-based measures such as the effective spread [see @goyenko2009liquidity and @goyenko2009stock for a comprehensive comparison].### Computing Liquidity Diagnostics```{python}#| label: compute-liquidity#| eval: false# Compute standard liquidity measures at the stock-month levelprices_daily["abs_ret"] = prices_daily["ret"].abs()prices_daily["zero_return"] = (prices_daily["ret"] ==0).astype(int)prices_daily["year_month"] = prices_daily["date"].dt.to_period("M")# Assume volume is in shares and value is in VND# Amihud: average |ret| / value (in billions VND)prices_daily["amihud_daily"] = np.where( prices_daily["value"] >0, prices_daily["abs_ret"] / (prices_daily["value"] /1e9), np.nan)liquidity_monthly = ( prices_daily .groupby(["symbol", "year_month"]) .agg( zero_return_share=("zero_return", "mean"), avg_turnover=("turnover", "mean"), amihud=("amihud_daily", "mean"), trading_days=("ret", "count"), avg_daily_value=("value", "mean") ) .reset_index())# Flag severely illiquid stock-monthsliquidity_monthly["illiquid_flag"] = ( (liquidity_monthly["zero_return_share"] >0.5) | (liquidity_monthly["trading_days"] <10) | (liquidity_monthly["avg_daily_value"] <1e8) # < 100M VND/day)```### Cross-Sectional Distribution of Liquidity```{python}#| label: tbl-liquidity-distribution#| eval: false#| tbl-cap: "Cross-Sectional Distribution of Liquidity Measures (Latest Full Year)"latest_year = liquidity_monthly["year_month"].dt.year.max()annual_liq = ( liquidity_monthly[liquidity_monthly["year_month"].dt.year == latest_year] .groupby("symbol") .agg( zero_return_share=("zero_return_share", "mean"), avg_turnover=("avg_turnover", "mean"), amihud=("amihud", "mean"), avg_daily_value_m=("avg_daily_value", lambda x: x.mean() /1e6) ))summary_stats = annual_liq.describe(percentiles=[0.10, 0.25, 0.50, 0.75, 0.90]).Tsummary_stats = summary_stats[ ["mean", "std", "10%", "25%", "50%", "75%", "90%"]].round(4)summary_stats.columns = ["Mean", "Std", "P10", "P25", "Median", "P75", "P90"]summary_stats.index = ["Zero-Return Share","Avg Daily Turnover","Amihud Illiquidity","Avg Daily Value (M VND)"]summary_stats```### Liquidity Distribution Across Exchanges```{python}#| label: fig-liquidity-by-exchange#| eval: false#| fig-cap: "Distribution of Zero-Return Share and Amihud Illiquidity by Exchange"# Merge exchange infostock_exchange = ( prices_daily[["symbol", "exchange"]] .drop_duplicates("symbol"))annual_liq_exch = annual_liq.merge( stock_exchange, left_index=True, right_on="symbol")fig, axes = plt.subplots(1, 2, figsize=(10, 4))# Zero-return sharefor exchange, color inzip( ["HOSE", "HNX", "UPCoM"], ["#2C73D2", "#FF6B6B", "#5DCEAF"]): subset = annual_liq_exch[annual_liq_exch["exchange"] == exchange] axes[0].hist( subset["zero_return_share"], bins=30, alpha=0.6, color=color, label=exchange, density=True )axes[0].set_xlabel("Zero-Return Share")axes[0].set_ylabel("Density")axes[0].legend(frameon=False)axes[0].spines["top"].set_visible(False)axes[0].spines["right"].set_visible(False)# Amihud (log scale)for exchange, color inzip( ["HOSE", "HNX", "UPCoM"], ["#2C73D2", "#FF6B6B", "#5DCEAF"]): subset = annual_liq_exch[annual_liq_exch["exchange"] == exchange] amihud_log = np.log(subset["amihud"].clip(lower=1e-10)) axes[1].hist( amihud_log, bins=30, alpha=0.6, color=color, label=exchange, density=True )axes[1].set_xlabel("Log Amihud Illiquidity")axes[1].set_ylabel("Density")axes[1].legend(frameon=False)axes[1].spines["top"].set_visible(False)axes[1].spines["right"].set_visible(False)plt.tight_layout()plt.show()```The distributions typically reveal a bimodal pattern: HOSE stocks cluster at low illiquidity values, while HNX and especially UPCoM stocks exhibit a long right tail of extreme illiquidity. This heterogeneity implies that a single liquidity filter or treatment is insufficient for the entire cross-section.### Time Variation in Aggregate LiquidityMarket-wide liquidity is not constant. It deteriorates during crises, policy uncertainty, and periods of capital outflow, and improves during bull markets and periods of foreign inflow. The time variation in aggregate liquidity is itself a risk factor [@pastor2003liquidity].```{python}#| label: fig-aggregate-liquidity#| eval: false#| fig-cap: "Time Series of Aggregate Liquidity (Market-Wide Amihud Illiquidity)"agg_liquidity = ( liquidity_monthly .groupby("year_month") .agg( median_amihud=("amihud", "median"), median_zero_ret=("zero_return_share", "median"), total_value=("avg_daily_value", "sum") ) .reset_index())agg_liquidity["date"] = agg_liquidity["year_month"].dt.to_timestamp()fig, ax1 = plt.subplots(figsize=(8, 4))ax1.plot( agg_liquidity["date"], np.log(agg_liquidity["median_amihud"].clip(lower=1e-10)), color="#2C73D2", linewidth=1.2)ax1.set_ylabel("Log Median Amihud", color="#2C73D2")ax1.tick_params(axis="y", labelcolor="#2C73D2")ax2 = ax1.twinx()ax2.fill_between( agg_liquidity["date"], agg_liquidity["median_zero_ret"] *100, alpha=0.3, color="#FF6B6B")ax2.set_ylabel("Median Zero-Return Share (%)", color="#FF6B6B")ax2.tick_params(axis="y", labelcolor="#FF6B6B")ax1.spines["top"].set_visible(False)plt.tight_layout()plt.show()```### Realized Illiquidity from Intraday Data {#sec-micro-realized-illiq}Every measure in @tbl-liquidity-measures is computed from daily data, which is what makes them usable across the whole Vietnamese cross-section. The cost of that convenience is precision, and the Amihud ratio pays the largest share of it. Its numerator, $|r_{i,d}|$, is a single draw standing in for an entire day of price movement.@lacava2026realized propose replacing that single absolute return with a high-frequency estimate of the same day's price variation, giving the **realized Amihud**$$\text{RILLIQ}_{i,d} = \sqrt{\frac{2}{\pi}}\,\frac{\sqrt{\text{RV}_{i,d}}}{\text{DVOL}_{i,d}},\qquad\text{RV}_{i,d} = \sum_{j=1}^{M} r_{i,d,j}^2$$ {#eq-micro-realized-amihud}where $r_{i,d,j}$ are intraday returns over $M$ intervals within day $d$ and the constant $\sqrt{2/\pi}$ puts the measure on the same scale as the daily ratio, so the two are numerically interchangeable. The estimator's econometric foundations — the semimartingale setup, the assumptions, the bipower-variation variant that survives jumps, and the derivation of the precision gain — are developed in the liquidity chapter (@sec-liquidity-realized). This section addresses the question that belongs here instead: **what it takes to compute @eq-micro-realized-amihud correctly on HOSE, and whether the precision gain actually materializes in a market this thin.**The short answer is that the gain is real but is governed by how often a stock trades, not by how finely the day is partitioned. For a VN30 constituent the improvement is close to the theoretical sevenfold; for a stock trading five times a day it is under twofold and comes with a substantial downward bias. Because that distinction is invisible in the output of any standard realized-variance routine, it has to be enforced by screening.#### Building a Session-Aware Intraday GridVietnam's session structure (@tbl-trading-sessions) rules out the naive approach of resampling the day onto a uniform time grid. Three features of the trading day must be respected.**The lunch break is not a return interval.** The 11:30–13:00 gap separates two continuous sessions. Differencing the 13:00 price against the 11:30 price manufactures a "five-minute return" spanning ninety minutes of closed market, which enters $\text{RV}$ as a large squared term and inflates the estimate. The correct treatment computes $\text{RV}$ separately within the morning session (09:15–11:30, 135 minutes) and the afternoon session (13:00–14:30, 90 minutes) and sums the two. At five-minute sampling this yields $27 + 18 = 45$ intervals, the $M = 45$ used throughout.**Auction prices are not continuous-market prices.** The ATO price (09:00–09:15) and the ATC price (14:30–14:45) are single clearing prices from batch auctions, determined by a different mechanism than the continuous limit order book. Including them as grid points mixes two price-formation processes and imports whatever auction-specific distortion is present — which, as noted in the discussion of @tbl-trading-sessions, can be material for less liquid stocks where a single order moves the close.**Put-through volume must be excluded from the denominator.** The 14:45–15:00 negotiated window produces trades at prices agreed bilaterally, outside the order book. If those blocks enter $\text{DVOL}$ while the numerator is measured over continuous trading only, the ratio's numerator and denominator describe different markets, and a single large block can make a stock appear an order of magnitude more liquid for that day.The following constructs the measures under these conventions. It requires intraday trade data, which is not part of the daily pipeline used elsewhere in this chapter, so it is not executed here.```{python}#| label: realized-illiquidity-hose#| eval: false#| code-summary: "Session-aware realized measures for HOSE intraday data"import pandas as pdimport numpy as np# HOSE continuous sessions only: auctions and put-through are excluded.HOSE_SESSIONS = [("09:15", "11:30"), ("13:00", "14:30")]SAMPLING_MINUTES =5def session_grid_returns(day_ticks, freq_min=SAMPLING_MINUTES):""" Log returns on a `freq_min` grid, computed WITHIN each continuous session. `day_ticks` holds one trading day for one symbol with columns [timestamp, price]. Returns a list of per-session return arrays plus the number of grid intervals in which the price actually changed. """ out, n_active, n_grid = [], 0, 0 day = day_ticks["timestamp"].dt.normalize().iloc[0]for start, end in HOSE_SESSIONS: lo = day + pd.Timedelta(start +":00") hi = day + pd.Timedelta(end +":00") sess = day_ticks[(day_ticks["timestamp"] >= lo) & (day_ticks["timestamp"] <= hi)]iflen(sess) <2:continue# Last traded price at each grid point; ffill makes staleness explicit. grid = (sess.set_index("timestamp")["price"] .resample(f"{freq_min}min", origin=lo, label="right", closed="right") .last() .ffill() .dropna())iflen(grid) <2:continue r = np.diff(np.log(grid.to_numpy())) out.append(r) n_grid +=len(r) n_active +=int(np.sum(r !=0)) # intervals carrying real tradingreturn out, n_active, n_griddef realized_measures(day_ticks, dvol_continuous):""" Realized and bipower Amihud for one symbol-day. `dvol_continuous` is VND volume from the continuous sessions ONLY, with put-through blocks removed. """ sessions, n_active, n_grid = session_grid_returns(day_ticks)ifnot sessions or dvol_continuous <=0:returnNone# Sum WITHIN sessions, never across the lunch break. rv =float(sum(np.sum(r **2) for r in sessions)) bv =float(sum((np.pi /2) * np.sum(np.abs(r[1:]) * np.abs(r[:-1]))for r in sessions iflen(r) >1)) k = np.sqrt(2.0/ np.pi)return {"rv": rv,"bv": bv,"n_active": n_active,"n_grid": n_grid,"active_share": n_active / n_grid if n_grid else np.nan,"rilliq": k * np.sqrt(rv) / dvol_continuous,"rilliq_bv": k * np.sqrt(max(bv, 0.0)) / dvol_continuous, }def realized_illiquidity_panel(ticks, dvol_daily, min_active=20):""" Build a symbol-day panel, flagging days too thin for the estimator. `min_active` is the screen developed below: below roughly 20 traded intervals of 45 the precision advantage largely disappears. """ recs = []for (sym, day), grp in ticks.groupby(["symbol", ticks["timestamp"].dt.date]): dv = dvol_daily.get((sym, day))if dv isNone:continue m = realized_measures(grp.sort_values("timestamp"), dv)if m isNone:continue m.update(symbol=sym, date=pd.Timestamp(day), reliable=m["n_active"] >= min_active) recs.append(m) panel = pd.DataFrame(recs)iflen(panel): share =100* panel["reliable"].mean()print(f"{len(panel):,} symbol-days; {share:.1f}% clear the "f"min_active={min_active} screen")return panel```#### Does the Precision Gain Survive Thin Trading?The theoretical sevenfold improvement assumes $M = 45$ *informative* returns. A stock that trades five times a session does not have that. Its five-minute grid is mostly forward-filled stale prices, and a forward-filled interval contributes a mechanical zero to $\text{RV}$ — an interval in which the estimator reads no volatility, not because the value did not move but because nobody traded.The simulation below quantifies what this costs. An efficient price diffuses on a one-minute grid over HOSE's 225 continuous minutes; trades arrive as a Poisson process whose intensity we vary; the observed five-minute price is the last traded price at or before each grid point. Because trading volume is held **identical across all stocks by construction**, every difference in the measured ratio is attributable to the numerator alone.```{python}#| label: thin-trading-realized#| code-summary: "Does the realized Amihud's precision gain survive thin trading?"import numpy as npimport pandas as pdfrom scipy import statsrng_thin = np.random.default_rng(20260818)MIN_PER_DAY =225# HOSE continuous minutesGRID_MIN =5M_GRID = MIN_PER_DAY // GRID_MIN # 45 five-minute intervalsdef simulate_thin(n_days, trades_per_day):"""Efficient diffusion sampled through a Poisson trade process.""" m1 = MIN_PER_DAY IV = rng_thin.gamma(4.0, (0.025**2) /4.0, size=n_days) steps = rng_thin.normal(0, 1, size=(n_days, m1)) * np.sqrt(IV / m1)[:, None] eff = np.cumsum(steps, axis=1) traded = rng_thin.random((n_days, m1)) <min(trades_per_day / m1, 1.0) traded[:, 0] =True# opening trade# Forward fill: observed price is the last TRADED price. idx = np.maximum.accumulate( np.where(traded, np.arange(m1)[None, :], 0), axis=1) obs = np.take_along_axis(eff, idx, axis=1) grid = np.arange(GRID_MIN -1, m1, GRID_MIN) r = np.diff(obs[:, grid], axis=1, prepend=obs[:, [0]])returndict(IV=IV, RV=np.sum(r **2, axis=1), n_active=np.sum(r !=0, axis=1), R_day=obs[:, -1] - obs[:, 0])k_thin = np.sqrt(2.0/ np.pi)DVOL_FIXED =5.0# billions VND, IDENTICAL for every stockrows_thin = []for lam in [1000, 500, 200, 100, 50, 20, 10, 5]: s = simulate_thin(20_000, lam) truth = k_thin * np.sqrt(s["IV"]) / DVOL_FIXED realized = k_thin * np.sqrt(s["RV"]) / DVOL_FIXED classic = np.abs(s["R_day"]) / DVOL_FIXEDdef rel_rmse(e):return np.sqrt(((e - truth) **2).mean()) / truth.mean() m_eff = s["n_active"].mean() rows_thin.append({"trades/day": lam,"active of 45": round(m_eff, 1),"bias % (realized)": round(100* (realized.mean() / truth.mean() -1), 1),"RMSE classic": round(rel_rmse(classic), 3),"RMSE realized": round(rel_rmse(realized), 3),"gain": round(rel_rmse(classic) / rel_rmse(realized), 2),"predicted gain": round(np.sqrt(2* m_eff * (np.pi /2-1)), 2),"rank rho realized": round(stats.spearmanr(realized, truth).statistic, 3),"rank rho classic": round(stats.spearmanr(classic, truth).statistic, 3), })print(pd.DataFrame(rows_thin).to_string(index=False))```The table supports four conclusions.**The precision gain is governed by trades, not by grid points.** The realized measure beats the daily one by a factor of about 7.2 when trading is continuous, and the observed factor tracks $\sqrt{2 M_{\text{eff}}(\pi/2 - 1)}$ almost exactly once $M_{\text{eff}}$ is defined as the number of intervals in which the price actually changed rather than the 45 intervals on the grid. At 20 trades per day, only about 17 intervals are active and the realized gain falls to roughly 3.4; at five trades per day it is about 1.7. Refining the grid does not help, because the constraint is the arrival of trades, not the resolution of the clock.**Staleness biases the measure downward, and the bias is small until trading gets genuinely thin.** It stays under 2% down to 50 trades per day, reaches about $-5\%$ at 20, and about $-19\%$ at 5. The mechanism is worth understanding precisely, because the intuitive story is wrong: coarsening the sampling of a martingale does *not* bias realized variance, since $\mathbb{E}[\text{RV}]$ equals integrated variance for any partition. What staleness actually removes is the price movement occurring before the first trade and after the last one — the ends of the day, not the middle. That is why the bias is modest for moderately traded stocks and only becomes severe for stocks whose first and last trades are far from the session boundaries. It is nonetheless a bias in the dangerous direction: it makes the least liquid stocks look *more* liquid, which is the opposite of the error a researcher would expect and would not be caught by an outlier screen.**The daily Amihud ratio carries almost no cross-sectional information in its numerator.** With trading volume held fixed across stocks, the rank correlation between the classic ratio and true illiquidity is only about 0.26, essentially flat across every trading intensity. The realized version achieves about 0.92 in the liquid case. This is a direct demonstration of a point discussed in @sec-liquidity-amihud-original: sorting on the Amihud ratio in real data works largely because the *denominator* varies enormously across stocks and is measured without error. The numerator, taken alone, orders stocks barely better than noise. It also indicates what the realized estimator is for — it is an improvement to the component of the measure that currently contributes least.**There is a usable screening threshold.** The gain is above 5$\times$ while at least roughly 30 intervals are active, and falls below 2.5$\times$ once fewer than 10 are. Requiring `n_active >= 20` of 45, as in the panel constructor above, sits between those points: it keeps the realized measure comfortably better than 3$\times$ the daily one and holds the staleness bias to a few percent, while discarding the region where the estimator degrades fastest. Stocks failing the screen should fall back to the daily Amihud ratio, and the fraction falling back should be reported, since it will be strongly correlated with size and will therefore interact with any size-sorted analysis.#### Relation to Non-Synchronous TradingThe mechanism here is the same one that produces the beta bias treated in the discussion of the Dimson and Scholes–Williams estimators later in this chapter: infrequent trading means observed prices are stale, and stale prices understate the covariation of the underlying efficient prices. The difference is which moment is affected. Non-synchronous trading attenuates the *covariance* between a stock and the market, biasing betas downward. Staleness in @eq-micro-realized-amihud attenuates the stock's own *variance*, biasing the illiquidity estimate downward. Both errors are increasing in thinness, and both therefore mislabel the same stocks — the smallest, least traded names get simultaneously understated betas and understated illiquidity, two errors that push in the same direction in any cross-sectional test that includes both.#### Practical Notes for Vietnamese Data1. **Data availability is the binding constraint.** Intraday trade-and-quote data for HOSE is not part of the standard daily pipeline used in this book and must be sourced separately. The realized measures should be treated as a refinement available for the liquid end of the market — approximately the VN30 and larger mid-caps — rather than a replacement for the daily ratio across the full panel.2. **Screen on traded intervals, never on grid intervals.** A resampling routine will happily return 45 prices for a stock that traded twice, because forward filling is silent. Count price changes, not rows.3. **Use the bipower variant on price-limit days.** As shown in @sec-liquidity-realized, an information jump inflates $\text{RV}$ but leaves bipower variation nearly unbiased. Given the frequency of limit hits documented earlier in this chapter, this is the default worth preferring on Vietnamese data.4. **Do not sample below five minutes.** The tick-size schedule in @tbl-tick-sizes makes the noise-to-signal ratio in HOSE prices worse than in the US markets where the five-minute convention was established, so the optimal interval is if anything longer. Sampling finer amplifies bid-ask bounce faster than it adds information; @sec-liquidity-realized quantifies the resulting bias.5. **Report the fallback rate alongside any result.** Because the screen removes stocks non-randomly, a cross-sectional result computed on the surviving sample is conditioned on liquidity, which is exactly the variable under study.::: callout-important## Practical RecommendationBefore any asset pricing analysis, apply the following liquidity filter: exclude stock-months where the zero-return share exceeds 50%, where fewer than 15 trading days are observed, or where average daily trading value falls below a threshold (e.g., 100 million VND). Document the filter explicitly, and report sensitivity of results to alternative thresholds.:::## Bid-Ask Spread EstimationIn the absence of comprehensive quote data, the effective bid-ask spread can be estimated from transaction data using the method of @roll1984simple. The Roll estimator exploits the fact that if the bid-ask bounce is the sole source of negative serial covariance in returns, then:$$\hat{S}_{\text{Roll}} = 2\sqrt{-\text{Cov}(\Delta p_t, \Delta p_{t-1})}$$ {#eq-roll}where $\Delta p_t = p_t - p_{t-1}$ is the price change. When the autocovariance is positive (which occurs when information-driven serial correlation dominates the bid-ask bounce), the Roll estimator is undefined. @hasbrouck2009trading proposes a Bayesian variant that handles this case by imposing a prior on the spread.```{python}#| label: compute-roll-spread#| eval: false# Compute Roll spread estimate at the stock-month levelprices_daily["dprice"] = prices_daily.groupby("symbol")["close"].diff()prices_daily["dprice_lag"] = prices_daily.groupby("symbol")["dprice"].shift(1)roll_cov = ( prices_daily .groupby(["symbol", "year_month"]) .apply(lambda g: g[["dprice", "dprice_lag"]].dropna().cov().iloc[0, 1], include_groups=False ) .reset_index(name="autocovariance"))# Roll spread is defined only when autocovariance is negativeroll_cov["roll_spread"] = np.where( roll_cov["autocovariance"] <0,2* np.sqrt(-roll_cov["autocovariance"]), np.nan)# As a percentage of priceroll_cov = roll_cov.merge( prices_daily.groupby(["symbol", "year_month"])["close"].mean() .reset_index(name="avg_price"), on=["symbol", "year_month"])roll_cov["roll_spread_pct"] = roll_cov["roll_spread"] / roll_cov["avg_price"] *100``````{python}#| label: tbl-roll-spread-summary#| eval: false#| tbl-cap: "Distribution of Roll Spread Estimates (% of Price)"roll_summary = ( roll_cov .dropna(subset=["roll_spread_pct"]) .groupby("year_month")["roll_spread_pct"] .describe(percentiles=[0.25, 0.50, 0.75]) .reset_index())# Show latest year summarylatest_year_roll = roll_cov[ roll_cov["year_month"].dt.year == roll_cov["year_month"].dt.year.max()]print( latest_year_roll["roll_spread_pct"] .dropna() .describe(percentiles=[0.10, 0.25, 0.50, 0.75, 0.90]) .round(3))```## Non-Synchronous Trading BiasWhen stocks do not trade at the same frequency or at the same times, observed returns are misaligned. This non-synchronous trading bias, first formalized by @scholes1977estimating and @lo1990econometric, is one of the most consequential microstructure effects for asset pricing in thin markets.### The ProblemSuppose the true (unobserved) return process for stock $i$ follows a single-factor model:$$r_{i,t}^* = \alpha_i + \beta_i r_{m,t}^* + \varepsilon_{i,t}$$ {#eq-true-factor}where $r_{m,t}^*$ is the true market return and $\beta_i$ is the true beta. If stock $i$ last traded $k$ days before the end of day $t$, the observed return incorporates information only up to day $t - k$. @scholes1977estimating show that the OLS estimate of beta from regressing observed returns on observed market returns is:$$\hat{\beta}_i^{OLS} = \beta_i \cdot \pi_i$$ {#eq-beta-bias}where $\pi_i$ is the probability that stock $i$ trades on any given day. For a stock that trades on only 50% of days, the OLS beta is biased downward by 50%. This bias is severe in Vietnam, where many small-cap stocks trade on fewer than half of all trading days.### Quantifying the Bias```{python}#| label: fig-trading-frequency#| eval: false#| fig-cap: "Distribution of Daily Trading Frequency Across Listed Stocks"# Compute trading frequency: proportion of market days with nonzero volumemarket_days = prices_daily.groupby("year_month")["date"].nunique()trading_freq = ( prices_daily[prices_daily["value"] >0] .groupby(["symbol", "year_month"])["date"] .nunique() .reset_index(name="days_traded"))trading_freq = trading_freq.merge( market_days.reset_index().rename(columns={"date": "market_days"}), on="year_month")trading_freq["trade_prob"] = trading_freq["days_traded"] / trading_freq["market_days"]# Annual averageannual_trade_freq = ( trading_freq .groupby("symbol")["trade_prob"] .mean() .reset_index(name="avg_trade_prob"))fig, ax = plt.subplots(figsize=(7, 4))ax.hist( annual_trade_freq["avg_trade_prob"], bins=50, color="#2C73D2", edgecolor="white", alpha=0.8)ax.axvline( annual_trade_freq["avg_trade_prob"].median(), color="#FF6B6B", linestyle="--", linewidth=1.5, label=f"Median = {annual_trade_freq['avg_trade_prob'].median():.2f}")ax.set_xlabel("Average Trading Probability (Fraction of Market Days)")ax.set_ylabel("Number of Stocks")ax.legend(frameon=False)ax.spines["top"].set_visible(False)ax.spines["right"].set_visible(False)plt.tight_layout()plt.show()```### The Dimson Beta Correction@dimson1979risk proposes a simple correction: include lagged and leading market returns in the beta regression:$$r_{i,t} = \alpha_i + \sum_{k=-K}^{K} \beta_{i,k} \, r_{m,t-k} + \varepsilon_{i,t}$$ {#eq-dimson}The Dimson-corrected beta is $\hat{\beta}_i^{Dimson} = \sum_{k=-K}^{K} \hat{\beta}_{i,k}$. Typically $K = 1$ or $K = 2$ is sufficient. The summed coefficients capture the full response of the stock's observed return to market information, regardless of when the stock actually trades.```{python}#| label: dimson-beta-estimation#| eval: false# Estimate Dimson betas with K=1 lag and lead# Merge market returnmarket_ret = ( prices_daily .groupby("date") .apply(lambda g: np.average(g["ret"].dropna(), weights=g["mktcap"].loc[g["ret"].dropna().index])if g["ret"].dropna().shape[0] >0else np.nan, include_groups=False ) .reset_index(name="rm"))prices_daily = prices_daily.merge(market_ret, on="date", how="left")prices_daily["rm_lag1"] = prices_daily.groupby("symbol")["rm"].shift(1)prices_daily["rm_lead1"] = prices_daily.groupby("symbol")["rm"].shift(-1)def estimate_dimson_beta(group):"""Estimate OLS and Dimson(K=1) betas for a single stock.""" g = group.dropna(subset=["ret", "rm", "rm_lag1", "rm_lead1"])iflen(g) <60:return pd.Series({"beta_ols": np.nan, "beta_dimson": np.nan, "n_obs": len(g)})# OLS beta X_ols = sm.add_constant(g["rm"]) ols_model = sm.OLS(g["ret"], X_ols).fit() beta_ols = ols_model.params["rm"]# Dimson beta X_dim = sm.add_constant(g[["rm_lag1", "rm", "rm_lead1"]]) dim_model = sm.OLS(g["ret"], X_dim).fit() beta_dimson = dim_model.params[["rm_lag1", "rm", "rm_lead1"]].sum()return pd.Series({"beta_ols": beta_ols,"beta_dimson": beta_dimson,"n_obs": len(g) })beta_comparison = ( prices_daily .groupby("symbol") .apply(estimate_dimson_beta, include_groups=False) .reset_index())``````{python}#| label: fig-beta-comparison#| eval: false#| fig-cap: "OLS Beta vs. Dimson-Corrected Beta"beta_valid = beta_comparison.dropna()fig, ax = plt.subplots(figsize=(6, 6))ax.scatter( beta_valid["beta_ols"], beta_valid["beta_dimson"], alpha=0.3, s=10, color="#2C73D2")lims = [min(ax.get_xlim()[0], ax.get_ylim()[0]),max(ax.get_xlim()[1], ax.get_ylim()[1])]ax.plot(lims, lims, "--", color="gray", linewidth=1)ax.set_xlabel("OLS Beta")ax.set_ylabel("Dimson Beta (K=1)")ax.set_aspect("equal")ax.spines["top"].set_visible(False)ax.spines["right"].set_visible(False)plt.tight_layout()plt.show()```The scatter plot should reveal a systematic pattern: Dimson betas exceed OLS betas for most stocks, with the discrepancy largest for thinly traded stocks. Points above the 45-degree line indicate stocks whose OLS betas are biased downward by non-synchronous trading.```{python}#| label: tbl-beta-bias-by-liquidity#| eval: false#| tbl-cap: "Beta Bias by Trading Frequency Tercile"beta_with_freq = beta_valid.merge(annual_trade_freq, on="symbol")beta_with_freq["freq_tercile"] = pd.qcut( beta_with_freq["avg_trade_prob"], q=3, labels=["Low (Thin)", "Medium", "High (Liquid)"])beta_bias_summary = ( beta_with_freq .groupby("freq_tercile") .agg( n_stocks=("symbol", "count"), avg_trade_prob=("avg_trade_prob", "mean"), mean_beta_ols=("beta_ols", "mean"), mean_beta_dimson=("beta_dimson", "mean"), median_beta_ols=("beta_ols", "median"), median_beta_dimson=("beta_dimson", "median") ) .round(3))beta_bias_summary["bias_pct"] = ( (beta_bias_summary["mean_beta_dimson"] - beta_bias_summary["mean_beta_ols"])/ beta_bias_summary["mean_beta_dimson"] *100).round(1)beta_bias_summary```::: callout-warningFor the thinnest-traded tercile, OLS beta underestimates true systematic risk by 20-40% on average. Using uncorrected betas for cost of equity estimation or factor model tests will produce systematically incorrect results for these stocks.:::### The Scholes-Williams EstimatorAn alternative correction, proposed by @scholes1977estimating, estimates beta as:$$\hat{\beta}_i^{SW} = \frac{\hat{\beta}_{i,-1} + \hat{\beta}_{i,0} + \hat{\beta}_{i,+1}}{1 + 2\hat{\rho}_m}$$ {#eq-sw}where $\hat{\beta}_{i,k}$ is the slope from regressing $r_{i,t}$ on $r_{m,t-k}$ alone, and $\hat{\rho}_m$ is the first-order autocorrelation of the market return. The Scholes-Williams estimator is consistent under the assumption that non-trading is the sole source of serial cross-correlation, while the Dimson estimator is more robust to additional sources of lead-lag structure.```{python}#| label: scholes-williams-beta#| eval: falsedef estimate_sw_beta(group):"""Estimate Scholes-Williams beta.""" g = group.dropna(subset=["ret", "rm", "rm_lag1", "rm_lead1"])iflen(g) <60:return np.nan# Separate regressions beta_lag = sm.OLS(g["ret"], sm.add_constant(g["rm_lag1"])).fit().params.iloc[1] beta_0 = sm.OLS(g["ret"], sm.add_constant(g["rm"])).fit().params.iloc[1] beta_lead = sm.OLS(g["ret"], sm.add_constant(g["rm_lead1"])).fit().params.iloc[1]# Market autocorrelation rho_m = g["rm"].autocorr(lag=1) beta_sw = (beta_lag + beta_0 + beta_lead) / (1+2* rho_m)return beta_swbeta_comparison["beta_sw"] = ( prices_daily .groupby("symbol") .apply(estimate_sw_beta, include_groups=False) .values)```## Implications for Portfolio ConstructionThe microstructure frictions documented above have direct consequences for portfolio construction, particularly for strategies that involve rebalancing across the full cross-section of listed firms.### Equal-Weighted vs. Value-Weighted ReturnsEqual-weighted portfolio returns give the same weight to each stock, including illiquid small-cap stocks that may contribute stale or noisy prices. Value-weighted returns tilt toward large, liquid stocks and are less susceptible to microstructure contamination.```{python}#| label: fig-ew-vs-vw#| eval: false#| fig-cap: "Cumulative Returns: Equal-Weighted vs. Value-Weighted Market Portfolio"monthly_returns = ( prices_daily .groupby(["symbol", "year_month"]) .agg( monthly_ret=("ret", lambda x: (1+ x).prod() -1), last_mktcap=("mktcap", "last") ) .reset_index())monthly_returns["date"] = monthly_returns["year_month"].dt.to_timestamp()# Equal-weightedew_ret = monthly_returns.groupby("date")["monthly_ret"].mean().reset_index(name="ew")# Value-weighteddef vw_return(group): w = group["last_mktcap"] / group["last_mktcap"].sum()return (w * group["monthly_ret"]).sum()vw_ret = ( monthly_returns.groupby("date") .apply(vw_return, include_groups=False) .reset_index(name="vw"))port_comp = ew_ret.merge(vw_ret, on="date")fig, ax = plt.subplots(figsize=(8, 4))for col, label, color in [ ("ew", "Equal-Weighted", "#FF6B6B"), ("vw", "Value-Weighted", "#2C73D2")]: cum_ret = (1+ port_comp[col]).cumprod() ax.plot(port_comp["date"], cum_ret, label=label, color=color, linewidth=1.2)ax.set_ylabel("Cumulative Return (Growth of 1 VND)")ax.set_xlabel("")ax.legend(frameon=False)ax.spines["top"].set_visible(False)ax.spines["right"].set_visible(False)plt.tight_layout()plt.show()```A persistent divergence between equal-weighted and value-weighted cumulative returns is a hallmark of microstructure effects: the equal-weighted portfolio overstates attainable returns because it implicitly assumes costless trading in illiquid stocks.### Recommended Liquidity FiltersBased on the diagnostics developed in this chapter, we recommend the following pre-analysis filters:```{python}#| label: tbl-recommended-filters#| include: false#| tbl-cap: "Recommended Liquidity Filters for Asset Pricing Research"filters = pd.DataFrame({"Filter": ["Minimum trading days per month","Maximum zero-return share per month","Minimum average daily value (VND)","Minimum listing age","Exclude UPCoM stocks" ],"Threshold": ["≥ 15 days","≤ 50%","≥ 100 million","≥ 6 months","Optional but recommended" ],"Rationale": ["Ensures sufficient price observations for return computation","Removes stocks with predominantly stale prices","Ensures rebalancing is approximately feasible","Avoids IPO effects and thin early trading","UPCoM stocks have minimal disclosure and extreme illiquidity" ]})filters.style.hide(axis="index")```::: callout-tipAlways report results with and without liquidity filters. If results are qualitatively different, the baseline findings may be driven by microstructure artifacts rather than genuine economic effects.:::### Monthly vs. Daily FrequencyFor most asset pricing applications, monthly return aggregation is preferable to daily analysis in Vietnam because:1. Monthly returns smooth out intraday noise, bid-ask bounce, and price limit effects.2. Stocks that trade infrequently within a month still produce a meaningful monthly return.3. Factor portfolio sorts are conventionally conducted at monthly frequency.4. Statistical tests have better size properties when microstructure noise is reduced.However, monthly aggregation does not eliminate all biases. Stocks with zero returns for an entire month still contribute stale observations. The Dimson and Scholes-Williams corrections should still be applied at monthly frequency for beta estimation.## Implications for Asset Pricing Tests### Factor Model EstimationStandard factor model estimation assumes that returns are observed synchronously and without censoring. In Vietnam, both assumptions are violated. The practical consequences are in @tbl-assumption-violations| Assumption | Violation in Vietnam | Consequence ||-------------------|--------------------------------|---------------------|| Synchronous observation | Thin trading | Biased betas, attenuated R² || Uncensored returns | Price limits | Truncated distributions, biased moments || Continuous trading | Discrete ticks | Return discreteness, bid-ask bounce || No transaction costs | Wide spreads | Overstated portfolio returns |: Standard Assumptions and Their Violations {#tbl-assumption-violations}### Adjusted Testing ProcedureWe recommend the following adjustments to standard asset pricing tests when applied to Vietnamese data:1. **Beta estimation**: Use Dimson ($K \ge 1$) or Scholes-Williams betas, not OLS betas.2. **Factor construction**: When forming size and value portfolios, apply liquidity filters before sorting. Consider excluding the smallest quintile of stocks by market capitalization, which is most affected by thin trading.3. **Return aggregation**: Use monthly frequency. If daily analysis is necessary, include lagged market returns in the time-series regression.4. **Robust inference**: Cluster standard errors by stock to account for persistent microstructure-induced serial correlation. Use Newey-West HAC standard errors with sufficient lags.5. **Price limit adjustment**: For volatility analysis or risk measurement, consider the @chu2019forecasting approach of modeling the latent (uncensored) return distribution using truncated regression:$$r_{i,t}^* \sim N(\mu_i, \sigma_i^2), \quad r_{i,t}^{obs} = \max(\underline{L}, \min(\bar{L}, r_{i,t}^*))$$ {#eq-truncated}Estimate $\mu_i$ and $\sigma_i^2$ via maximum likelihood for the truncated normal.```{python}#| label: truncated-volatilityfrom scipy.optimize import minimizefrom scipy.stats import normdef truncated_normal_nll(params, returns, lower, upper):"""Negative log-likelihood of truncated normal.""" mu, log_sigma = params sigma = np.exp(log_sigma)# Interior observations interior = (returns > lower) & (returns < upper) ll_interior = norm.logpdf(returns[interior], mu, sigma)# Lower censored ll_lower = norm.logcdf(lower, mu, sigma) n_lower = (returns <= lower).sum()# Upper censored ll_upper = np.log(1- norm.cdf(upper, mu, sigma) +1e-15) n_upper = (returns >= upper).sum() nll =-(ll_interior.sum() + n_lower * ll_lower + n_upper * ll_upper)return nlldef estimate_true_volatility(returns, limit_band):"""Estimate latent volatility correcting for price limit censoring.""" result = minimize( truncated_normal_nll, x0=[returns.mean(), np.log(returns.std())], args=(returns.values, -limit_band, limit_band), method="Nelder-Mead" ) mu, log_sigma = result.xreturn np.exp(log_sigma)```6. **Sensitivity reporting**: Always report key results under alternative specifications: with and without liquidity filters, using OLS vs. Dimson betas, at daily vs. monthly frequency, and using observed vs. truncation-corrected volatility.## SummaryThis chapter has established that Vietnamese equity markets exhibit microstructure characteristics that materially affect observed prices, returns, and risk measures. The key findings are:1. **Price limits** censor daily returns, inducing positive autocorrelation, volatility spillover, and truncated distributions. The $\pm$ 7% band on HOSE is particularly restrictive for volatile stocks.2. **Thin trading and zero returns** afflict a substantial fraction of listed firms. Trading probabilities below 50% are common on HNX and UPCoM, generating non-synchronous trading bias that attenuates OLS beta estimates by 20-40%.3. **Illiquidity** varies dramatically across the cross-section, with Amihud ratios spanning several orders of magnitude. Value-weighted portfolio returns are less contaminated than equal-weighted returns.4. **The Dimson and Scholes-Williams beta corrections** effectively address non-synchronous trading bias and should be used as the default beta estimator for Vietnamese equities.5. **Liquidity filters** should be applied before any asset pricing analysis, and results should be reported with and without these filters as a robustness check.Ignoring these frictions does not merely add noise to empirical results, it systematically biases estimates in predictable directions. The diagnostics and corrections presented in this chapter provide the foundation for credible empirical asset pricing in Vietnam.<!-- ## Exercises1. **Intraday liquidity patterns**: Using intraday data, compute the average bid-ask spread and depth at 15-minute intervals throughout the trading day. Document the U-shaped intraday liquidity pattern and discuss how it relates to the theoretical predictions of @admati1988theory.2. **Magnet effect test**: Test the @subrahmanyam1994circuit magnet effect hypothesis. Conditional on a stock hitting a price limit by the end of the day, does price acceleration toward the limit occur in the final 30 minutes of continuous trading? Compare the speed of price approach to the limit on limit-hit days versus non-limit-hit days.3. **Liquidity-adjusted factor model**: Construct a tradeable liquidity factor (IML: Illiquid-Minus-Liquid) by sorting stocks into liquidity terciles using the Amihud ratio and forming a long-short portfolio. Augment the Fama-French three-factor model with this liquidity factor and test whether it improves the pricing of Vietnamese equities.4. **Multi-day limit hits**: Identify episodes where the same stock hits the price limit on two or more consecutive days. How much cumulative price adjustment occurs over these multi-day limit episodes? Does the total adjustment exceed what would be expected under a one-day price change distribution?5. **Non-synchronous trading and momentum**: The momentum effect may be partly an artifact of non-synchronous trading: past winners may simply be stocks with more recent prices. Re-examine the momentum premium after replacing OLS returns with Dimson-adjusted returns and after excluding stocks with trading probability below 50%.6. **Cross-exchange comparison**: Exploit the difference in price limit bands across HOSE ($pm$ 7%), HNX ($pm$ 10%), and UPCoM ($pm$ 15%) to test the causal effect of price limit tightness on volatility spillover, zero-return frequency, and return autocorrelation. Use a difference-in-differences design if any exchange has changed its limit band during the sample period. -->