Glycerin is the independent variable in this experiment.
Explanation:
An independent variable is defined as the variable that is changed or controlled in a scientific experiment. It represents the cause or reason for an outcome. A change in the independent variable directly causes a change in the dependent variable. The effect on the dependent variable is measured and recorded.
Thus this tells us that glycerin is the independent variable in this case because it is glycerin that causes a change in the size of the bubble that is formed in the soap.