Haldwani Times
Haldwani Times
India

Wikipedia pageviews in R: statistics articles lost >50% of readers in 4 years

Wikipedia pageviews in R: statistics articles lost >50% of readers in 4 years
Photo / Illustration: Haldwani Times Editorial Desk

Wikipedia is where a lot of people meet the standard deviation, the p-value and the t-test for the first time. I wondered whether they still do, now that "what is a p-value" can be typed into a chatbot or answered at the top of a search page. Wikimedia publishes the number of human visits to every article, month by month, so the question has a direct answer: those pages now get less than half the human readers they had four years ago, and they are losing them faster than the rest of Wikipedia.

How do I get Wikipedia pageviews into R?

Ask the Wikimedia REST API with httr2: one request per article returns monthly (or daily) view counts as JSON, and you want agent = "user" so that crawlers and bots are left out. The pageviews package that older tutorials use was archived from CRAN on 16 July 2025, so there is no wrapper to install. This block runs on its own with httr2 1.3.0 on R 4.6.1:

Statistics pages against the rest of Wikipedia

I listed 45 articles that cover an introductory statistics course, from Arithmetic mean to the Mann-Whitney U test, keeping only titles that have not changed since 2015 (more on why below). For comparison I added ten school maths and science articles and ten general-interest ones, and the total for all of English Wikipedia. The comparison sets are small and hand-picked, so read them as context.

by_year <- bind_rows(views, stats_all_agents, wiki) |> mutate(school_year = if_else(month(month) >= 9, year(month), year(month) - 1)) |> group_by(set, agent, school_year) |> summarise(views = sum(views), .groups = "drop") # school years are labelled by the year they start: 2016 = 2016-17 change <- by_year |> filter(school_year %in% c(2016, 2021, 2025)) |> pivot_wider(names_from = school_year, values_from = views, names_prefix = "y") |> mutate(from_2016_to_2021 = y2021 / y2016 - 1, from_2021_to_2025 = y2025 / y2021 - 1) change |> filter(agent == "user") |> select(set, from_2016_to_2021, from_2021_to_2025) |> mutate(across(where(is.numeric), \(x) scales::percent(x, accuracy = 1))) ## # A tibble: 4 × 3 ## set from_2016_to_2021 from_2021_to_2025 ## ## 1 All of English Wikipedia -9% -4% ## 2 General interest (10) -5% -23% ## 3 Maths and science (10) -26% -37% ## 4 Statistics (45) -30% -56% The 45 statistics articles had 26.1 million human views in 2021-22 and 11.5 million in 2025-26, a fall of 56%. Every one of the 45 fell, 37 of them by more than half; the smallest drop was Bayes’ theorem (27%), the largest Descriptive statistics (79%). Over the same four years the maths and science pages lost 37%, the general-interest pages 23%, and English Wikipedia as a whole 4%.

dsp_colors <- c("#0066CC", "#E8862D", "#159A6C", "#7D5BD6", "#D64580", "#2AA9B8", "#C9A227") dsp_theme <- theme_minimal(base_size = 13) + theme(plot.background = element_rect(fill = "#ECECEF", color = NA), panel.background = element_rect(fill = "#ECECEF", color = NA), panel.grid.minor = element_blank(), panel.grid.major.x = element_blank(), panel.grid.major.y = element_line(color = "grey78"), axis.ticks = element_blank(), plot.title = element_text(face = "bold"), strip.text = element_text(face = "bold")) indexed <- by_year |> filter(agent == "user") |> group_by(set) |> mutate(index = 100 * views / views[school_year == 2016]) |> ungroup() ggplot(indexed, aes(school_year, index, color = set)) + geom_vline(xintercept = 2021.5, linetype = "dashed", color = "grey50") + annotate("text", x = 2021.6, y = 138, label = "ChatGPT released\nNov 2022", hjust = 0, size = 3.4, color = "grey35", lineheight = 0.9) + geom_line(linewidth = 1) + geom_point(size = 1.8) + geom_text(data = filter(indexed, school_year == 2025), aes(label = set), hjust = 0, nudge_x = 0.2, size = 3.6) + scale_color_manual(values = dsp_colors[c(4, 3, 2, 1)]) + scale_x_continuous(breaks = seq(2015, 2025, 2), labels = \(x) paste0(x, "-", substr(x + 1, 3, 4)), expand = expansion(mult = c(0.02, 0.33))) + scale_y_continuous(limits = c(0, NA)) + labs(x = "School year (September to August)", y = "Human pageviews, 2016-17 = 100", title = "Statistics pages lost readers fastest") + dsp_theme + theme(legend.position = "none") The statistics pages were already slipping before 2022: they lost 30% between 2016-17 and 2021-22, while the general-interest pages lost 5%. What changed is the pace. That five-year loss works out to about 7% a year; the four years since average 19%, and the latest year is the steepest, with every month from September 2025 to August 2026 between 27% and 42% below the same month a year earlier.

