Correlation between stars and pyramids