Statistics - Dependence/independence of variables

In summary: Xi and Xj are independent?To determine whether Xi and Xj are independent, you would need to calculate the probability that Xi and Xj are both 1, 2, or 3.
  • #1
peripatein
880
0
Hi,

Homework Statement


The sample space of the following problem is defined thus: all the possible permutations of {1,2,3} including {1,1,1}, {2,2,2}, {3,3,3}. Suppose all results are equally probable. Let Xi denote the value of the ith coordinate, where i=1,2,3.
I am asked to determine whether, for any i≠j, Xi and Xj are independent and whether {X1,X2,X3} are independent.


Homework Equations





The Attempt at a Solution


The sample space is 9, I believe. And the probability of each set is 1/9 (even probability). What perplexes me is how to determine whether Xi and Xj are dependent/independent. A hint indicates that I may prove it for any i and j I choose. Suppose I choose i=1 and j=2. Am I now to check whether P(X1 [itex]\cap[/itex] X2) / P(X2) is equal to P(X1)?
 
Physics news on Phys.org
  • #2
From wikipedia:
Two events A and B are independent if and only if their joint probability equals the product of their probabilities:
$$P(A \cap B)=P(A)P(B)$$

So yes, you're on the right track. ;)
 
  • #3
peripatein said:
Hi,

Homework Statement


The sample space of the following problem is defined thus: all the possible permutations of {1,2,3} including {1,1,1}, {2,2,2}, {3,3,3}. Suppose all results are equally probable. Let Xi denote the value of the ith coordinate, where i=1,2,3.
I am asked to determine whether, for any i≠j, Xi and Xj are independent and whether {X1,X2,X3} are independent.


Homework Equations





The Attempt at a Solution


The sample space is 9, I believe. And the probability of each set is 1/9 (even probability). What perplexes me is how to determine whether Xi and Xj are dependent/independent. A hint indicates that I may prove it for any i and j I choose. Suppose I choose i=1 and j=2. Am I now to check whether P(X1 [itex]\cap[/itex] X2) / P(X2) is equal to P(X1)?

Don't forget that ##\{X_1, X_2,X_3\}## independent also requires that
[tex]P(X_1=i \:\& \: X_2=j \:\& \: X_3=k) = P(X_1=i) P(X_2=j) P(X_3=k)[/tex] for all i, j and k.
 
  • #4
peripatein said:
Hi,

Homework Statement


The sample space of the following problem is defined thus: all the possible permutations of {1,2,3} including {1,1,1}, {2,2,2}, {3,3,3}. Suppose all results are equally probable. Let Xi denote the value of the ith coordinate, where i=1,2,3.
I am asked to determine whether, for any i≠j, Xi and Xj are independent and whether {X1,X2,X3} are independent.


Homework Equations





The Attempt at a Solution


The sample space is 9, I believe. And the probability of each set is 1/9 (even probability). What perplexes me is how to determine whether Xi and Xj are dependent/independent. A hint indicates that I may prove it for any i and j I choose. Suppose I choose i=1 and j=2. Am I now to check whether P(X1 [itex]\cap[/itex] X2) / P(X2) is equal to P(X1)?

Don't forget that ##\{X_1, X_2,X_3\}## independent also requires that
[tex]P(X_1=i \:\& \: X_2=j \:\& \: X_3=k) = P(X_1=i) P(X_2=j) P(X_3=k)[/tex] for all i, j and k.
 
  • #5
But what is P(X1)? What does it stand for in this case? Is it the probability that the first coordinate would be 1,2 or 3? Which makes no sense, as wouldn't that be 1?
This is the part I am not sure I am grasping in the question. Could someone please clarify?
 
  • #6
peripatein said:
But what is P(X1)? What does it stand for in this case? Is it the probability that the first coordinate would be 1,2 or 3? Which makes no sense, as wouldn't that be 1?
This is the part I am not sure I am grasping in the question. Could someone please clarify?

You are confusing yourself by using bad notation: ##P(X_1)## has no meaning! The meaningful statements about ##X_1## are of the form ##P(X_1=1) = ? ## (you fill it in), as well as ##P(X_1 = 2) = ?## and ##P(X_1 = 3) = ?## In general, you must determine the values of the probabilities ##P(X_i = j)## for i = 1,2,3 and j = 1,2,3.
 
  • #7