Should I use "user" or "all-agents" in the Wikipedia API?

Use user if you want people. The API splits traffic into user, spider (crawlers that say they are crawlers) and automated (bots that Wikimedia’s detection catches anyway), and all-agents is the sum of all three. The archived pageviews package defaulted to user_type = "all", which it sends to the API as all-agents, so code written against it counts bots unless someone changed the argument.

On these data the choice changes the answer:

change |> filter(set %in% c("Statistics (45)", "All of English Wikipedia")) |> select(set, agent, from_2021_to_2025) |> mutate(from_2021_to_2025 = scales::percent(from_2021_to_2025, accuracy = 1)) ## # A tibble: 5 × 3 ## set agent from_2021_to_2025 ## ## 1 All of English Wikipedia all-agents 9% ## 2 All of English Wikipedia automated 162% ## 3 All of English Wikipedia user -4% ## 4 Statistics (45) all-agents -47% ## 5 Statistics (45) user -56% Counted with all-agents, English Wikipedia grew 9% between 2021-22 and 2025-26; counted as people, it shrank 4%. The difference is automated traffic, which went from 8.3 billion to 21.8 billion views a year. For the statistics pages the sign survives, but the loss shrinks from 56% to 47%. The labels are Wikimedia’s classification, and it moves as their bot detection improves, so treat user as their best current estimate rather than a census of humans.

Renamed articles break a pageview series

The API counts views for the exact title you ask for. When an article is renamed, readers move to the new title and the old one keeps only stray links, so a single-title series shows a cliff on one side and a jump on the other. That is why three pages are missing from my list: Correlation (called "Correlation and dependence" until 2021), Pearson correlation coefficient (renamed in January 2017) and Statistical hypothesis test (renamed in 2024).

correlation <- map(c("Correlation", "Correlation and dependence"), pageviews) |> list_rbind() |> mutate(school_year = if_else(month(month) >= 9, year(month), year(month) - 1)) |> filter(school_year %in% c(2016, 2025)) |> group_by(school_year) |> summarise(new_title_only = sum(views[article == "Correlation"]), both_titles = sum(views)) correlation ## # A tibble: 2 × 3 ## school_year new_title_only both_titles ## ## 1 2016 117019 778810 ## 2 2025 181875 197149 On its current title alone, Correlation would be the only statistics page in this post that grew, up 55% since 2016-17. Adding the old title back shows it fell 75%, in line with the rest. Before trusting a long series, look for a month where views jump or collapse by a factor of three or more, and check the article’s move log.

What the numbers say and what they do not

Human visits to Wikipedia’s core statistics articles fell from 37.5 million in 2016-17 to 11.5 million in 2025-26, less than a third of what they were, and since 2022 they have fallen faster than any comparison set. Pageviews cannot say why. The timing fits readers getting definitions and worked examples from AI assistants and from AI summaries in search results, and the earlier slide fits search engines answering short questions on the results page, but a view count does not record where a reader went instead. Nor does it mean fewer people are learning statistics, only that fewer of them are doing it on Wikipedia.

Leave a comment Cancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Mapping a Hospital Desert in R4.4K views

How to Read Many CSV Files at Once in R4.3K views

How to Map Food Deserts in R4.1K views

How to Run a Welch ANOVA in R When Group Variances Differ3.8K views

More in Getting Data

