Correlation and Regression

On this page

Correlation Basics - Pattern Spotting

  • Correlation: Measures strength & direction of a linear relationship between two quantitative variables.
  • Pattern Spotting: Use Scatter Plots.
    • Dots show relationship: direction (uphill/downhill) & strength (tight/loose cluster).
  • Types of Linear Correlation:
    • Positive: Variables change in same direction (X↑, Y↑). E.g., study hours & exam score.
    • Negative: Variables change in opposite directions (X↑, Y↓). E.g., TV hours & exam score.
    • Zero: No discernible linear pattern.

⭐ Correlation does not imply causation.

Measuring Correlation - Strength Signs

  • Correlation coefficient ($r$): measures linear relationship strength & direction.
  • Range: -1 (perfect negative) to +1 (perfect positive); $r$=0 means no linear correlation.
  • Sign (Direction):
    • Positive ($r$>0): X↑, Y↑ (direct).
    • Negative ($r$<0): X↑, Y↓ (inverse).
  • Magnitude ($|r|$) (Strength):
    • 0.0 - 0.2: Very weak
    • 0.2 - 0.4: Weak
    • 0.4 - 0.7: Moderate
    • 0.7 - 0.9: Strong
    • 0.9 - 1.0: Very strong
  • Types: Pearson's $r$ (for quantitative data), Spearman's $ρ$ (for ranked/ordinal data).

⭐ $r^2$ (Coefficient of Determination) = proportion of variance in Y explained by X.

Regression Fundamentals - Outcome Prediction

  • Predicts dependent variable ($Y$) value based on independent variable ($X$).
  • Simple linear regression equation: $Y = a + bX$.
    • $a$: Y-intercept (value of $Y$ if $X=0$).
    • $b$: Regression coefficient (slope); change in $Y$ for one unit change in $X$.
  • Quantifies relationship for prediction.
  • Unlike correlation (association strength), regression predicts specific values.

⭐ The sign of the regression coefficient ($b$) indicates if the relationship is positive ($b > 0$) or negative ($b < 0$).

Regression In-Depth - Lines & Limits

  • Regression Equation: $Y = a + bX$
    • a: Y-intercept (Y if X=0)
    • b: Slope (ΔY per unit ΔX)
  • Regression Coefficients (b):
    • $b_{YX}$: Y on X; $b_{XY}$: X on Y
    • $r = \sqrt{b_{YX} \cdot b_{XY}}$. Signs of r, $b_{YX}$, $b_{XY}$ are same.
  • Coefficient of Determination ($R^2$ or $r^2$):
    • Proportion of Y's variance explained by X.
    • Values: 0-1. E.g., $r=0.8 \implies R^2=0.64$ (64% variance explained).
  • Assumptions (L.I.N.E.) 📌:
    • Linearity, Independence (errors), Normality (errors), Equal variance (Homoscedasticity).

⭐ The two regression lines intersect at the mean of X and the mean of Y.

Correlation vs. Regression - Compare & Contrast

FeatureCorrelationRegression
PurposeStrength, direction of linear associationPredicts Y (dependent) from X (independent)
VariablesX, Y both random variablesY random; X may be fixed/random
Output$r$ (coefficient); range -1 to +1Equation: $Y = a + bX$; $R^2$ (coeff. of determination)
SymmetrySymmetric: $r(X,Y) = r(Y,X)$Asymmetric: $b(Y \text{ on } X) \neq b(X \text{ on } Y)$
CausationNo direct causation impliedMay suggest, not prove, causation
FocusDegree of associationNature of relationship & prediction

High‑Yield Points - ⚡ Biggest Takeaways

  • Correlation coefficient (r) measures strength & direction of a linear relationship (-1 to +1).
  • Coefficient of determination (r²) is the proportion of variance in one variable (dependent) that is predictable from the other variable (independent).
  • Regression analysis describes the mathematical relationship between variables for prediction (e.g., Y = a + bX).
  • The regression coefficient ('b') or slope indicates the change in the dependent variable for a one-unit change in the independent variable.
  • Differentiate Pearson's correlation (for linear relationships, quantitative, normally distributed data) from Spearman's rank correlation (for ordinal data or non-linear monotonic relationships).

