Skip to content

MANE 6313 - Design of Experiments

Homework Assignment 1

Assigned: January 26, 2026

Due: February 6, 2026

Utilize R Markdown within RStudio document to:

  1. Create a data vector containing 20 observations from a χ2 (Chi-squared) distribution with a 6 degrees of freedom of using the rchisq() function. Before the rchisq command, specify set.seed(123),
  2. Calculate descriptive statistics that includes measures of dispersion such as standard deviation or variance as well as measures of central tendency or location,
  3. Perform Graphical Analysis
    1. Construct a Box plot and comment on whether the data is from a symmetric or asymetric distribution,
    2. Construct a line plot and comment if there are any trends or cycles in the line plot,
    3. Construct a normal probability plot with confidence bands and comment if the data appears to be from a normal distribution
  4. Knit the document to create a Word document,
  5. From within the Word document, export the document to a PDF file, and
  6. Upload your PDF to the Homework 1 Drop Box.

rchisq Command in R

Description

The rchisq() function in R generates random observations from a chi-squared distribution. It is commonly used in statistics, engineering, and simulation studies to model variability and sampling behavior.

Each value generated represents the sum of squared standard normal random variables.

Syntax

rchisq(n, df)

rchisq Command in R documentation generated by ChatGPT


set.seed Command in R

Description

The set.seed() function in R controls the random number generator. It allows random number generation to be reproducible, meaning the same sequence of random numbers will be produced each time the code is run.

This is important for teaching, debugging, simulations, and reproducible research.

Syntax

set.seed(seed)
set.seed Command documentation generated by ChatGPT