How to import multiple .csv files simultaneously in R and create a data frame102.8K views

Extracting Tables from PDFs in R using the Tabulizer Package100.2K views

Exporting Data from R to TXT, CSV, SPSS or Stata94.4K views

Get Your Data into R: Import Data from SPSS, Stata, SAS, CSV or TXT70.7K views

Source Attribution: This report incorporates information referenced or syndicated from Datascienceplus.com. Read original coverage at Datascienceplus.com.

More from India →
Haldwani Times
Haldwani Times Independent News & Editorial
Login
MARKETS & FINANCE
BRENT CRUDE: $78.40 -0.52% SENSEX: 81,450.20 +0.42% NIFTY 50: 24,820.15 +0.38% GOLD (24K): ₹74,500/10g -0.18% USD/INR: ₹95.54 +0.10%

ADMINISTRATIVE LEADERSHIP

Mr. Narendra Modi
Mr. Narendra Modi
Mr. Lt. Gen. Gurmit Singh
Mr. Lt. Gen. Gurmit Singh
Mr. Pushkar S. Dhami
Mr. Pushkar S. Dhami
Mr. Lalit M. Rayal
Mr. Lalit M. Rayal
Mr. Gajraj S. Bisht
Mr. Gajraj S. Bisht

Top Headlines & Breaking Stories

View All News →
बागेश्वर में मातृशक्ति सम्मेलन, सीएम धामी ने महिलाओं के सशक्तिकरण को बताया सरकार की प्राथमिकता
Haldwani

बागेश्वर में मातृशक्ति सम्मेलन, सीएम धामी ने महिलाओं के सशक्तिकरण को बताया सरकार की प्राथमिकता

Bageshwar: CM Dhami: बागेश्वर में भव्य मातृशक्ति सम्मेलन का आयोजन किया गया, जिसमें मुख्यमंत्री पुष्कर सिंह धाम...

Haldwani Times 4 Dec

Haldwani Times – Everything in Haldwani: News, Shops, Businesses & Services

Haldwani Times is the premier digital news and commercial discovery platform built specifically for the citizens, business owners, students, professionals, and visitors of Haldwani, Nainital district, and the wider Kumaon region of Devbhoomi Uttarakhand. As the economic gateway to the Kumaon Himalayas, Haldwani is a bustling metropolis connecting the plains of northern India with the scenic mountain districts of Nainital, Almora, Pithoragarh, Bageshwar, Champawat, and Udham Singh Nagar. Haldwani Times serves as the definitive digital heartbeat of the city, bringing breaking hyperlocal news, verified commercial directories, educational updates, healthcare guides, Mandi Bhav rates, and civic announcements onto a single unified, trusted platform.

The Definitive Source for Breaking Haldwani News & Civic Updates

Haldwani stands as one of the fastest-growing urban conglomerates and commercial engines in northern India. Positioned in the fertile Terai-Bhabhar belt at the foothills of the Shivalik range, the twin cities of Haldwani and Kathgodam form the administrative and logistical nerve center for the entire Kumaon division. With rapid urbanization, expanding commercial infrastructure, flourishing educational centers, and increasing inter-state transit, the demand for fast, fact-checked, and unbiased local journalism has never been greater. Haldwani Times delivers 24/7 comprehensive news coverage built on rigorous journalistic standards: - **Hyperlocal Civic News:** Real-time coverage of municipal corporation affairs, city drainage projects, traffic management blueprints, and road widening drives across Tikonia, Mukhani, Kusumkhera, Bareilly Road, and Rampur Road. - **Administrative Directives:** Official notifications from the District Magistrate (DM) Nainital, Senior Superintendent of Police (SSP), and state secretariat decisions affecting citizen welfare. - **Kumaon Weather & Disaster Alerts:** Timely mountain rainfall warnings, landslide advisories along NH-109 (Haldwani-Nainital Highway), and emergency bulletins during the monsoon and winter seasons. - **Education & Campus News:** Timely reports on Kumaon University examination schedules, Uttarakhand Board (UBSE) results, medical college admissions, and competitive coaching updates. - **Commercial & Market Trends:** Daily wholesale Mandi Bhav rates from Haldwani Subzi Mandi, real estate trends, retail market festivals, and local business openings. - **Cultural & Pahadi Heritage:** In-depth feature stories celebrating Kumaoni folk traditions, Aipan art, Nanda Devi festivals, and local community milestones.

