Data-driven Feynman-Kac Discovery with Applications to Prediction and Data Generation