# Filter data for a specific day and RTH hours (08:30-15:00)
specific_day <- subset(data, as.Date(DateTime) == as.Date("2024-08-01"))
rth_data <- subset(specific_day,
format(as.POSIXct(DateTime), "%H:%M:%S") >= "08:30:00" &
format(as.POSIXct(DateTime), "%H:%M:%S") <= "15:00:00")
# Calculate mean and standard deviation of Close prices
mean_close <- mean(rth_data$Close)
sd_close <- sd(rth_data$Close)
# Display results
cat("### Point Estimation for Close Prices\n")
Point Estimation for Close Prices
cat("Mean Close Price:", mean_close, "\n")
Mean Close Price: 5500.097
cat("Standard Deviation:", sd_close, "\n")
Standard Deviation: 42.90448