Alright, so suppose I choose i=1 and j=2, would that be the probability P(X1 [itex]\cap[/itex]X2 = 1 | X3 = 1 (i.e. the probability of X3 = 1 given that X1 AND X2 = 1) + P(X1 [itex]\cap[/itex]X2 = 2 | X3 = 2) + P(X1 [itex]\cap[/itex]X2 = 3 | X3 = 3) / P(X2 = 1) [itex]\cup[/itex] P(X2 = 2) [itex]\cup[/itex] P(X2 = 3)?
 
Last edited:
  • #8
But isn't that P(X1 ∩X2 = 1 | X3 = 1) / P(X2 = 1) + P(X1 ∩X2 = 2 | X3 = 2) / P(X2 = 2) + P(X1 ∩X2 = 3 | X3 = 3) / P(X2 = 3)= 1/3 + 1/3 + 1/3 = 1? What am I doing wrong?
 
  • #9
I'd appreciate if any of you were willing to indicate how I am erring in my approach.
 
  • #10
You're confusing me, but it doesn't look right.

Can you perhaps fill in the question marks in Ray's last post?

And can you also find ##P(X_1=1 \wedge X_2=1)##?Note that the formula to calculate a probability (assuming equally likely outcomes) is:
$$P(\text{event})=\frac{\text{number of favorable outcomes}}{\text{total number of outcomes}}$$
Can you apply that to find the question marks?
 
  • #11
I'd be happy to try.
P(X1=1) = P(X2=1) = P(X3=1) = 3/9 = 1/3.
Now, P(X1=1∧X2=1) = 1/9.
Is that correct?
 
  • #12
peripatein said:
I'd be happy to try.
P(X1=1) = P(X2=1) = P(X3=1) = 3/9 = 1/3.
Now, P(X1=1∧X2=1) = 1/9.
Is that correct?

Yes. Good!

As you can see P(X1=1∧X2=1) = P(X1=1) P(X2=1) suggesting that they are independent.
How about P(X1=1∧X2=2)?
It is equal to P(X1=1) P(X2=2)?

Or more generally, how about P(X1=1∧X2=j)?
Is it equal to P(X1=1) P(X2=j)?

And P(X1=i∧X2=j)?

Then, we can go to the next stage.
How about P(X1=1∧X2=1∧X3=1)?
Is it equal to P(X1=1) P(X2=1) P(X3=1)?
 
  • #13
I believe P(X1=1∧X2=j) = 1/3.
P(X1=1) P(X2=j) = 1/3 * 1 = 1/3.
Is that correct?
 
  • #14
peripatein said:
I believe P(X1=1∧X2=j) = 1/3.
P(X1=1) P(X2=j) = 1/3 * 1 = 1/3.
Is that correct?

Ah, no.
It appears you are summing the probabilities for each j.
But that is not intended.
It's just the probability for one particular j.

For j=1, you already had P(X1=1∧X2=j) = 1/9.
Now we're trying to generalize by saying that P(X1=1∧X2=j) = 1/9 for any j.
 
  • #15
Okay, so P(X1=i∧X2=j) = 1/9, and P(X1=i) = P(X1=j) = 3/9 = 1/3.
Is it correct now?
 
  • #16
Yes. So in all cases P(X1=i∧X2=j) = P(X1=i) P(X2=j), which implies that X1 and X2 are independent.
 
  • #17
But 1/9 is not equal to 1/27, so the triplet is not independent. Correct?
 
  • #18
Correct.
 

FAQ: Statistics - Dependence/independence of variables

What is the difference between dependent and independent variables in statistics?

Dependent and independent variables are two types of variables used in statistical analysis. Dependent variables are the ones that are being observed or measured, while independent variables are the ones that are manipulated or controlled. In other words, dependent variables are affected by independent variables, whereas independent variables are not affected by other variables in the study.

How do you determine the dependence or independence of variables in a statistical model?

The dependence or independence of variables in a statistical model can be determined by looking at the correlation between the variables. If there is a strong positive or negative correlation between two variables, then they are considered dependent. On the other hand, if there is little to no correlation between two variables, they are considered independent.

Can two independent variables be correlated?

Yes, it is possible for two independent variables to be correlated. This is known as multicollinearity and it can occur when two or more independent variables are highly correlated with each other. It can lead to inaccurate results in statistical analysis, so it is important to check for multicollinearity in a dataset.

How does the dependence or independence of variables affect statistical analysis?

The dependence or independence of variables can greatly affect the results of statistical analysis. If variables are dependent, it can be difficult to determine which variable is causing changes in the other. This can lead to inaccurate conclusions and make it challenging to identify the true relationship between variables. On the other hand, independent variables can help to explain changes in the dependent variable and make it easier to draw meaningful conclusions.

What are some real-life examples of dependent and independent variables?

A real-life example of dependent and independent variables is the relationship between exercise and weight loss. In this case, exercise is the independent variable, as it is controlled by the individual, and weight loss is the dependent variable, as it is affected by the amount of exercise. Other examples include the relationship between studying and grades, where studying is the independent variable and grades are the dependent variable, and the relationship between temperature and ice cream sales, where temperature is the independent variable and ice cream sales are the dependent variable.

Similar threads

Back
Top