To present evidence that red panda populations are becoming less diverse over time, you would focus on how nucleotide diversity changes across generations. In this context, the generation is the independent variable (as it progresses over time), and nucleotide diversity is the dependent variable (as it is affected by the generation).
Therefore, the correct choice is:
Independent = Generation and Dependent = Nucleotide Diversity