A Scatter Plot With Marginal Histograms
Kestrel Freight suspects that heavier loads take longer to unload, and pairs the two measurements per delivery on one panel with a small distribution strip along each edge. Before anyone reads the picture, the tool prints a one-word verdict on the direction the two measurements move in together, so a reviewer cannot talk themselves into seeing a slope that is not there.
Task: Print the direction in which the two measurements move together.
Input
The first line holds one integer n, the number of deliveries. Each of the next n lines holds that delivery's two measurements, separated by a single space.
Output
One line holding exactly one of Positive, Negative or None, capitalised as shown. Print Positive when deliveries with an above-average first measurement tend to have an above-average second one, Negative when they tend to have a below-average second one, and None when the two pull exactly evenly against each other.
Example:
Input:
3
1 10
2 20
3 30
Output:
Positive
Sign in to solve this problem
Reading problems is free for everyone — solving them (Run, Submit, and tracking what you've solved) needs an account.
Sign in