The article presents an example of analysis of the influence of selected parameters deriving from data acquisition in foundries on the occurrence of Gas porosity defects (detected by Visual testing) in castings of ductile cast iron. The possibilities as well as related effectiveness of prediction of this kind of defects were assessed. The need to rationally limit the number of possible parameters affecting this kind of porosity was indicated. Authors also benefited from expert group's expertise in evaluating possible causes associated with the creation of the aforementioned defect. A ranking of these parameters was created and their impact on the occurrence of the defect was determined. The classic statistical tools were used. The possibility of unexpected links between parameters in case of uncritical use of these typical statistical tools was indicated. It was emphasized also that the acquisition realized in production conditions must be subject to a specific procedure ordering chronology and frequency of data measurements as well improving the casting quality control. Failure to meet these conditions will significantly affect the difficulties in implementing and correcting analysis results, from which INput/OUTput data is expected to be the basis for modelling for quality control.