Say I am tracking my sleep for 1 week and these are the number of hours I sleep each night:
(5, 6, 9, 4, 8, 9, 6)
everyday that I track my sleep I am also taking a test that measures how well my brain is working these were my scores:
(45, 23, 33, 48, 68, 19, 26)
The higher the score the better.
Given these numbers, I would like to find out the optimal number of hours I would have to sleep to score the highest on this test. For example, the answer could be X amount of hours would give me the best chance of scoring highest on this test. I would like to know how to find X.
Any help that points me in the right direction would be incredibly appreciated!