It is investigated quantitative relations between the magnetic storm magnitude and the solar wind parameters such as the Interplanetary Magnetic Field (hereinafter, IMF) magnitude (B), the southward component of IMF (Bz), and the dynamic pressure during the main phase of the magnetic storm with focus on the role of the interplanetary shock (hereinafter, IPS) in order to build the space weather fore-casting model in the future capable to predict the occurrence of the magnetic storm and its magnitude quantitatively. Total 113 moderate and intense magnetic storms and 189 forward IPSs are selected for four years from 1998 to 2001. The results agree with the general consensus that solar wind parameter, especially, Bz component in the shocked gas region plays the most important role in generating storms (Tsurutani and Gonzales, 1997). However, we found that the correlations between the solar wind parameters and the magnetic storm magnitude are higher in case the storm happens after the IPS passing than in case the storm occurs without any IPS influence. The correlation coefficients of B and BZ(min) are specially over 0.8 while the magnetic storms are driven by IPSs. Even though recently a Dst prediction model based on the real time solar wind data (Temerin and Li, 2002) is made, our correlation test results would be supplementary in estimating the prediction error of such kind of model and in improving the model by using the different fitting parameters in cases associated with IPS or not associated with IPS rather than single fitting parameter in the current model.