Skip to content
Activities · Activity 4.2

Q.What value does each bubble on the plot at Figure 4.14 represent?
[Figure: Figure 4.14 is the scatter plot output of textbook Program 4-12: discount = np.array([10,20,30,40,50]) on the x-axis ('Discount offered') versus saleInRs = np.array([40000,45000,48000,50000,100000]) on the y-axis ('Sales in Rs'), drawn with plt.scatter(x=discount, y=saleInRs) and titled 'Sales Vs Discount'.]

Yanam CbseNCERTSubjective· 2mImportance★★★★★est
9% · 4/44 Questions
🔒 Locked · start free trial →

You're viewing a preview — the full solution, concept, methods & PYQ mapping are locked.

Start your 14-day free trial to unlock the full solution →

Each bubble on the scatter plot represents a single data point, which is a pair of corresponding values: one 'Discount offered' from the discount array and one 'Sales in Rs' from the saleInRs array.

A scatter plot is a powerful visualization tool used to display the relationship between two numerical variables. Each point on the plot corresponds to a single observation from the dataset, showing the values of both variables for that specific observation.

In this particular scatter plot, Figure 4.14, we are visualizing the relationship between 'Discount offered' and 'Sales in Rs'.

The plot is generated using two NumPy arrays:

  • discount = np.array([10, 20, 30, 40, 50]) which provides the values for the x-axis ('Discount offered').
  • saleInRs = np.array([40000, 45000, 48000, 50000, 100000]) which provides the values for the y-axis ('Sales in Rs').

When plt.scatter(x=discount, y=saleInRs) is called, the plotting function takes corresponding elements from both arrays to form individual data points. This means:

  • The first element of discount (10) is paired with the first element of saleInRs (40000).
  • The second element of discount (20) is paired with the second element of saleInRs (45000).
  • And so on, for all elements in the arrays. …

Unlock everything free for 14 days

  • Full step-by-step solutions
  • Concept-first explanations
  • Methods, shortcuts & mistakes
  • PYQ mapping + timed mock tests

Full access for 14 days. No credit card required.