In regression analysis, to test if a variable is informative in predicting another variable, we set up a null hypothesis that the coefficient of the predictor variable is zero. If the p-value is less than the significance level (e.g., 0.05), we reject the null hypothesis, indicating that the predictor variable is informative.