nerdexam
Google

PROFESSIONAL-MACHINE-LEARNING-ENGINEER · Question #102

You work on the data science team for a multinational beverage company. You need to develop an ML model to predict the company's profitability for a new line of naturally flavored bottled waters in di

The correct answer is C. Use product type and the feature cross of latitude with longitude, followed by binning, as features.. A feature cross of latitude × longitude encodes geographic location as a single composite feature, and applying binning afterward discretizes the continuous geographic space into regional buckets - capturing regional market effects far more effectively than raw floating-point coo

Submitted by tunde_lagos· Apr 18, 2026Data processing and feature engineering

Question

You work on the data science team for a multinational beverage company. You need to develop an ML model to predict the company's profitability for a new line of naturally flavored bottled waters in different locations. You are provided with historical data that includes product types, product sales volumes, expenses, and profits for all regions. What should you use as the input and output for your model?

Options

  • AUse latitude, longitude, and product type as features. Use profit as model output.
  • BUse latitude, longitude, and product type as features. Use revenue and expenses as model
  • CUse product type and the feature cross of latitude with longitude, followed by binning, as features.
  • DUse product type and the feature cross of latitude with longitude, followed by binning, as features.

How the community answered

(25 responses)
  • A
    4% (1)
  • B
    4% (1)
  • C
    76% (19)
  • D
    16% (4)

Explanation

A feature cross of latitude × longitude encodes geographic location as a single composite feature, and applying binning afterward discretizes the continuous geographic space into regional buckets - capturing regional market effects far more effectively than raw floating-point coordinates that a linear model would treat independently. The model output should be profit directly, since profit is available in the historical data and is the business metric of interest. Predicting revenue and expenses separately (as in choices B/D) adds unnecessary complexity and requires a post-processing step to compute profit. Option A uses raw lat/lon without a feature cross, missing the interaction between the two dimensions that defines a geographic region.

Topics

#Feature Engineering#Geospatial Data#Feature Cross#Binning

Community Discussion

No community discussion yet for this question.

Full PROFESSIONAL-MACHINE-LEARNING-ENGINEER Practice