Harisha is studying housing costs in his area. He wants to estimate how much monthly rent for an apartment tends to increase as the size of the apartment increases. He takes a random sample of apartments in his area and records the monthly cost of rent and the size (in square meters) of each apartment.
What type of statical test used in this case?

A. A χ2 goodness of fit test
B. A χ2 test for homogeneity
C. A two-sample z-test for a proportion
D. A slope
E. A t-test for slope