What is the primary purpose of using Multivariate Adaptive Regression Splines (MARS) in statistical modeling?
a) To perform linear regression with multiple dependent variables
b) To create flexible models that can capture complex relationships between variables by fitting piecewise linear functions
c) To perform principal component analysis for dimensionality reduction
d) To calculate the probabilities of different outcomes in a multinomial distribution