I got a problem. I got a task like this:
The table below contains data on the pressure of $P$ and the volume $V$ of certain constant mass of gas. The equation that combines these two values is $PV^k = C$, where $k$ and $C$ are some constants.
$V: 54.3 | 61.8 | 72.4 | 88.7 | 118.6 | 194.0$
$P: 61.2 | 49.5 | 37.6 | 28.4 | 19.2 | 10.1$
Using linear regression find values of $C$ and $k$. What is the predicted value of $P$ when $V = 100$?
I found the linear regression function : $$p = -0.32v - 65.81$$ And I don't know how to use it to find $k$ and $C$. Any tips or ideas?
$P$ and $V$ need not be related in a linear fashion.
$$PV^k=C$$
$$P=CV^{-k}$$
$$\ln P = -k \ln V + \ln C$$
We can see that $\ln P$ and $\ln V$ are related in a linear fashion.
Try to fit a linear regression between $\ln P$ and $\ln V$ and recover $k$ and $C$.