Assignments

Homework06: (complete by Monday October 9)


Homework05 AI: (due Monday October 13)

For Homework05 R Exercise 1, use ChatGPT to generate a solution to the problem. Submit the Shared Link to your ChatGPT session. Ask for a generate R Quarto Notebook, download the file and Render it on your own computer. Submit a generated report saved to a .pdf file through Canvas.

Follow the suggestions provided in AILearning.pdf.


Homework05: (complete by Monday October 13)

Exercise 1: (L.L.N.) Demonstrate the Law of Large Numbers for the Normal Distribution.

cummean <- function(w){
   n <- length(w)
   y <- numeric(n)
   x <- c(1:n)
   y <- cumsum(w)
   y <- y/x
   return(y)
}

Exercise 2: (C.L.T.) Demonstrate the Central Limit Theorem for the Normal and Exponential Distributions.

Exercise 3: Demonstrate the independence of the sample mean and sample variance when sampling from the \(Normal(\mu = 5, \sigma^2 = 2^2 = 4)\).


Homework04: (complete by Monday October 6)

Exercise 1: Prove \(Var(X) = E[X^2] -(E[X])^2\).

Exercise 2: Prove \(E[Y] = E[E[Y|X]]\).

Exercise 3: Prove \(Var(Y) = Var(E[Y|X]) + E[Var(Y|X))]\).


Homework03: (complete by Monday September 22)


Homework02 AI: (due Monday September 15)

For Homework02 R Exercise 1, use ChatGPT to generate a solution to the problem. Submit the Shared Link to your ChatGPT session and submit a generated report saved to a .pdf file through Canvas.

Follow the suggestions provided in AILearning.pdf.


Homework02: (due Monday September 15)

Your R code should be completed in an R Quarto Notebook Rendered to a .html file and submitted through Canvas, submit both the .qmd file and the .html file. The YAML header of your R Quarto Notebook should look like the following (with your name and the date you submit the assignment):

---
title: "Stat. 640 Homework 2"
author: "Your name"
date: "September 15, 2025"
format: 
  html:
    embed-resources: true
---

Exercise 1: Using R verify that these models are the same: GAMMA(\(\alpha = n/2, 1/2\)) = CHISQ(\(n\)). To show this compute the cumulative probabilities for the two models using the pgamma() and pchisq() commands for the same value of \(x\) and parameter \(n\). Or use qgamma() and qchisq() to determine the 25th percentile (quantile) for each distribution.


Homework01 AI: (due Monday September 8)

For Homework01 R Exercise 2, use ChatGPT to generate a solution to the problem. Submit the Shared Link to your ChatGPT session and submit a generated report saved to a .pdf file through Canvas.

Follow the suggestions provided in AILearning.pdf.


Homework01: (due Wednesday Sept. 3)

Your handwritten homework solutions should be submitted through Canvas. Your papers should be scanned into a .pdf file in the order assigned. Your name should appear on each page. I would suggest starting each problem at the top of a new page so it is clear which problem you are working on.

Your R code should be completed in an R Quarto Notebook Rendered to a .html file and submitted through Canvas, submit both the .qmd file and the .html file. The YAML header of your R Quarto Notebook should look like the following (with your name and the date you submit the assignment):

---
title: "Stat. 640 Homework 1"
author: "Your name"
date: "September 3, 2025"
format: 
  html:
    embed-resources: true
---

Exercise 1: Use R to

  1. Plot the model BIN(\(n\) = 10, \(p\) = 0.5)
  2. Plot the model POIS(\(\lambda\) = 5)
  3. Determine the value of the 25th percentile (quantile) for each distribution.

Exercise 2: Using R simulate \(n\) = 100 standard normal values, square each value, and plot histograms. Comment on the shape of the distribution.

Exercise 3:

  1. Using R plot the model Exponential p.d.f. for \(\lambda\) = 0.4, 1, 8. Determine the 25th percentile (quantile) for each distribution.
  2. Using R plot the model Gamma p.d.f. for \(\alpha\) = 1, \(\lambda\) = 0.4, 1, 8 and for \(\alpha\) = 0.5, 1, 5, \(\lambda\) = 2.5. Determine the 25th percentile (quantile) for each distribution.