Skip to content

seasonal MK test different from standalone MK test for each month? #39

Description

@Louisa121

Question:
When I run the example in the doc:
n_season = 4

y0 = [datetime(2000, 1, 1), datetime(2000, 4, 1), datetime(2000, 7, 1), datetime(2000, 10, 1)]
multi_obs_dts = [np.array([y+timedelta(days=365*item) for item in range(19)]) for y in y0]
multi_obs = [np.array([3.20, 2.92, 3.95, 1.80, 2.45, 2.70, 2.22, 2.10, 2.08, 2.21, 1.93, 2.15, 2.03, 1.82, 1.94, 2.24, 1.67, 1.34, 1.61]),
np.array([3.92, 2.99, 4.37, 3.04, 3.12, 4.07, 3.91, 3.42, 2.94, 3.14, 2.53, 2.80, 2.98, 2.86, 3.22, 2.31, 2.03, 1.59, 2.14]),
np.array([4.56, 4.13, 4.31, 1.83, 3.22, 5.06, 4.39, 4.13, 4.06, 3.20, 4.01, 3.62, 3.78, 3.61, 3.42, 3.65, 2.39, 3.01, 3.03]),
np.array([4.22, 4.78, 2.96, 3.23, 2.82, 2.96, 3.12, 3.49, 2.73, 2.61, 3.00, 2.66, 3.49, 2.58, 2.32, 2.10, 2.38, 2.29, 2.07])]

out = mk.mk_temp_aggr(multi_obs_dts, multi_obs, 0.001)

for n in range(n_season):
print('Season {ind}:'.format(ind=n+1), out[n])

print('Combined yearly trend:', out[n_season])

I get the same result as the doc provided. However, if I run them separately, e.g. mk.mk_temp_aggr(multi_obs_dts[:2], multi_obs[:2], 0.001), the results are different. Why could it be like this? Shouldn't the first four results in out be the same as the standalone MK test for each season?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions