Coding

How can you simulate 1000 normally distributed data points with mean=x and variance=y in R, summarize the statistics, and create a density plot? Additionally, replicate this task in Python on the Codility editor.

Try Our AI Interviewer

Prepare for success with realistic, role-specific interview simulations.

Try AI Interview Now

Interview question asked to Machine Learning Engineers interviewing at Pendo, Red Hat, Affirm and others: How can you simulate 1000 normally distributed data points with mean=x and variance=y in R, summarize the statistics, and create a density plot? Additionally, replicate this task in Python on the Codility editor..