Everything in Haldwani on One Unified Digital Ecosystem

Beyond traditional news reporting, Haldwani Times is engineered as an exhaustive local discovery engine. Historically, finding verified local business telephone numbers, emergency hospital contacts, specialized doctors, reliable plumbers, or trusted real estate consultants in Haldwani required asking neighbors or browsing outdated social media posts. Haldwani Times eliminates this friction by organizing every commercial, professional, and civic resource into searchable, verified categories. Whether you are a newly arrived resident in Kusumkhera looking for high-speed broadband providers, a parent searching for reputable CBSE schools near Kaladhungi Road, or a tourist seeking taxi rentals to Nainital, our portal delivers accurate, verified, and actionable information in seconds.

Local Shops, Retail Hubs & Traditional Bazaars in Haldwani

The retail commerce of Haldwani spans centuries-old traditional bazaars and modern commercial complexes: - **Bada Bazaar & Mangal Parao:** The historic retail heart of Haldwani, renowned for traditional Kumaoni wedding jewelry (Pauji, Guloband, Nath), brass utensils, ethnic handlooms, and wholesale clothing. - **Nainital Road & Tikonia Commercial Corridor:** Modern multi-brand retail showrooms, electronics stores, authorized smartphone service centers, branded footwear outlets, and international apparel stores. - **Bareilly Road & Rampur Road Trade Hubs:** Major agricultural machinery dealers, hardware and building material wholesalers, furniture manufacturing units, plywood distributors, and automobile showrooms. - **Subzi Mandi & Wholesale Grain Market:** One of the largest agricultural distribution centers in North India, supplying fresh vegetables, hill fruits (apples, peaches, plums), and organic Pahadi pulses (Gahat, Bhatt, Rajma) across northern states.

Healthcare Hub of Kumaon: Hospitals & Emergency Services

Haldwani serves as the premier medical lifeline for all six hill districts of Kumaon. Patients travel from Almora, Pithoragarh, Bageshwar, and Champawat to access specialized clinical treatments in Haldwani: - **Government Healthcare Institutions:** Dr. Susheela Tiwari Government Medical College & Hospital (STGH) and Base Hospital Haldwani provide tertiary trauma care, specialized super-specialties, pediatric ICUs, and 24/7 emergency response. - **Private Multi-Specialty Hospitals:** Advanced private medical centers specializing in cardiology, joint replacements, neurology, critical care, nephrology, and advanced laparoscopic surgeries. - **Diagnostic Centers & 24/7 Pharmacies:** Fully automated pathology laboratories, high-resolution MRI/CT scan centers, and round-the-clock emergency pharmacies clustered around Medical College Road, Kaladhungi Road, and Rampur Road.

Education, Colleges, Coaching Academies & Youth Development

Haldwani is the educational capital of the Kumaon region, home to thousands of ambitious students preparing for medical, engineering, defense, and civil services careers: - **Premier Degree Colleges:** Motiram Baburam Government Post Graduate College (MBPG College) and Women's Degree College providing extensive undergraduate and postgraduate humanities, commerce, and science programs. - **Competitive Coaching Ecosystem:** Highly reputed coaching academies for NEET UG, JEE Main & Advanced, UPSC Civil Services, UKPSC/UKSSSC, NDA, CDS, and Banking examinations along Kaladhungi Road and Tikonia. - **Affiliated Schooling Infrastructure:** Esteemed CBSE, ICSE, and Uttarakhand Board schools imparting value-based holistic education with modern sports and laboratory facilities.

Real Estate, Housing Colonies & Urban Expansion Trends

