A method for video processing is provided. The method includes determining, for a conversion between a current video block of a video that is a chroma block and a coded representation of the video, parameters of a cross-component linear model based on selected chroma samples based on positions of the chroma samples, wherein the selected chroma samples are selected from a group of neighboring chroma samples; and performing the conversion based on the determining.