AWS AI Practitioner AIF-C01 · Fundamentals of AI and ML · medium
A real-estate analytics team wants to predict the exact selling price in US dollars (e.g., $432,500) of residential homes based on square footage, bedroom count, zip code, and school ratings using a historical dataset of 150,000 sold homes. Which supervised machine learning task and evaluation metric fit this problem?
Published · Last updated · checked before publication — how we verify questions
Options
Answer: B. Supervised regression evaluated with Root Mean Squared Error (RMSE)
The target here is a continuous numeric value, the exact selling price in dollars, and the team has 150,000 historical homes with known sale prices as labels. Predicting a continuous number from labelled examples is supervised regression. Regression models are scored by how far predictions fall from the true values, and Root Mean Squared Error measures this in the same units as the target (dollars). It squares the errors before averaging, so large misses are penalized more heavily. Mean Absolute Error and R-squared are other common regression metrics. The most common trap is matching on vocabulary instead of the output type. Classification outputs a discrete category, so a candidate who sees labelled data may wrongly pick it. Another trap is picking NLP metrics such as BLEU or ROUGE because they sound like generic quality scores. A quick test is to ask whether the answer is a category or a number, then choose the metric family that matches. Accuracy, precision, recall and F1 belong to classification. RMSE, MAE and R-squared belong to regression.
Why the other options are wrong
- A. Binary classification evaluated with BLEU n-gram precision — Binary classification predicts one of two categories, such as sold or unsold, not a dollar amount. BLEU is an n-gram overlap metric for machine translation and text generation, so it is wrong for both the task and the metric.
- C. Unsupervised dimensionality reduction using Principal Component Analysis — Principal Component Analysis is an unsupervised technique that reduces the number of features by projecting data onto fewer components. It does not use a labelled target and does not predict a price, so it cannot answer a supervised prediction question. It could be a preprocessing step, but it is not the task.
- D. Multi-label token classification using ROUGE-L recall — Multi-label token classification assigns several labels to individual tokens in text, which is an NLP sequence task. ROUGE-L measures longest-common-subsequence overlap between generated and reference text, mainly for summarization. Neither applies to predicting a numeric price from tabular features.
More Fundamentals of AI and ML questions
- During training of a deep neural network, the training accuracy reaches 99.4%, but the validation accuracy on unseen…
- A customer-experience team wants to analyze 500,000 product reviews stored in Amazon S3 to automatically extract…
- A retail bank wants to group 2 million unlabelled customer credit-card profiles into natural spending-behavior…
- A medical screening model evaluates 1,000 patients for a rare condition and produces the following confusion matrix…
- A mortgage lender receives scanned PDF tax forms and multipage bank statements containing complex tables and…
All Fundamentals of AI and ML questions and the topic overview →
AWS and Amazon Web Services are trademarks of Amazon.com, Inc. PrepIQ Hub is not affiliated with, endorsed by, or sponsored by Amazon Web Services.