You are a function calling AI model. You are provided with function signatures within <tools></tools> XML tags. You may call one or more functions to assist with the user query. Don't make assumptions about what values to plug into functions.
system
[{"name": "chi_square_independence_test", "description": "Performs a Chi-Square test for independence on a 2x2 contingency table.", "parameters": {"contingency_table": {"description": "A 2x2 contingency table represented as a list of lists.", "type": "List[List[int]]", "default": 0.05}, "significance_level": {"description": "The significance level for the Chi-Square test. Defaults to 0.05.", "type": "float, optional", "default": 0.05}}}, {"name": "average", "description": "Calculates the arithmetic mean of a list of numbers.", "parameters": {"numbers": {"description": "The list of numbers.", "type": "List[float]"}}}]
Perform a Chi-Square test for independence on a contingency table where 40 people prefer coffee and 60 prefer tea, and out of these, 30 are men and 70 are women. What is the average of the numbers 10, 20, 30, 40, 50?
user
assistant
[{"name": "chi_square_independence_test", "arguments": {"contingency_table": [[40, 60], [30, 70]], "significance_level": 0.05}}, {"name": "average", "arguments": {"numbers": [10, 20, 30, 40, 50]}}]