To truly become an expert in regression analysis, however, you probably need to get a master's degree in statistics, complete a program in data science, or go to school for machine learning, any of which will take you between two and four years.