# Language Homework Q3 ~UPD~

There have been endless wars on which programming language is better than others, but my view point is, that is nothing but the balance between the code performance and the amount of work for programmers. In an extreme sense, almost all languages give you the ability to create the universe, but you do not really have to if you just want to make an apple pie.

## Language Homework Q3

The loop is pretty much like low-level languages like C/Fortran: we assign initial values to a recording variable, do the loop and collect the result. But frequency tables are so common in statistics that it is hard to exclude such a functionality in R, table(), as we see in the last but one line of the code above.

In this activity, students compare and contrast different measures of center and variability for data sets that have gaps and are not symmetrical. They interpret mean, MAD, median, and IQR in the context of a situation. Unlike many of the data sets students have seen so far, this one shows values that could roughly divide into three parts: the days when there is little or no homework, the days when there is a moderate number of homework problems, and the days when the assignment is relatively large. Because of this distribution, finding a typical number of homework problems (or whether it would be helpful to identify a typical number) is not obvious, prompting students to interpret measures of center and spread more carefully (MP2).

Keep students in groups of 2. Give students a moment of quiet time to look at the data on homework problems and identify at least one thing they notice and one thing they wonder. Give them another brief moment to share their observation and question with their partner. Then, ask a few students to share their responses with the class.

Students are likely to notice that the data values are quite different, that there are some days with no homework and others with quite a few problems, that there is not an obvious cluster, or that the number of problems could be roughly grouped into three kinds (a little, moderate, and a lot). They are likely to wonder why the numbers are so spread out and varied.

Please ensure that you follow the Stanford Honor Code while doing the homework. You are encouraged to discuss the homework with your classmates, but you should write your own solutions and code. You are also encouraged to use the internet to look up the syntax of the programming language, but you should not copy-paste code from the internet. If you are unsure about what is allowed, please ask the instructors.