The impact of distributed photovoltaic grid-connected on distribution network security, power quality and system stability cannot be ignored. In order to better cope with the uncertainty and output of new energy output and understand the characteristics of distributed new energy power output, it is necessary to predict photovoltaic power. The historical time series data of photovoltaic power is large in dimension and quantity. If the data output is not carried out, a large amount of redundant data will affect the accuracy of photovoltaic prediction. Therefore, this paper proposes a feature selection method based on MIC most mutual information coefficient, which filters out the most relevant data of photovoltaic power generation from the original feature variables, and then performs the feature dimension reduction method of linear discriminant analysis (LDA) to map the high-dimensional data to a lower dimension space. Finally, using the prediction simulation example, using the long and short time neural network (LSTM) prediction comparison, the feature dimension reduction method of MIC feature selection and LDA effectively improves the accuracy of photovoltaic power generation prediction.