Using Generative AI to help with statistical test selection and analysis

Tom Goodale

Abstract


One of the most common questions that students ask statistics advisors is ‘What test should I do?’ This paper explores the use of generative AI chatbots, specifically ChatGPT, as a tool to assist students, in particular those with limited experience in statistics, in selecting appropriate statistical tests for their analyses. Traditional methods, such as flowcharts and online test selectors, require at least a basic understanding of measurement scales and research design, which can be an issue for many students who have limited exposure to statistics on their courses. This research focuses on developing and refining prompts to guide ChatGPT in providing accurate and relevant statistical test recommendations. A hypothetical scenario was used to test the effectiveness of various prompts, ranging from simple, naïve questions to more sophisticated ones utilising specific prompt patterns, such as the ‘context manager’ and ‘flipped interaction.’ These patterns were selected to enhance the chatbot’s responses and ensure the relevance and accuracy of the test suggestions. The findings suggest that while AI chatbots like ChatGPT can be a valuable resource for students, their effectiveness is highly dependent on the quality of the prompts used. The paper concludes with a discussion on the potential of these AI tools in educational settings, acknowledging the limitations of current technology and suggesting directions for future research and development.


Keywords


statistical test selection; ChatGPT; generative AI; prompt engineering

Full Text:

PDF

References


Dokuz Eylül University (2023). StatXFinder: a decision support tool for appropriate statistical test selection. Available at: https://medinfo.deu.edu.tr/statxfinder/index.php [Accessed 13 November 2023].

Field, A.P. (2018). Discovering statistics using IBM SPSS statistics (5th ed.). Los Angeles: SAGE.

Gamma, E. (1995). Design patterns: elements of reusable object-oriented software. Addison-Wesley.

Jackson-Wood, M. (2023). statistical test flowchart. Available at: https://www.statsflowchart.co.uk/ [Accessed 13 November 2023].

Laerd (2023). Laerd Statistics. Available at: https://statistics.laerd.com/ [Accessed 13 November 2023].

Sage (2023). Which Stats Test. Available at: https://methods.sagepub.com/which-stats-test [Accessed 13 November 2023].

Sheffield Hallam University (2023). Interactive test chooser. Available at: https://maths.shu.ac.uk/mathshelp/WhichTestIndex.php [Accessed: 20 December 2023].

Stevens, S.S. (1946). On the theory of scales of measurement. Science, 103 (2684), 677-680. https://doi.org/10.1126/science.103.2684.677

Suner, A., Karakülah, G. and Dicle, O. (2014). Towards a web-based decision support tool for selecting appropriate statistical test in medical and biological sciences. Studies in Health Technology and Informatics, 205, pp.48-52.

White, J., Fu, Q., Hays, S., Sandborn, M., Olea, C., Gilbert, H., Elnashar, A., Spencer-Smith, J. and Schmidt, D.C. (2023). A Prompt Pattern Catalog to Enhance Prompt Engineering with ChatGPT. arXiv preprint. https://doi.org/10.48550/arXiv.2302.11382




DOI: https://doi.org/10.21100/msor.v22i3.1485

Refbacks

  • There are currently no refbacks.