Rare goods increase in value the further you travel from their point of purchase.
— In-Game Description
Rare goods can be found throughout the galaxy and increase in price based upon how far away from the originating system the goods are.
The price increase can be best approximated by this function
SP(x) = p1 + p2 * ERF( ( x * p3) / p4) illustrated in the graphs below