Driven by rapid infrastructure expansion and high quality of life, Haldwani's real estate market is expanding outward into organized residential colonies: - **Prime Residential Localities:** Highly sought-after residential sectors in Mukhani, Kusumkhera, Kaladhungi Road, Judge Farm, Daharia, and Bhotia Parao offering planned housing, green parks, and modern civic amenities. - **Commercial Property Investments:** Thriving commercial retail complexes, office spaces, and warehouse hubs developing rapidly along the proposed Haldwani Ring Road and transport corridors. - **Property Advisory & RERA Compliance:** In-depth real estate updates, circle rate revisions by the Nainital district administration, and buyer advisory guidelines for safe property acquisitions.

Strategic Transit Gateway, Tourism Routes & Kumaon Himalayan Connectivity

Haldwani-Kathgodam is the vital transit bridge connecting the plains of Delhi NCR and Uttar Pradesh with the hill stations of Uttarakhand: - **Kathgodam Railway Terminal:** Connecting Kumaon directly to New Delhi (Shatabdi Express, Ranikhet Express), Lucknow, Kolkata, Jammu, and Dehradun. - **ISBT Haldwani:** Operating round-the-clock interstate and mountain bus routes managed by Uttarakhand Transport Corporation (UTC) and private deluxe coaches. - **Pantnagar Airport (PGH):** Located just 26 km from Haldwani, offering scheduled domestic flights to New Delhi, Dehradun, Pithoragarh, and regional hubs. - **Himalayan Tourism Hub:** The primary staging point for journeys to Nainital (34 km), Bhimtal (30 km), Mukteshwar (72 km), Kainchi Dham (42 km), Almora (90 km), Ranikhet (80 km), and Jim Corbett National Park (55 km).

Gaula River Mining, Ecological Balance & The Bhabhar Economy

The Gaula River represents the undisputed economic and hydrological lifeline of Haldwani and the broader Nainital district. Originating from the Sattal-Bhimtal catchment in the lesser Himalayas, the river flows south past Kathgodam and Haldwani before merging into the Ramganga. For generations, the Gaula riverbed has provided the foundation for both regional agriculture and the construction economy across northern India: - **Regulated Minor Mineral Extraction:** During the open mining season (typically October to May), thousands of registered tractor-trolleys and heavy dumpers harvest riverbed gravel, sand, and boulders under strict surveillance by the Uttarakhand Forest Development Corporation and the Nainital district administration. - **Livelihood Support for Over 50,000 Families:** The Gaula mining economy directly and indirectly sustains vehicle owners, drivers, mechanics, diesel pump stations, roadside eateries, and local laborers, circulating over ₹500 crore into Haldwani's local markets annually. - **Environmental Safeguards & Flood Mitigation:** In strict adherence to High Court and National Green Tribunal (NGT) directives, scientific replenishment studies, satellite GPS tracking on transport vehicles, and seasonal mining bans during the monsoon protect the river's ecological balance and prevent bank erosion along low-lying residential sectors.

Culinary Landscape: From Traditional Kumaoni Rasoi to Modern Cafes

Haldwani's gastronomic scene reflects a delightful blend of rustic mountain traditions and cosmopolitan dining: - **Authentic Kumaoni Specialties:** Local restaurants and heritage dhabas serve traditional mountain delicacies cooked in iron vessels, including Bhatt ki Churkani (black soybean curry), Gahat ke Dubke (horsegram puree), Aloo ke Gutke tempered with wild Himalayan chives (Jamboo) and Jakhiya, and refreshing cucumber Raita flavored with freshly crushed mustard seeds. - **Traditional Confectioneries:** Historic sweet shops along Bada Bazaar and Nainital Road craft Almora's world-famous Bal Mithai (roasted caramelized khoya fudge coated in sugar balls) and Singaudi (sweetened khoya wrapped in wild Malu leaves). - **Vibrant Street Food & Cafe Culture:** As dusk falls, Tikonia and Nainital Road come alive with bustling street food stalls offering steaming Tibetan momos, spiced thukpa, Kathi rolls, and hot Masala Chai, alongside modern rooftop cafes serving specialty Italian coffees and continental snacks.

Cultural Festivals, Folk Heritage & The Aipan Art of Kumaon

