### ***TASK 1:*** To prepare the car for the grid, you must first conduct a rigorous structural inspection of the dataset to ensure it can withstand the pressures of the race. Begin by checking the air pressure in the tires by identifying and resolving all missing values, either by refilling gaps with statistical averages or replacing incomplete records entirely. Next, strip away unnecessary weight by scanning for damaged or duplicate spare parts, ensuring that no redundant data rows compromise the car’s efficiency. To complete the initial setup, upgrade the onboard electronics by verifying that all technical readings are correctly formatted, converting every relevant performance metric into a precise numeric value to ensure the telemetry systems are fully operational. Once the foundation is secure, focus on performance optimization to ensure the car handles perfectly at high speeds. Fine-tune the aerodynamics by detecting and mitigating extreme outliers that could destabilize the vehicle’s performance, carefully smoothing out anomalies without discarding essential structural components that define the car’s integrity. Be cautious not to over-clean, as maintaining the core features is vital for the car’s overall strength. Finally, balance the engine power by normalizing the data, bringing all performance metrics into a stable, comparable range. With these calibrations complete, the dataset is refined, balanced, and ready to be submitted for final race approval. You are part of a Formula-1 race engineering team tasked with evaluating a car’s on-track performance. Using the provided race data, select key features that represent driver skill such as starting grid, qualifying position, and driver experience, car quality such as constructor rank, and race conditions such as total laps, laps completed, laps led, pit stops, and race outcomes. Add additional features that you think are relevant to predicting the car’s average speed based on logical reasoning and domain understanding. Train a machine learning regression model to learn the relationship between these factors and predict the car’s average speed. The model is evaluated on unseen race data using the R² score, where a higher value reflects a more accurate and better-engineered predictive model.