# Question for Lab 1

(10 pts)

I've got a fun program on my webpage that generates random CSV data for people. You can access it and examine the first few rows via Python like so:

```
import pandas as pd
df = pd.read_csv('https://www.marksmath.org/cgi-bin/random_data.csv?username=mark')
df.head()
```

first_name | last_name | age | sex | height | weight | income | activity_level | |
---|---|---|---|---|---|---|---|---|

0 | Donna | Dinan | 35 | female | 65.37 | 164.26 | 1947 | high |

1 | Antonia | Davis | 39 | female | 64.95 | 140.40 | 2188 | none |

2 | Stephanie | Buss | 30 | female | 60.75 | 181.83 | 18108 | high |

3 | Wendell | Elmore | 26 | male | 64.68 | 157.90 | 1935 | moderate |

4 | Nina | Mcilhinney | 21 | female | 59.94 | 163.38 | 5675 | none |

Here's the cool thing - the data is randomly generated but the random number generator is seeded using the `username`

query parameter in the URL. Thus, if I execute that command several times, I get the same result every time. That result depends upon the `username`

, however. Thus, if you do it with your forum `username`

, you'll get a different result. Thus, we all have our own randomly generated data file!

*The problem*: Using the code above with your `username`

, generate your data file and then

- Compute the mean and sample standard deviation of the heights in your data and
- create a histogram of the heights.

Be sure to include both the code that you typed, as well as the results in your post.

## Comments

Here is my data for the assignment:

The mean of my data is 66.272

The standard deviation of my data is 3.82

Here is the histogram for my data:

Code:

Mean of heights is 66.74

Standard deviation of heights is 4.29

Histogram:

Mean:

Standard Deviation:

Histogram:

I generated my data with:

The mean of my data is 66.397 and was obtained from the command:

The standard deviation is 4.156 and was obtained from the command:

Histogram:

data:

mean: 66.74

standard deviation: 3.83

Code and Data:

Mean of height is 66.59

standard deviation height is 3.8

histogram code:

I generated my data with:

The mean of my heights is 66.394, obtained from this command:

The standard deviation of my heights is 3.82 , obtained from this command:

Hist0gram code and data:

This is how I generated my data:

My mean was also: 66.147

and I got it from this command:

The standard deviation for my data is: 3.684

I got this from this command:

The histogram looks like:

My Data looks like this:

Using the following line of code, I was able to find the mean of my height data:

The code returned 66.1932999999.

Using the following line of code, I was able to find the standard deviation of my height data:

The code returned 3.5443878117.

This last line of code created a histogram of my height data:

Mean of height is 66.74

Standard deviation is 4.281957179004515

## Output

Mean:

Mean is 66.92030000000001

Std deviation:

Std deviation is 4.106630867366592

Histogram:

Code and Data:

Mean of height is 65.93

Standard Deviation height is 3.8

Histogram code:

Mean of heights is 66.10199999999998

Standard deviation of heights is 3.7860936399546503

Histogram for data:

My mean is: 65.457

My std is: 3.492

Here's my data;

my histogram looks like

The mean of my heights is 66.8194

The standard deviation is 4.0438455

Code:

Data:

Mean:

Standard Deviation:

Histogram:

My data set:

histogram:

mean:

66.14470000000001

standard deviation:

3.815758249706344

My data is:

The mean of my heights is 66.2664, as obtained from this computation:

The sample standard deviation of my heights is 3.695405424648998, obtained from this computation:

Here is the histogram obtained from this calculation:

Here's where my answer will go.

My data is:

The mean of my heights is 66.147, as obtained from this computation:

My histogram looks like:

My data:

The mean of my heights is 66.44, as computed by:

The Standard Deviation of my heights is 3.47, as computed by:

My histogram looks like:

The mean of my height is 66.486, as obtained from this computation:

The standard deviation of my heigh is 4.107, as obtained from this computation:

My histogram looks like:

Here's my data:

The mean of my heights is 66.463, as obtained from my computation:

The standard deviation of my heights is 4.097, as obtained from my computation:

My histogram looks like, as obtained from my computation:

My Data:

My histogram looks like

the mean of my height is 66.69

The standard deviation is approx 4.11

Data:

Mean:

Standard deviation:

Histogram:

My data:

The mean of my heights is: 66.14279999999998, as obtained by this computation:

The standard deviation of my height is: 3.7008101979447847, as obtained by this computation:

My histogram looks like:

Here's my data

The mean of my height is 66.8057

My histogram looks like

My standard deviation is 3.8103095807309546

this is my data:

username=bgillen')

df.tail()

The mean of my heights is: 66.0328

as obtained from df.height.mean()

The Standard Deviation of my heights is: 3.7207670220430664

as obtained from df.height.std()

My histogram looks like:

My Answer:

The mean of my heights is 66.121 as optained from this computation

The Standard deviation of my height is 3.838 as optained from this computation

My histogram looks like:

https://marksmath.org/classes/Fall2020Stat185/StatTalk/uploads/editor/bi/ewuktcg1fc12.png "")

My histogram looks like

df.hist('bachelors');

The mean is 19.033757556474733

The standard deviation is 8.663062575676577

The height of my means is 66.26010000000001

The standard deviation is 4.245677658251716