Beyond commercial enterprise, Haldwani is the proud cultural showcase of Devbhoomi Uttarakhand: - **Aipan Folk Art Tradition:** The sacred geometrical floor and wall art handcrafted with red ochre (Geru) and white rice paste (Biswar) adorning thresholds, altars, and chowkis during auspicious ceremonies, now preserved through local women's self-help cooperatives. - **Classical Baithki & Khadi Holi:** Unique to Kumaon, musical celebrations starting as early as the month of Paush, featuring classical Hindustani ragas sung in community courtyards followed by energetic Chholiya dance performances during spring. - **Nanda Devi & Chholiya Heritage:** Grand annual fairs celebrating the patron deity Nanda Devi, accompanied by martial sword-and-shield Chholiya dancers whose rhythmic brass trumpets (Ransingha) and hurka drums resonate through the valley.

Public Amenities, Parks & Community Spaces in Haldwani

Urban lifestyle and recreational infrastructure in the city: - **Green Parks & Walking Tracks:** Walkway projects around Daharia, Judge Farm, and Awas Vikas providing lush recreational zones for families and seniors. - **Community Centers & Sports Grounds:** Multi-purpose auditoriums and grounds hosting cultural melas, badminton tournaments, and community celebrations. - **Gaula Barrage & Forest Trails:** Scenic river viewpoints and natural birdwatching areas attracting eco-tourists and local nature enthusiasts on weekends.

Frequently Asked Questions (FAQs)

How can I access live breaking news and weather alerts for Haldwani?

Haldwani Times operates a dedicated 24/7 hyperlocal newsroom providing real-time breaking bulletins, traffic alerts, and meteorological warnings. You can access live news directly from our homepage, subscribe to instant browser push notifications, or view categorical updates on Uttarakhand, Education, and Mandi Bhav. During monsoon and winter weather events, our correspondents provide live updates on NH-109 road blockages and emergency administrative orders issued by the Nainital District Magistrate.

Is Haldwani Times completely free to read for all visitors?

Yes, Haldwani Times offers completely unrestricted, open-access reading to all users without mandatory paywalls. Readers across Haldwani, Uttarakhand, and the global diaspora can freely browse all breaking news reports, investigative articles, business directory listings, and historical archives. Our public-interest mission ensures that essential civic information, emergency hospital directories, and educational circulars remain universally accessible to everyone at zero cost.

How can local business owners list their shop or service in the Haldwani directory?

Local merchants, medical practitioners, schools, and service professionals can register their business by navigating to our 'Business Directory' page and selecting 'Add Listing'. The registration process allows you to input your business name, address, contact numbers, operational hours, services offered, and high-resolution showroom photographs. Once submitted, our local verification team verifies the physical address within 24 hours to ensure high consumer trust and top ranking on Google.

Can I read Haldwani Times articles in Hindi as well as English?

Yes, Haldwani Times features a seamless, native bilingual reading experience tailored for our regional readership. With our one-click language toggle located prominently in the navigation bar, you can instantly switch between English and pure Hindi. Both versions feature carefully crafted editorial phrasing, accurate regional terminology, and culturally resonant storytelling to ensure maximum readability for students, families, and senior citizens alike.

How do I submit news tips, event notices, or press releases to the editorial team?

Our newsroom warmly welcomes verified news tips, community event notices, civic grievances, and official press releases from citizens and local organizations. You can submit your documents, photos, or video evidence directly to our central editorial desk at editorial@haldwanitimes.com or via our Help & Support page. Our senior editors review every submission for factual authenticity, multi-source verification, and public relevance prior to publication.

Where can visitors find authentic Kumaoni Bal Mithai and Singaudi in Haldwani?

Renowned traditional sweet houses clustered along Bada Bazaar, Mangal Parao, Kathgodam Station Road, and Nainital Road specialize in daily batches of authentic Bal Mithai and fragrant Singaudi prepared with pure mountain dairy khoya and natural ingredients.

What transportation options are available for traveling from Haldwani to Nainital and Bhimtal?

Continuous state transport buses (UTC), KMOU coaches, and registered taxi union sharing cabs operate 24/7 from the Haldwani Roadways Bus Station (near Tikonia) and Kathgodam Railway Station. Fares are regulated by the transport department, with mountain travel times ranging between 1 to 1.5 hours.