Skip to content

[WIP] Simulate a data generating process like in Lab2 with only 2 variables X and Y, for $n=1000$. For practical purposes, make the intercept parameter of your data generating process be equal to zero. You are asked to do the following in a loop: - Estimate...#11

Draft
Copilot wants to merge 1 commit intogabriel-sacofrom
copilot/fix-e8c49ad2-00eb-412e-a29d-b4cba90d46b7

Conversation

Copy link
Contributor

Copilot AI commented Sep 5, 2025

  • Explore repository structure and understand existing codebase
  • Examine current part2_overfitting implementations in Python, R, and Julia
  • Identify required changes to implement the specified data generating process
  • Modify Python implementation to use f_X = exp(4*X) - 1, y = f_X + e
  • Modify R implementation to use the same data generating process
  • Modify Julia implementation to use the same data generating process
  • Test all implementations to ensure they work correctly
  • Verify plots are generated correctly demonstrating overfitting
  • Document results and ensure proper functionality

Current Status:
Found existing overfitting analysis implementations in all three languages (Python, R, Julia) that currently use a simple linear data generating process (y = 2x + e). Need to modify them to use the exponential data generating process specified in the problem statement: f_X = exp(4X) - 1, y = f_X + e.

Next Steps:
Will modify the generate_data function in each language to implement the required exponential data generating process while maintaining the existing structure for polynomial feature creation, model fitting, and analysis.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants