While exploring a cuDF DataFrame of bike-share trips, an analyst wants to understand how trip duration relates to the distance travelled, with one point per trip across 100,000 trips. Both columns are continuous numeric variables. Which chart type best reveals the relationship and any correlation between these two variables?
- AA histogram of trip durations with a separate histogram of trip distances placed beside it.
- BA bar chart with one bar for the total duration and one bar for the total distance.
- CA box plot of trip duration with the trip distance encoded as the whisker length.
- DA scatter plot with distance on one axis and duration on the other, one marker per trip. Correct
Why A is wrong: Tempting because histograms describe each variable's distribution, but two side-by-side histograms show the variables in isolation and cannot expose how they move together.
Why B is wrong: Tempting because bar charts are simple to read, but two summed bars collapse 100,000 trips into two totals and convey nothing about the per-trip relationship.
Why C is wrong: Tempting because box plots summarise spread, but a box plot displays the distribution of one variable and its whisker length encodes that variable's range, not a second variable's values.
Why D is correct: Correct. A scatter plot maps two continuous variables onto perpendicular axes so the cloud of points reveals the direction, strength, and shape of any relationship between distance and duration.