Unlock the full lesson and continue reading

Signup to continue reading this lesson and unlimited access questions, flashcards, AI notes, and more

Scan to download app

Scan to download
UNLOCK FREE ACCESS

Practice Questions: Correlation and Regression

  1. 1. Which of the following is the most likely cause of bright red blood per rectum (hematochezia) in a 70-year-old patient?

    • A. Esophageal varices
    • B. Diverticulosis
    • C. Gastric cancer
    • D. Peptic ulcer disease
    Show answer

    Answer: B. Diverticulosis

    Diverticulosis - Diverticulosis is a common cause of painless hematochezia in older adults, resulting from rupture of blood vessels within colonic diverticula. - Because the bleeding originates in the colon, blood usually remains bright red, supporting diverticulosis as the most likely cause in this patient. Esophageal varices - Esophageal varices usually cause upper gastrointestinal bleeding, presenting with hematemesis or melena rather than bright red blood per rectum. - They are associated with portal hypertension, commonly due to chronic liver disease; hematochezia would generally require unusually rapid, massive bleeding. Peptic ulcer disease - Peptic ulcer disease causes upper gastrointestinal bleeding, which more typically presents with melena or hematemesis rather than bright red blood per rectum. - Hematochezia from an ulcer generally indicates massive, rapid bleeding with very fast intestinal transit, making it atypical in this presentation. Gastric cancer - Gastric cancer more commonly causes chronic occult bleeding and iron deficiency anemia, or occasionally melena or hematemesis from upper gastrointestinal bleeding. - Bright red blood per rectum is not typical unless bleeding is massive and transit is rapid, so it is less likely than colonic diverticulosis.

  2. 2. The population is divided into homogeneous subgroups, and then individuals are randomly selected from each subgroup. What type of sampling is this?

    • A. Stratified random
    • B. Simple random
    • C. Cluster sampling
    • D. Systematic random
    Show answer

    Answer: A. Stratified random

    Stratified random - Stratified random sampling divides the population into homogeneous subgroups, or strata, and then draws a simple random sample from each stratum. - This approach ensures representation from all subgroups, matching the description that individuals are randomly selected from every group. Simple random - Simple random sampling selects individuals purely by chance from the entire population, with each individual having an equal probability of selection. - It does not involve pre-dividing the population into subgroups and sampling separately from each subgroup. Cluster sampling - Cluster sampling divides the population into usually naturally occurring groups and randomly selects a limited number of those groups. - It differs because researchers select entire clusters, rather than randomly selecting individuals from every group. Systematic random - Systematic random sampling selects every nth individual from an ordered list after choosing a random starting point. - This method does not involve dividing the population into homogeneous subgroups and sampling independently within each subgroup.

  3. 3. Which study design is most effective for investigating rare adverse effects of a drug?

    • A. Case-control study
    • B. Cohort study
    • C. Cross-sectional study
    • D. Clinical trial
    Show answer

    Answer: A. Case-control study

    Case-control study - A case-control study begins with individuals who have the rare adverse effect as cases and compares them with controls without it, then assesses prior drug exposure. - This design is efficient for rare outcomes because it avoids following a very large population over a long period to observe only a few adverse events. Cohort study - A cohort study follows drug-exposed and unexposed groups forward in time to compare the occurrence of adverse effects. - For a rare adverse effect, a cohort study would require an extremely large sample and prolonged follow-up, making it less efficient than a case-control design. Clinical trial - Clinical trials assess intervention efficacy and safety, but are commonly designed to detect outcomes occurring with sufficient frequency during the study period. - They are generally not powered or long enough to identify rare adverse events, which may occur in very few participants, if any. Cross-sectional study - A cross-sectional study measures drug exposure and adverse effects simultaneously at a single point in time, limiting assessment of whether exposure preceded the outcome. - It is useful for estimating prevalence, but is inefficient for rare outcomes and cannot reliably establish the temporal relationship needed for drug-related adverse effects.

  4. 4. Which statistic quantifies the strength and direction of the linear association between height and weight?

    • A. Correlation coefficient
    • B. Coefficient of variation
    • C. Range of variation
    • D. Regression coefficient
    Show answer

    Answer: A. Correlation coefficient

    Correlation coefficient - The correlation coefficient measures the strength and direction of a linear relationship between two variables, such as height and weight. - A positive coefficient indicates that as height increases, weight tends to increase, demonstrating the variables’ statistical association. Regression coefficient - Regression coefficient describes the change in the dependent variable per unit change in the predictor. It is not the standardised measure of the strength and direction of linear association requested here. Coefficient of variation - The coefficient of variation measures relative variability by relating dispersion to the mean. - It describes variability within data, not the relationship between two different variables such as height and weight. Range of variation - The range of variation is calculated from the maximum and minimum values in a dataset. - It measures the spread of a single variable and does not assess the association between height and weight.

  5. 5. The best method to show the association between height and weight of children in a class is by:

    • A. Histogram
    • B. Line diagram
    • C. Scatter plot
    • D. Bar chart
    Show answer

    Answer: C. Scatter plot

    Scatter plot - A scatter plot is appropriate for showing the association between two continuous variables, such as the height and weight of each child. - Each point represents paired height and weight measurements, allowing assessment of the overall trend and possible correlation. Line diagram - A line diagram is mainly used to display trends over time or ordered sequences, with data points connected to show progression. - It is unsuitable here because height and weight are two continuous variables measured for children at one point, not a time-based sequence. Histogram - A histogram shows the frequency distribution of one continuous variable by grouping observations into defined intervals or bins. - It cannot display the relationship between two variables simultaneously, so it cannot show how height varies with weight. Bar chart - A bar chart is primarily used to compare frequencies or values across categorical groups or discrete categories. - It is not suitable for showing correlation between two continuous measurements such as height and weight.

  6. 6. Which of the following is an example of a case-control study?

    • A. Mortality compared prospectively between smokers and nonsmokers
    • B. Cardiovascular disease prevalence measured during a single community survey
    • C. Prior exposures compared in patients with and without angiosarcoma
    • D. Birth defects described in a thalidomide-exposed infant series
    Show answer

    Answer: C. Prior exposures compared in patients with and without angiosarcoma

    Prior exposures compared in patients with and without angiosarcoma is a case-control study because selection is based on disease status and earlier exposure is compared; Mortality compared prospectively between smokers and nonsmokers is a cohort study; Cardiovascular disease prevalence measured during a single community survey is cross-sectional; Birth defects described in a thalidomide-exposed infant series is a case series.

  7. 7. What is the most important criterion in a causal relationship hypothesis?

    • A. Coherence of association
    • B. Specificity of association
    • C. Temporal association
    • D. Strength of association
    Show answer

    Answer: C. Temporal association

    Temporal association - This is the sine qua non of causality, meaning the exposure or cause must always precede the outcome or effect in time. - Without the exposure occurring before the disease, a causal link cannot be established, even if other criteria are met. Coherence of association - This refers to the consistency of findings with current scientific knowledge and biological plausibility. - While important for supporting causality, a coherent explanation is not sufficient in itself to prove causation and may even be misleading if current knowledge is incomplete. Specificity of association - This criterion suggests that a single exposure should lead to a single outcome, or a single outcome should be caused by a single exposure. - However, many diseases have multiple causes, and many exposures can lead to multiple effects, making this a weak criterion in modern epidemiology. Strength of association - A strong association, often measured by a high relative risk or odds ratio, makes a causal relationship more likely but does not guarantee it. - Strong associations can still be due to confounding factors or bias, and weak associations can be causal.

  8. 8. The relationship between birth rate and maternal hemoglobin is best studied by:

    • A. Sensitivity and specificity.
    • B. Correlation and regression.
    • C. Standard error of difference between two means.
    • D. Standard error of difference between two proportions.
    Show answer

    Answer: B. Correlation and regression.

    Correlation and regression. - Correlation measures the strength and direction of the linear relationship between birth rate and maternal hemoglobin, both quantitative variables. - Regression models this relationship, allowing prediction of one variable from the other and quantification of the association. Standard error of difference between two means. - Standard error of difference between two means assesses whether the means of two independent groups differ significantly, rather than measuring association between two quantitative variables. - Birth rate and maternal hemoglobin are studied as continuous variables, so correlation and regression are more appropriate than comparing group means. Sensitivity and specificity. - Sensitivity and specificity evaluate how accurately a diagnostic or screening test identifies individuals with and without a specified condition. - These measures are unsuitable for examining associations between two continuous variables, such as birth rate and maternal hemoglobin. Standard error of difference between two proportions. - Standard error of difference between two proportions assesses whether proportions or percentages differ significantly between two groups. - It applies to categorical outcomes, not to measuring the relationship between continuous birth rate and maternal hemoglobin values.

  9. 9. What is the correlation coefficient if regression coefficient of X on Y is 0.8 and Y on X is 0.9?

    • A. 0.95
    • B. 0.85
    • C. 0.81
    • D. 0.72
    Show answer

    Answer: B. 0.85

    0.85 - The correlation coefficient is the geometric mean of the regression coefficients: r = √(bxy × byx) = √(0.8 × 0.9). - √0.72 = 0.8485, which rounds to 0.85; both positive regression coefficients indicate a positive correlation. 0.95 - The value 0.95 is too high and does not result from the standard relationship between the two given regression coefficients. - The correlation coefficient is the geometric mean, √(0.8 × 0.9), rather than an unsupported average or other calculation. 0.72 - The value 0.72 is the product of the two regression coefficients: 0.8 × 0.9 = 0.72. - This is only an intermediate step; the correlation coefficient requires the square root of this product, giving approximately 0.85. 0.81 - The value 0.81 is obtained by squaring the regression coefficient 0.9, rather than combining both coefficients. - The required calculation is the square root of the product of 0.8 and 0.9, not the square of a single coefficient.

  10. 10. To understand the relationship between weight and height of a group of school children, the data can graphically be best depicted through

    • A. Histogram
    • B. Scatter diagram
    • C. Bar diagram
    • D. Pictogram
    Show answer

    Answer: B. Scatter diagram

    Scatter diagram - A scatter diagram displays paired observations for two continuous variables, with each schoolchild represented by their corresponding height and weight values. - The plotted points allow visual assessment of the relationship or correlation between height and weight across the group. Histogram - A histogram shows the frequency distribution of one continuous variable across intervals or bins, rather than paired values for two variables. - It therefore cannot effectively demonstrate the relationship between weight and height simultaneously. Pictogram - A pictogram uses images or symbols to present simple statistics, usually for categorical data or straightforward comparisons. - It lacks the precision needed to display the continuous relationship between the paired height and weight measurements. Bar diagram - A bar diagram compares frequencies or proportions among categorical or discrete values rather than plotting paired continuous measurements. - It is therefore unsuitable for visualizing the relationship between two continuous numerical variables, weight and height.

Flashcards: Correlation and Regression

  1. 1. Values such as rank orders, or mild-moderate-severe represent scale data

    Show answer

    ordinal

  2. 2. that involves combining results from multiple studies on a given topic.

    Show answer

    Meta-analysis

  3. 3. Nominal and ordinal scale data represent type of data scales

    Show answer

    qualitative (qualitative/quantitative)

  4. 4. What type of distribution is characterized by a long tail on the left side and Mean < Median < Mode?

    Show answer

    Negatively skewed (Left-skewed)

  5. 5. t-test is used to compare two groups of patients for a quantitative variable

    Show answer

    Unpaired/student

  6. 6. analysis is done to include the dropouts of the trial in RCT

    Show answer

    Intention-to-treat (ITT)

  7. 7. What type of distribution is this? _____

    Show answer

    Normal

  8. 8. What type of distribution is this? _____

    Show answer

    Negative/Left

  9. 9. What type of distribution is this? _____

    Show answer

    Positive/Right

  10. 10. What type of bar graph is represented below? _____

    Show answer

    Compound bar graph

Everything you need for Indian Medical PG prep

Get full Oncourse access with lessons, practice questions, flashcards and AI study tools.

GET STARTED FOR FREE
75% OFFLimited time offer
GET 75% OFF