A method for receiving a phase tracking reference signal, PTRS, by a user equipment, UE, in a wireless communication system, the method comprising: receiving PTRS related configuration information; receiving downlink control information, DCI, wherein a code point corresponding to one or more TCI states is indicated based on a transmission configuration indication, TCI, field of the DCI, wherein at least one demodulation reference signal, DMRS, port is indicated based on an antenna port field of the DCI; and receiving a PTRS which is transmitted through an antenna port associated with a specific DMRS port among the at least one DMRS port, characterized in that a number of antenna ports through which the PTRS is transmitted is determined based on (a) i) a number of TCI states corresponding to the code point and ii) a number of CDM groups including the at least one DMRS port, or (b) i) the number of TCI states corresponding to the code point and ii) the number of CDM groups including the at least one DMRS port and iii) a maximum value of the number of antenna ports through which the PTRS is transmitted, wherein the maximum value of the number of antenna ports through which the PTRS is transmitted is configured up to 2, wherein based on i) the number of TCI states corresponding to the code point being 2 and ii) the number of CDM groups including the at least one DMRS port being 1, the number of antenna ports through which the PTRS is transmitted is determined as 1, and wherein based on i) the number of TCI states corresponding to the code point being 2, ii) the number of CDM groups including the at least one DMRS port being 2, and iii) the maximum value of the number of antenna ports through which the PTRS is transmitted being 2, the number of antenna ports through which the PTRS is transmitted is determined as 2. receiving PTRS related configuration information; receiving downlink control information, DCI, wherein a code point corresponding to one or more TCI states is indicated based on a transmission configuration indication, TCI, field of the DCI, wherein at least one demodulation reference signal, DMRS, port is indicated based on an antenna port field of the DCI; and receiving a PTRS which is transmitted through an antenna port associated with a specific DMRS port among the at least one DMRS port, characterized in that a number of antenna ports through which the PTRS is transmitted is determined based on (a) i) a number of TCI states corresponding to the code point and ii) a number of CDM groups including the at least one DMRS port, or (b) i) the number of TCI states corresponding to the code point and ii) the number of CDM groups including the at least one DMRS port and iii) a maximum value of the number of antenna ports through which the PTRS is transmitted, wherein the maximum value of the number of antenna ports through which the PTRS is transmitted is configured up to 2, wherein based on i) the number of TCI states corresponding to the code point being 2 and ii) the number of CDM groups including the at least one DMRS port being 1, the number of antenna ports through which the PTRS is transmitted is determined as 1, and wherein based on i) the number of TCI states corresponding to the code point being 2, ii) the number of CDM groups including the at least one DMRS port being 2, and iii) the maximum value of the number of antenna ports through which the PTRS is transmitted being 2, the number of antenna ports through which the PTRS is transmitted is determined as 2.