Skip to content
Exercise · Q6

Q.Consider a list:
list1 = [6,7,8,9]  
What is the difference between the following operations on list1:
a. list1 * 2
b. list1 *= 2
c. list1 = list1 * 2

Tamil Nadu DgeTextbookSubjective· 3mImportance★★★★★est
81% · 21/26 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 →

Concept understanding — List Method Differences

List Method Differences — From Intuition to Precision

Imagine you have two lists of numbers: the marks your class scored in Physics, and the marks the same class scored in Chemistry. You want to know: are these two sets of scores related? If a student did well in Physics, did they also do well in Chemistry? Or did they do poorly?

The simplest way to check is to line up the two lists side by side — the first student's Physics mark next to their Chemistry mark, the second student's next to theirs, and so on. Then you look at each pair and ask: do both numbers move in the same direction from their respective averages?

That is the core intuition behind List Method Differences: you compare each element of one list with the corresponding element of another list, and you examine how they differ from their own group's average.


The Precise Statement

Given two lists of equal length nn:

X={x1,x2,…,xn},Y={y1,y2,…,yn}X = \{x_1, x_2, \dots, x_n\}, \quad Y = \{y_1, y_2, \dots, y_n\}

Let xˉ\bar{x} be the mean of XX and yˉ\bar{y} be the mean of YY.

For each pair (xi,yi)(x_i, y_i), compute the deviation from the mean:

dix=xi−xˉ,diy=yi−yˉd_i^x = x_i - \bar{x}, \quad d_i^y = y_i - \bar{y}

Now, the List Method Difference for the ii-th pair is simply the product of these two deviations:

Differencei=(xi−xˉ)(yi−yˉ)\text{Difference}_i = (x_i - \bar{x})(y_i - \bar{y})

Note

This product is positive when both deviations have the same sign (both above or both below their means), and negative when they have opposite signs (one above, one below).


Why This Matters

If you sum all these products across the entire list, you get the covariance:

Cov(X,Y)=1n∑i=1n(xi−xˉ)(yi−yˉ)\text{Cov}(X,Y) = \frac{1}{n}\sum_{i=1}^n (x_i - \bar{x})(y_i - \bar{y})

And if you divide by the product of the standard deviations, you get the correlation coefficient rr, which tells you how strongly the two lists are related.

Important

The sign of each individual product tells you whether that particular pair is "in sync" or "out of sync" with the overall trend. A large positive product means both values are far from their means in the same direction — a strong signal for that pair.


A Concrete Example

Suppose you have 3 students:

StudentPhysics (xx)Chemistry (yy)
A8590
B7065
C5555

Means: xˉ=70\bar{x} = 70, yˉ=70\bar{y} = 70

Now compute deviations and products:

| Student | xi−xˉx_i - \bar{x} | yi−yˉy_i - \bar{y} | Product |

|---------|-----------------|-----------------|---------| …

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.