Quantij quantitative finance education and research
Three Worked Quant Research Case Studies
Practise housing-price prediction, seat-price interpolation, and bike-share forecasting with realistic validation choices.
Published 27 November 2026 · Full chapter
New York housing prices
The goal is to take a hypothetical dataset about NYC housing and use it to predict sales prices and valuations for NYC houses in the future and for other houses whose sales prices are unknown.
This is a somewhat common data science scenario and similar datasets exist out there which look something like: Indeed, assume the dataset just contains the first few variables here: i.e., Suppose there are access to most recent sales price, number of beds, number of baths, square footage, year built, and location (borough, neighborhood).
the first and main idea is to perform a multivariate regression on the output, sales price, with respect to all the inputs, including square footage, num beds, num baths, year built, and location. Beyond this main framework, there are many considerations the next step is to dive into. How do the participants preprocess the data, and how do the participants deal with main regression issues that might come up?
Preprocessing Let’s look at preprocessing the data. the first concern is encoding each variable so that a candidate can perform linear regression properly on them. Square footage and year built are effectively continuous variables, i.e. even though they take integer values in the dataset the discretization is insignificant enough that they look continuous to the regression, so a candidate can start of by keeping both variables as is. Number of beds and number of baths can be treated as discrete variables, which also work easily in a regression. Finally, the location (boroughs) is categorical data, so it’s best treated with a one-hot encoding.
Normalization Next, the participants may want to normalize the encoded data; normalization is good for mitigating numerical issues that can arise in multivariate regressions with different data types, and also generally helps with interpretation.
For most of the input variables, it makes sense to just assume something like normal or uniform distribution and subtract mean, divide by variance, etc. But what about square footage? It’s not exactly a normally distributed variable. The participants notice that it’s always nonnegative and concentrated around a mean corresponding to a standard oneor two-story family home; the square footages in the left tail have less examples and are closer to the mean, since once you get to half or one-quarter of the size of a one-story family home, square footages at those sizes become very uncommon. However, the right tail has more examples and extends farther; there’s plenty of large multi-story houses and mansions whose square footage can be dozens of times as large as average. The shape of this distribution suggests that square footage is lognormal: Therefore, a candidate can take the logarithm of square footage then normalize, using that as the input.
Correlations Finally, a candidate can start paying attention to correlations. Naturally, the participants suspect that square footage, number of beds, and number of baths are all correlated with each other, so how do the participants deal with this or potentially correct for this later? the first task is to actually measure the correlation. The most well-known type of correlation, Pearson correlation, may work here but may not be the most effective. Since square footage is effectively continuous and number of bedrooms is discrete, the most appropriate type of correlation is a lesser known one called Spearman rank coefficient, which is the best for comparing continuous vs. discrete ordinal variables. Depending on the correlation value found, the participants may need to deal with multicollinearity later.
Multicollinearity During and after the participants run the regression, a candidate can explore various avenues of subset selection and dimensionality reduction, especially given the square footage vs. num beds or baths correlation the participants may have found earlier.
a candidate can perform ridge regression to reduce weighting on the insignificant variables, or lasso regression to cut out the less significant of the correlated variables entirely. a candidate can also perform regression by successive orthonormalization or one of the stepwise regressions, which would prioritize the most important variables to regress on first and then, in later steps, regress on other variables’ residuals with respect to the first variables, compensating for the correlation in less important variables. Finally, in the interpretation stage, a candidate can perform t-tests to obtain z-scores on individual inputs, telling the candidate which predictors are significant and which are not (potentially telling the candidate to go back and try a subset selection cutting these out).
For the most part, a candidate can successfully perform a multivariate regression for housing price prediction after dealing with these extra considerations.
Opera house seat pricing
The goal is to take data about ticket sales at a concert venue and use it to construct a model for how to price tickets in the future. a candidate can assume Suppose there are access to any aspect of ticket sales the participants want, i.e. for each row/column/section number, Suppose there are a history of price, when it was sold, what concert it was for when that concert happened, etc. This problem can get much more involved and out-of-the-box because there are factors affecting the model that don’t just come from the inputs. If the participants are consulting for the concert venue and trying to maximize profits (change the way the participants price things) instead of just predict future prices, the objective is to bring in other ideas such as consumption/income statistics and spending psychology to really do an effective job with building a model.
There are many good ways of answering the question, so a candidate can just pass around a couple ideas below.
Nearest Neighbors and Regressions If the participants focus on the row number/column number/section number inputs for the data, the participants may be inclined to do one of the classical regression/classification approaches. Even before diving into regression, the simplest approach, nearest neighbors, actually makes a lot of sense here. Rows, columns, and sections, contextualized on an actual diagram of the seats in the venue (which a candidate can assume Suppose there are), give rise to actual 2D/3D spatial relationships. How near/far the seat is to the stage, the angle the person would see the stage from, all directly affect how good/valuable the seat is, and therefore adjacent seats should be priced very similarly while far-apart seats should be priced differently. In nearest neighbors, a candidate can mainly control how many neighbors the objective is to account for for each seat, and to add complexity, a candidate can add a kernel, which is just putting weights on each neighbor based on their distance to the original point. Then in this model, the price of each seat is a weighted average of the prices of nearby seats. One last thing to consider is boundary points, or corner and edge seats in sections. The analysis will want to have a larger window (maybe including points two or three seats away) and tune the choice of kernel to properly model at the boundary.
Beyond nearest neighbors, a candidate can perform a multivariate linear regression on sales price with respect to row, column, and section numbers. This also makes sense because, as discussed before, the distance to the front stage changes with row number and angle to the front stage changes with column, so changes in either one will affect the value of the seat. Given the distance/angle idea, the analysis will want to preprocess around this idea.
It might be good to convert row number into ordinal data, since they are ordered by distance, or even to replace row numbers with Euclidean distance to front stage and use that as the input instead; the same thing can be done for columns to some extent. a candidate can even pair up points based on left-right symmetry in the venue layout. One main concern is the correlation; it’s likely that row, column, and section are all highly correlated with each other. If the objective is to incorporate multicollinearity approaches, a candidate can use lasso or subset selection techniques to find which variable to drop, and if the participants don’t want to entirely drop any variables, a candidate can do ridge or regression by successive orthonormalization (regressing on residuals).
With only nearest neighbors and regressions on row/column/section, a candidate can either run into a lot of outliers and strange behavior in the data or the participants might not capture all the complexity of the data. This is where aspects of consumption/income microeconomics and psychology might come into play.
Advanced Ideas Ideas in this section are taken from https://towardsdatascience.com/statistics-for-dynamic-pricing-of-theatre-87df073a0848 the participants haven’t used sales times in the modeling yet, but from real-life knowledge the amount of time left before the concert happens has a major effect on what the price of buying a ticket would be at that point in time.
The rate of people buying tickets (not looking at price yet) continually increases as the date gets closer to the time of the concert; a candidate can make a reasonable assumption that this increase is close to exponential, and therefore a candidate can perform an exponential fit on number of tickets sold vs. (concert date minus sell date). Then, if the participants interpret this as demand increasing exponentially with time and also supply decreasing exponentially with time (total number of seats in venue minus seats already bought), then the participants infer that price can also correspond to time in an exponential fashion.
One straightforward way to incorporate this information is to take the log of (concert date minus date sold) and add that as an input in the multivariate regression from earlier. Since the time analysis is pretty far removed from the spatial analysis of row/column/section earlier, the participants don’t expect much correlation between the log-time variable and the row/column/section variables, and the participants have now captured an important, previously unseen aspect of the complexity of the data. (Obviously, the candidate should still check for multicollinearity with the techniques the participants have been discussing, just in case.) a candidate can loop back around to the point about supply decreasing dramatically as the time gets closer to the concert date. Here, some spending psychology effects may come into play and further increase upward pressure on prices. For example, if there are very few seats left, loss aversion/FOMO comes into play as people may miss out on the concert entirely if they don’t purchase on the last few seats, therefore driving up their willingness to pay.
One way a candidate can incorporate this into the model is to make a new variable for scarcity, i.e. aggregating the tickets sold before the current ticket and subtracting that count from the total available, then adding scarcity as an input into the multivariate regression. It’s more likely that there will be some correlation between scarcity and log-time, so a candidate can incorporate multicollinearity approaches and pay attention to these two variables in that context. The scarcity idea also helps with interpretation. One thing that the participants might notice is that the very last row in the back has prices higher than what linear regression on row/column/section should give, and that can be explained by scarcity, as the undesirable back row seats are usually the very last to go and may be filled by FOMOed people with much higher willingness to pay.
As a final note, if the participants are maximizing profits, the participants may want to incorporate microeconomic data about consumption. For the general population, the distribution of disposable income is lognormal (like square footage from the housing case), and willingness to pay for concert tickets likely follows the same lognormal pattern.
Since people will buy the tickets if they’re at or below, but not above, the price they’re willing to pay, a candidate can approach maximizing profits by modeling the distribution for willingness to pay, then adjusting prices across row/column/section/log-time/scarcity so that the participants capture just enough willing-to-pay people as can fit in the venue. This goes beyond the main multivariate regression, but it’s a start for how the participants would actually modify prices to increase profits.
Bike-share demand forecasting
This case study is more open-ended than the earlier housing and opera cases. the goal here is to build a predictive model for CitiBike usage across Manhattan; for any CitiBike station that the participants specify, given any recent data the participants think is relevant to CitiBike usage patterns, the objective is to predict the amount of CitiBikes docked in the station, as well as the changes in this amount, over the near future. The participants no longer have an explicit set of available input variables that Suppose there are to use, but rather Suppose there are to brainstorm what input variables are relevant from all the possible data about Manhattan before the participants even draw out the technical details of regression on these variables.
In an interview context, you would probably iterate back and forth between brainstorming new things to include in your model, vs. performing data preprocessing and model tuning/evaluation for these new variables. For this writeup, the analysis will do two iterations of introducing new variables.
In the first round of brainstorming, the participants come up with a handful of the more obvious variables that are very likely to have strong effects on CitiBike usage patterns in Manhattan. These first-pass variables include the time of day, location/neighborhood, month/season, temperature, and weather pattern (i.e. sunny, cloudy, rainy). Each of these variables has a relatively complex treatment in the preprocessing.
First, the time of day and the month/season are both cyclical variables; although they are both ordered, this order loops back on itself so that Suppose there are no definition of least to greatest. A naive approach would be to make these into ordered discrete or continuous variables anyway, i.e. the time of day would be used as the numerical hour and minute (0 to 23, 0 to 59) while the month is also used numerically (1 to 12 for January to December). This can produce workable results, but the blatant problem is the discontinuity that the ordering introduces, discarding the cyclicality of the data. One common approach to processing the cyclical data is to encode it as one-hot, so that the hour and month become 24 and 12 distinct indicator variables, respectively, in a one-hot vector. Since this introduces many more dimensions of data and also removes the ordering, the participants may want to bucket the variables into smaller groups before one-hot encoding.
For example, the time of day can be bucketed into morning, afternoon, evening, and midnight, while month can be bucketed into the four seasons; these smaller handfuls of categorical variables can then be one-hot encoded with smaller dimensionality than before. The bucketing also recovers some of the ordering of these cyclical variables, as sequential slices of the variables are collected into each bucket. Another more advanced approach is to directly capture the cycles with a cyclical function; this entails a basis transformation with a cyclical function, which a candidate can achieve in a few ways, perhaps with a trigonometric function or a cyclic spline. (Splines are essentially piecewise polynomial transformations, and their technical details are pretty outside the scope of this bible; feel free to Google and learn more about splines on your own time.) Next, location/neighborhood is potentially the most complex variable to treat, since neighborhoods are irregularly distributed around the geography of Manhattan and also have irregular, arbitrary patterns of activity with complex social factors way outside the scope of this regression problem. One basic approach is to make a reasonable assumption that CitiBike usage within the same neighborhood, or even between adjacent neighborhoods, is more uniform, so that a candidate can directly encode the neighborhood in a one-hot fashion. Another approach, unique to this context, arises when the participants notice that location/neighborhood can be encoded as a coordinate pair of latitude and longitude, both of which are continuous variables. Then the irregularity of neighborhood activity patterns reduces to arbitrary nonlinear dependencies of neighborhood activity on latitude and longitude, which requires a basis transformation. If the participants reintroduce the assumption of uniformity of activity within neighborhoods, a candidate can think of the problem as regressing CitiBike usage on neighborhood and simultaneously regressing neighborhood on some nonlinear transformation of latitude and longitude. a candidate can eyeball an argument with the linear nature of the regression equation that these two layers of regressions have an equivalent effect to directly regressing CitiBike usage on the exact same nonlinear transformation of latitude and longitude. With the relatively small number of neighborhoods, a candidate can argue that a medium-degree polynomial transformation of latitude and longitude can adequately capture the nonlinearity. Since even a medium-degree transformation can introduce a large number of new variables, a candidate can further look at low-degree polynomial splines, such as quadratic or cubic splines, to attempt to reduce the dimensionality of this transformation.
Finally, the temperature and weather variables are the simplest to encode in isolation. Temperature is a continuous variable that can be encoded directly (perhaps after some normalization), and weather is a categorical variable that can be one-hot encoded. The trick part of these variables is the correlation with each other and with the other variables. First, temperature and weather condition can be highly correlated with each other. The solution here is to first include both temperature and weather in the regression, then calculate the correlation between the two; since the participants are dealing with a categorical vs. continuous variable, some appropriate correlation measures can come from the “point biserial correlation” or from logistic regression. If the correlation is high enough to be a concern, a candidate can then turn to the various dimensionality reduction or subset selection approaches to perhaps truncate one of temperature or weather condition, or proportionally shrink both variables in the case of ridge regression, or even perform some transformation that combines the two variables into one. Another concern is the correlation between temperature/weather and the time/season variables from earlier, as the average temperature as well as trends in weather conditions explicitly follow along with the time of day or the season of the year. For variables that follow a cyclical pattern with a cyclical variable also in the inputs, a common way to patch up this multicollinearity is to normalize the variable by subtracting the means from the previous cycle. For example, temperature can be normalized into a “temperature difference” with respect to the time of day by subtracting the temperature at the exact same time from the previous day. These normalized variables can then be used as the inputs in the regression, their correlations evaluated afterwards, and dimensionality reduction/subset selection approaches used if necessary, as usual.
With the first batch of variables preprocessed and tuned adequately, a candidate can now turn to brainstorming another batch of variables. Examples of less obvious variables a candidate can think of are day of the week, holidays, traffic intensity, subway usage, inches of rain, air quality index, local housing prices, and local business activity. These variables also have complex considerations, but these considerations are similar to the cyclical, correlational, or geographic concerns that the participants discussed in detail with the first batch of variables, so the participants don’t need to discuss the preprocessing here. Instead, it’s worthwhile to note the tuning aspect of the regression after the participants have incorporated all ten variables. With a relatively high number of variables, it will be necessary to test for inclusion/exclusion as well as try various dimensionality reduction approaches.
First, the participants will want to calculate z-scores for each individual variable, and note which variables don’t pass the significance threshold. Depending on the correlations between these insignificant variables, the participants will then want to calculate F-statistics for groups of correlated insignificant variables to verify whether the entire group can be excluded. Then, for dimensionality reduction tasks, the participants may opt for a regularized regression such as lasso or ridge. Because of the high number of intercorrelated variables with various variances, a candidate can argue that different attempts of elastic-net, which incorporates both the proportionality shrinkage aspect of ridge and the soft thresholding/truncation of lasso, may result in the most effective dimensionality reduction. If the objective is to extract a big-picture view of the regression, a candidate can opt for the subset selection approaches such as forward or backward stepwise regression.